sleepy_penguin 1.4.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,30 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # scripts/Makefiles can read and eval the output of this script and
3
- # use it as RUBYLIB
4
- require 'rubygems'
5
- require 'isolate'
6
- fp = File.open(__FILE__, "rb")
7
- fp.flock(File::LOCK_EX)
8
-
9
- ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
10
- opts = {
11
- :system => false,
12
- # we want "ruby-1.8.7" and not "ruby-1.8", so disable :multiruby
13
- :multiruby => false,
14
- :path => "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}",
15
- }
16
-
17
- pid = fork do
18
- Isolate.now!(opts) do
19
- gem 'strace_me', '1.0.0'
20
- end
21
- end
22
- _, status = Process.waitpid2(pid)
23
- status.success? or abort status.inspect
24
- lib_paths = Dir["#{opts[:path]}/gems/*-*/{lib,ext}"]
25
- lib_paths.map! { |x| File.expand_path(x) }
26
- dst = "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}/isolate.mk"
27
- File.open("#{dst}.#$$", "w") do |fp|
28
- fp.puts "ISOLATE_LIBS=#{lib_paths.join(':')}"
29
- end
30
- File.rename("#{dst}.#$$", dst)