Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: a5e1e916a0
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (24 sloc) 0.625 kB
require 'rubygems'
require 'rake'
require 'fileutils'
def gemspec
@gemspec ||= eval(File.read('fancy_irb.gemspec'), binding, 'fancy_irb.gemspec')
end
desc "Build the gem"
task :gem => :gemspec do
sh "gem build fancy_irb.gemspec"
FileUtils.mkdir_p 'pkg'
FileUtils.mv "#{gemspec.name}-#{gemspec.version}.gem", 'pkg'
end
desc "Install the gem locally (without docs)"
task :install => :gem do
sh %{gem install pkg/#{gemspec.name}-#{gemspec.version} --no-rdoc --no-ri}
end
desc "Generate the gemspec"
task :generate do
puts gemspec.to_ruby
end
desc "Validate the gemspec"
task :gemspec do
gemspec.validate
end
Jump to Line
Something went wrong with that request. Please try again.