forked from ryanwood/slither
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
46 lines (39 loc) · 1.22 KB
/
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
40
41
42
43
44
45
46
task :default => :spec
task :test => :spec
desc "Build a gem"
task :gem => [ :gemspec, :build ]
desc "Run specs"
task :spec do
exec "spec -fn -b -c spec/"
end
begin
require 'jeweler'
Jeweler::Tasks.new do |gemspec|
gemspec.name = "fixed_width"
gemspec.summary = "A gem that provides a DSL for parsing and writing files of fixed-width records."
gemspec.description = <<END
A gem that provides a DSL for parsing and writing files of fixed-width records.
Shamelessly forked from ryanwood/slither [http://github.com/ryanwood/slither].
Renamed the gem to be a little clearer as to its purpose. Hate that 'nokogiri' nonsense.
END
gemspec.email = "[email protected]"
gemspec.homepage = "http://github.com/timonk/fixed_width"
gemspec.authors = ["Timon Karnezos"]
end
rescue LoadError
warn "Jeweler not available. Install it with:"
warn "gem install jeweler"
end
require 'rake/rdoctask'
Rake::RDocTask.new do |rdoc|
if File.exist?('VERSION')
version = File.read('VERSION')
else
version = ""
end
rdoc.rdoc_dir = 'rdoc'
rdoc.title = "rprince #{version}"
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end