Skip to content

Instantly share code, notes, and snippets.

@jhsu
Created June 15, 2010 18:04
Show Gist options
  • Save jhsu/439436 to your computer and use it in GitHub Desktop.
Save jhsu/439436 to your computer and use it in GitHub Desktop.
require "bundler"
Bundler.setup
require "rspec/core/rake_task"
Rspec::Core::RakeTask.new(:spec)
gemspec = eval(File.read("newgem.gemspec"))
task :build => "#{gemspec.full_name}.gem"
file "#{gemspec.full_name}.gem" => gemspec.files + ["newgem.gemspec"] do
system "gem build newgem.gemspec"
system "gem install newgem-#{NewGem::VERSION}.gem"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment