Skip to content

Instantly share code, notes, and snippets.

@madx
Created July 23, 2008 07:49
Show Gist options
  • Save madx/1594 to your computer and use it in GitHub Desktop.
Save madx/1594 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'rake'
require 'rake/gempackagetask'
LEGS_GEMSPEC = eval(File.read('mtest.gemspec'))
Rake::GemPackageTask.new(LEGS_GEMSPEC) do |pkg|
pkg.need_tar_bz2 = true
end
task :default => "pkg/#{LEGS_GEMSPEC.name}-#{LEGS_GEMSPEC.version}.gem" do
puts "generated latest version"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment