Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 7ba174a0b3
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.54 kb
require 'rubygems' unless defined?(Gem)
require 'bundler/gem_tasks'
require 'rake/testtask'
%w(install release).each do |task|
Rake::Task[task].enhance do
sh "rm -rf pkg"
end
end
desc 'Bump version on github'
task :bump do
if `git status -s`.strip == ''
puts "\e[31mNothing to commit (working directory clean)\e[0m"
else
version = Bundler.load_gemspec(Dir[File.expand_path('../*.gemspec', __FILE__)].first).version
sh "git add .; git commit -a -m \"Bump to version #{version}\""
end
end
task :release => :bump
Jump to Line
Something went wrong with that request. Please try again.