Sha256: 6d75a454c168798ae4607112bc0d700957c919f3197283b9afe6eff11384d004
Contents?: true
Size: 835 Bytes
Versions: 1
Compression:
Stored size: 835 Bytes
Contents
unless File.exists?('/.dockerenv') namespace :gem do desc "Build the gem" task :build => :clean do sys(%w(gem build gaptool-server.gemspec)) end desc "Clean built file" task :clean do 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 sys(%W(gem push gaptool-server-#{version}.gem)) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gaptool-server-0.6.3 | tasks/gem.rb |