Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

46 lines (37 sloc) 0.971 kb
require 'rubygems'
require 'rake'
require 'spec/rake/spectask'
require File.expand_path('../lib/bin/version', __FILE__)
namespace :spec do
Spec::Rake::SpecTask.new(:all) do |t|
t.ruby_opts << '-rubygems'
t.verbose = true
end
task :as2 do
sh 'ACTIVE_SUPPORT_VERSION="<= 2.3.8" rake spec:all'
end
task :as3 do
sh 'ACTIVE_SUPPORT_VERSION=">= 3.0.0.beta3" rake spec:all'
end
end
desc 'Runs all specs against Active Support 2 and 3'
task :spec do
Rake::Task['spec:as2'].invoke
Rake::Task['spec:as3'].invoke
end
task :default => :spec
desc 'Builds the gem'
task :build do
sh "gem build bin.gemspec"
end
desc 'Builds and installs the gem'
task :install => :build do
sh "gem install bin-#{Bin::Version}"
end
desc 'Tags version, pushes to remote, and pushes gem'
task :release => :build do
sh "git tag v#{Bin::Version}"
sh "git push origin master"
sh "git push origin v#{Bin::Version}"
sh "gem push bin-#{Bin::Version}.gem"
end
Jump to Line
Something went wrong with that request. Please try again.