forked from Shopify/active_shipping
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRakefile
52 lines (44 loc) · 1.42 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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
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
begin
require 'jeweler'
Jeweler::Tasks.new do |s|
s.name = "active_shipping"
# s.executables = "jeweler"
s.summary = "Gemified activeshipping libs"
s.email = "[email protected]"
s.homepage = "http://github.com/bcarpenter/active_shipping"
s.description = "Use for Fedex/UPS/USPS tracking and more... Originally from: http://github.com/Shopify/active_shipping"
s.authors = ["Shopify"]
s.files = FileList["[A-Z]*", "{lib,examples}/**/*", "Rakefile"] - ["TODO.todo"]
s.add_dependency 'activesupport'
end
rescue LoadError
puts "Jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler"
end