public
Description: Shipping API extension for Active Merchant.
Homepage:
Clone URL: git://github.com/Shopify/active_shipping.git
active_shipping / Rakefile
100644 50 lines (39 sloc) 1.119 kb
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
require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'
 
 
PKG_VERSION = "0.0.1"
PKG_NAME = "activeshipping"
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
 
PKG_FILES = FileList[
    "lib/**/*", "examples/**/*", "[A-Z]*", "Rakefile"
].exclude(/\.svn$/)
 
 
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