Sha256: 1bd04bf6d44bd09af52c233ece4112f79802f0f269d4e381f54927236c8c46ae

Contents?: true

Size: 1.89 KB

Versions: 3

Compression:

Stored size: 1.89 KB

Contents

require 'rubygems'
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'rake/gempackagetask'
require 'rake/contrib/rubyforgepublisher'

desc "Default Task"
task :default => 'test:units'

# Run the unit tests

namespace :test do
  Rake::TestTask.new(:units) do |t|
    t.pattern = 'test/unit/**/*_test.rb'
    t.ruby_opts << '-rubygems'
    t.libs << 'test'
    t.verbose = true
  end

  Rake::TestTask.new(:remote) do |t|
    t.pattern = 'test/remote/*_test.rb'
    t.ruby_opts << '-rubygems'
    t.libs << 'test'
    t.verbose = true
  end
end

# Genereate the RDoc documentation
Rake::RDocTask.new do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title    = "ActiveFulfillment 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

begin
  require 'jeweler'
  Jeweler::Tasks.new do |gemspec|
    gemspec.name = 'active_fulfillment'
    gemspec.summary = "Framework and tools for dealing with shipping, tracking and order fulfillment services."
    gemspec.email = "cody@shopify.com"
    gemspec.homepage = "http://github.com/shopify/active_fulfillment"
    gemspec.authors = ["Cody Fauser", "James MacAulay"]
    gemspec.add_dependency('activesupport', '>= 2.3.2')
    gemspec.add_dependency('builder', '>= 2.0.0')
  end
rescue LoadError
  puts "Jeweler not available. Install it with: gem install jeweler"
end

desc "Update common files from active_merchant directory"
task :update_common do 
  STDERR.puts "Updating common include from ../active_merchant. Please make sure this is up-to-date"
  system("diff -u lib/active_merchant/common.rb ../active_merchant/lib/active_merchant/common.rb | patch -p0")
  system("diff -ur lib/active_merchant/common ../active_merchant/lib/active_merchant/common | patch -p0")  
  STDERR.puts "done.."
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
active_fulfillment-1.0.3 Rakefile
active_fulfillment-1.0.2 Rakefile
active_fulfillment-1.0.1 Rakefile