Sha256: 7988a7722610d31672a7e676f720dd3581da0164e7df3acf5fd2d6c021897632
Contents?: true
Size: 892 Bytes
Versions: 12
Compression:
Stored size: 892 Bytes
Contents
#!/usr/bin/env ruby # scripts/Makefiles can read and eval the output of this script and # use it as RUBYLIB require 'rubygems' require 'isolate' fp = File.open(__FILE__, "rb") fp.flock(File::LOCK_EX) ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby' opts = { :system => false, # we want "ruby-1.8.7" and not "ruby-1.8", so disable :multiruby :multiruby => false, :path => "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}", } pid = fork do Isolate.now!(opts) do gem 'raindrops', '0.13.0' gem 'kgio', '2.9.2' gem 'rack', '1.5.2' end end _, status = Process.waitpid2(pid) status.success? or abort status.inspect lib_paths = Dir["#{opts[:path]}/gems/*-*/lib"].map { |x| File.expand_path(x) } dst = "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}.mk" File.open("#{dst}.#$$", "w") do |fp| fp.puts "ISOLATE_LIBS=#{lib_paths.join(':')}" end File.rename("#{dst}.#$$", dst)
Version data entries
12 entries across 12 versions & 2 rubygems