From 9ef6b6f551a34922cfd831e2521495e89afe2f94 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 4 Oct 2010 23:55:31 +0000 Subject: split out isolate usage/logic We'll be using more of Isolate in development. --- Rakefile | 26 -------------------------- 1 file changed, 26 deletions(-) (limited to 'Rakefile') diff --git a/Rakefile b/Rakefile index c140b89..626eb42 100644 --- a/Rakefile +++ b/Rakefile @@ -189,29 +189,3 @@ begin end rescue LoadError end - -task :isolate do - require 'isolate' - ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby' - opts = { - :system => false, - :path => "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}", - :multiruby => false, # we want "1.8.7" instead of "1.8" - } - fp = File.open(__FILE__, "rb") - fp.flock(File::LOCK_EX) - - # C extensions aren't binary-compatible across Ruby versions - pid = fork { Isolate.now!(opts) { gem 'sqlite3-ruby', '1.2.5' } } - _, status = Process.waitpid2(pid) - status.success? or abort status.inspect - - # pure Ruby gems can be shared across all Rubies - %w(3.0.0).each do |rails_ver| - opts[:path] = "tmp/isolate/rails-#{rails_ver}" - pid = fork { Isolate.now!(opts) { gem 'rails', rails_ver } } - _, status = Process.waitpid2(pid) - status.success? or abort status.inspect - end - fp.flock(File::LOCK_UN) -end -- cgit v1.2.3-24-ge0c7