Sha256: 8138338df3c0540d00442a4791fd90a0d81cdbafe44ede337b10cd4623647aae
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 KB
Contents
require File.expand_path("lib/mango", File.dirname(__FILE__)) namespace :gem do desc "Builds a gem from the current project's Gem::Specification" task :build do puts "==> Building RubyGem" if `git status` !~ /working directory clean/ abort " Cannot build RubyGem because the working directory is not clean." end system "gem build mango.gemspec" end desc "Removes the gem file for the current project" task :clean do puts "==> Cleaning up RubyGem build" jeweler do |gem_file| rm gem_file, :verbose => false puts " Removed #{gem_file}" end end desc "Pushes the current gem to RubyGems.org" task :push do puts "==> Pushing RubyGem" jeweler { |gem_file| system "gem push #{gem_file}"} end desc "Builds, pushes, and cleans a gem for the current project" task :release do Rake::Task["gem:build"].invoke Rake::Task["gem:push"].invoke Rake::Task["gem:clean"].invoke end def jeweler(&block) file = "mango-#{Mango::VERSION}.gem" if File.exists?(file) yield file else puts " RubyGem #{file.inspect} does not exist" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
mango-0.9.0 | Rakefile |
mango-0.8.0 | Rakefile |
mango-0.7.1 | Rakefile |
mango-0.7.0 | Rakefile |