Sha256: 6d3cdfb1c2f283f8496979cb21d0b503390732311ee86da33d2b78702afb3549

Contents?: true

Size: 1.4 KB

Versions: 1

Compression:

Stored size: 1.4 KB

Contents

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 = "ben@bencarpenter.org"
    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"]
    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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcarpenter-active_shipping-0.0.2 Rakefile