forked from tylerhunt/relax
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Rakefile
48 lines (42 loc) · 1.37 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
47
48
require 'rubygems'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/rdoctask'
require 'spec/rake/spectask'
desc 'Default: run specs.'
task :default => :spec
spec = Gem::Specification.new do |spec|
spec.name = 'relax'
spec.version = '0.0.7'
spec.summary = 'A simple library for creating REST consumers.'
spec.author = 'Tyler Hunt'
spec.email = 'tyler@tylerhunt.com'
spec.homepage = 'http://tylerhunt.com/'
spec.rubyforge_project = 'relax'
spec.platform = Gem::Platform::RUBY
spec.files = FileList['{bin,lib}/**/*'].to_a
spec.require_path = 'lib'
spec.test_files = FileList['spec/**/*spec.rb'].to_a
spec.has_rdoc = true
spec.extra_rdoc_files = ['README', 'LICENSE']
spec.add_dependency('hpricot', '>= 0.6')
end
Rake::GemPackageTask.new(spec) do |package|
package.need_tar = true
end
Rake::RDocTask.new do |rdoc|
rdoc.title = 'Relax Documentation'
rdoc.main = 'README'
rdoc.rdoc_dir = 'rdoc'
rdoc.rdoc_files.include('README', 'LICENSE', 'lib/**/*.rb')
rdoc.options << '--inline-source'
rdoc.options << '--line-numbers'
end
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_opts = ['--colour --format progress --loadby mtime --reverse']
t.spec_files = FileList['spec/**/*_spec.rb']
end
Spec::Rake::SpecTask.new(:doc) do |t|
t.spec_opts = ['--format specdoc --dry-run --colour']
t.spec_files = FileList['spec/**/*_spec.rb']
end