Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add basic Rakefile

  • Loading branch information...
commit 70d5bce09f5af094a8a69cf3306039c8913310c3 1 parent 8a43bb7
@lsegal authored
Showing with 21 additions and 0 deletions.
  1. +21 −0 Rakefile
View
21 Rakefile
@@ -0,0 +1,21 @@
+require 'rubygems'
+require 'rake/gempackagetask'
+
+WINDOWS = (PLATFORM =~ /win32|cygwin/ ? true : false) rescue false
+SUDO = WINDOWS ? '' : 'sudo'
+
+desc "Builds the gem"
+task :gem => :build do
+ 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
Please sign in to comment.
Something went wrong with that request. Please try again.