forked from dpickett/active_shipping
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
55 lines (47 loc) · 1.46 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
49
50
51
52
53
54
55
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
begin
require 'jeweler'
Jeweler::Tasks.new do |gem|
gem.name = "active_shipping"
gem.summary = %Q{Shipping API extension for Active Merchant.}
gem.description = %Q{Shipping API extension for Active Merchant.}
gem.email = "[email protected]"
gem.homepage = "http://github.com/Shopify/active_shipping"
gem.authors = ["James MacAulay", "Tobias Luetke", "Cody Fauser", "Jimmy Baker"]
gem.add_dependency "activesupport"
end
rescue LoadError
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
end
desc "Default Task"
task :default => 'test:units'
task :test => ['test:units','test:remote']
# Run the unit tests
namespace :test do
Rake::TestTask.new(:units) do |t|
t.pattern = 'test/unit/**/*_test.rb'
t.ruby_opts << '-rubygems'
t.verbose = true
end
Rake::TestTask.new(:remote) do |t|
t.pattern = 'test/remote/*_test.rb'
t.ruby_opts << '-rubygems'
t.verbose = true
end
end
# Genereate the RDoc documentation
Rake::RDocTask.new do |rdoc|
rdoc.rdoc_dir = 'doc'
rdoc.title = "ActiveShipping library"
rdoc.options << '--line-numbers' << '--inline-source'
rdoc.rdoc_files.include('README', 'CHANGELOG')
rdoc.rdoc_files.include('lib/**/*.rb')
end
task :install => [:package] do
`gem install pkg/#{PKG_FILE_NAME}.gem`
end