3 engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
5 path = "tmp/isolate/#{engine}-#{RUBY_VERSION}/cramp"
8 # we want "ruby-1.8.7" and not "ruby-1.8", so disable multiruby
14 $stdout.reopen($stderr)
16 lock = File.open(__FILE__, "rb")
17 lock.flock(File::LOCK_EX)
24 $stdout.reopen(old_out)
25 dirs = Dir["#{path}/gems/*-*/lib"]
26 puts dirs.map { |x| File.expand_path(x) }.join(':')