forked from jugend/amazon-ecs
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
44 lines (40 loc) · 1.28 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/packagetask'
spec = Gem::Specification.new do |s|
s.name = "amazon-ecs"
s.version = "0.5.7"
s.author = "Herryanto Siatono"
s.email = "[email protected]"
s.homepage = "http://amazon-ecs.rubyforge.net/"
s.platform = Gem::Platform::RUBY
s.summary = "Generic Amazon E-commerce Service (ECS) REST API. Supports ECS 4.0."
s.files = FileList["{bin,lib}/**/*"].to_a
s.require_path = "lib"
s.autorequire = "name"
s.test_files = FileList["{test}/**/*test.rb"].to_a
s.has_rdoc = true
s.extra_rdoc_files = ["README", "CHANGELOG"]
s.add_dependency("hpricot", ">= 0.4")
s.add_dependency("ruby-hmac", ">= 0.3.2")
end
Rake::GemPackageTask.new(spec) do |pkg|
pkg.need_tar = true
end
desc "Create the RDOC html files"
rd = Rake::RDocTask.new("rdoc") { |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = "amazon-ecs"
rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README'
rdoc.rdoc_files.include('README', 'CHANGELOG')
rdoc.rdoc_files.include('lib/**/*.rb')
rdoc.rdoc_files.include('test/**/*.rb')
}
desc "Run the unit tests in test"
Rake::TestTask.new(:test) do |t|
t.libs << "test"
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end