about summary refs log tree commit homepage
path: root/Rakefile
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-06-03 17:15:18 -0700
committerEric Wong <normalperson@yhbt.net>2010-06-03 17:15:36 -0700
commit6d62a7de86369e046e6f6b221153d867df11e74c (patch)
treec51c9f0d6d674fae46060627ef62d9f88a4c8f81 /Rakefile
parentcf122e941e10c2812b7ba5e75c053a28950ddcb6 (diff)
downloadrainbows-6d62a7de86369e046e6f6b221153d867df11e74c.tar.gz
depend on Isolate ~> 2.0.2 for development
It's useful given all the Gems we support but don't have hard
installation dependencies on.
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile21
1 files changed, 5 insertions, 16 deletions
diff --git a/Rakefile b/Rakefile
index 9cb9156..4f038c4 100644
--- a/Rakefile
+++ b/Rakefile
@@ -187,20 +187,9 @@ end
 desc 'isolate gems for development'
 task :isolate do
   require 'isolate'
-  require 'rbconfig'
-
-  Isolate.now! :file => ENV['ISOLATE_CONFIG'], :system => false
-
-  # for Ruby 1.8 isolate uses "1.8" instead of "1.8.7" for paths,
-  # but we'll still try to support 1.8.6 for now even though isolate
-  # does not.
-  if Gem.ruby_engine == "ruby" &&
-     RbConfig::CONFIG["ruby_version"] != RUBY_VERSION
-    require 'fileutils'
-    Dir.chdir('tmp/isolate') do
-      FileUtils.rm_rf("ruby-#{RUBY_VERSION}")
-      File.symlink "ruby-#{RbConfig::CONFIG["ruby_version"]}",
-                   "ruby-#{RUBY_VERSION}"
-    end
-  end
+
+  Isolate.now!(
+    :system => false,
+    :multiruby => false,
+    :path => "tmp/isolate/ruby-#{RUBY_VERSION}")
 end