Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 22 lines (17 sloc) 0.486 kb
70d5bce @lsegal Add basic Rakefile
authored
1 require 'rubygems'
2 require 'rake/gempackagetask'
3
4 WINDOWS = (PLATFORM =~ /win32|cygwin/ ? true : false) rescue false
5 SUDO = WINDOWS ? '' : 'sudo'
6
7 desc "Builds the gem"
8 task :gem => :build do
9 load 'ripper.gemspec'
10 Gem::Builder.new(SPEC).build
11 end
12
13 desc "Installs the gem"
14 task :install => :gem do
15 sh "#{SUDO} gem install #{SPEC.name}-#{SPEC.version}.gem --no-rdoc --no-ri"
16 end
17
18 desc 'Build the extension'
19 task :build do
20 sh "cd ext && ruby extconf.rb && make clean && make"
21 end
Something went wrong with that request. Please try again.