Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tag: 1.0.5
Fetching contributors…

Cannot retrieve contributors at this time

27 lines (20 sloc) 0.615 kB
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'
WINDOWS = (PLATFORM =~ /mingw|win32|cygwin/ ? true : false) rescue false
SUDO = WINDOWS ? '' : 'sudo'
desc "Builds the gem"
task :gem do
sh "cd ext && make clean && rm -f Makefile" and puts if File.exists? './ext/Makefile'
load 'ripper.gemspec'
Gem::Builder.new(SPEC).build
end
desc "Installs the gem"
task :install => :gem do
sh "#{SUDO} gem install #{SPEC.name}-#{SPEC.version}.gem --no-rdoc --no-ri"
end
desc 'Build the extension'
task :build do
sh "cd ext && ruby extconf.rb && make clean && make"
end
Rake::TestTask.new
Jump to Line
Something went wrong with that request. Please try again.