-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
39 lines (35 loc) · 982 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'spec/rake/spectask'
spec = Gem::Specification.new do |s|
s.name = 'rrsed'
s.version = '0.1'
s.has_rdoc = true
s.extra_rdoc_files = ['README', 'LICENSE']
s.summary = 'Ruby implementation of Reed-Solomon Encoder/Decoder'
s.description = s.summary
s.author = 'Andrew Kirilenko'
s.email = '[email protected]'
s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,spec}/**/*")
s.require_path = "lib"
s.bindir = "bin"
end
Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar = true
p.need_zip = true
end
Rake::RDocTask.new do |rdoc|
files =['README', 'LICENSE', 'lib/**/*.rb']
rdoc.rdoc_files.add(files)
rdoc.main = "README"
rdoc.title = "RRSED Documentation"
rdoc.rdoc_dir = 'doc/rdoc'
rdoc.options << '--line-numbers'
end
Spec::Rake::SpecTask.new do |t|
t.spec_files = FileList['spec/**/*.rb']
end