Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.0.2
Fetching contributors…

Cannot retrieve contributors at this time

file 25 lines (20 sloc) 0.566 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
require 'rubygems'
require 'rake/gempackagetask'
require 'rake/testtask'

WINDOWS = (PLATFORM =~ /win32|cygwin/ ? true : false) rescue false
SUDO = WINDOWS ? '' : 'sudo'

desc "Builds the gem"
task :gem do
  sh "cd ext; make clean; rm Makefile; echo"
  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
Something went wrong with that request. Please try again.