Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 6759994545
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (13 sloc) 0.408 kb
require 'rbconfig'
WINDOWS = (Config::CONFIG['host_os'] =~ /mingw|win32|cygwin/ ? true : false) rescue false
SUDO = WINDOWS ? '' : 'sudo'
task :default => :specs
desc "Builds the gem"
task :gem do
SPEC = eval(File.read('rubygems-backports.gemspec'))
Gem::Builder.new(SPEC).build
end
desc "Installs the gem"
task :install => :gem do
sh "#{SUDO} gem install #{SPEC.full_name} --no-rdoc --no-ri"
end
Jump to Line
Something went wrong with that request. Please try again.