tasks/gem.rb in gaptool-server-0.6.0 vs tasks/gem.rb in gaptool-server-0.6.3
- old
+ new
@@ -6,20 +6,26 @@
sys(%w(gem build gaptool-server.gemspec))
end
desc "Clean built file"
task :clean do
- sys(%w(rm -vf *.gem))
+ Dir.glob("*.gem") do |f|
+ puts " * #{f}"
+ File.unlink(f)
+ end
end
desc "Bump the version"
task :bump do
version = File.read('VERSION').strip
nver = version.next
f = File.open('VERSION', 'w')
f.write(nver)
f.close
puts "Bumped #{version} => #{nver}"
+ exec "git commit -m 'Bump version to v#{nver}' VERSION"
+ Rake::Task["tag"].invoke
+ Rake::Task["gem:build"].invoke
end
desc "Push"
task :push => :build do
version = File.read('VERSION').strip