Permalink
Switch branches/tags
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 15 lines (10 sloc) 367 Bytes
require "bundler"
Bundler.setup
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new(:spec)
gemspec = eval(File.read("humanizer.gemspec"))
task :build => "#{gemspec.full_name}.gem"
file "#{gemspec.full_name}.gem" => gemspec.files + ["humanizer.gemspec"] do
system "gem build humanizer.gemspec"
system "gem install humanizer-#{Humanizer::VERSION}.gem"
end