3 engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
5 path = "tmp/isolate/#{engine}-#{RUBY_VERSION}"
8 # we want "ruby-1.8.7" and not "ruby-1.8", so disable multiruby
14 $stdout.reopen($stderr)
19 gem 'rainbows', '4.6.2'
20 gem 'raindrops', '0.13.0'
24 gem 'sendfile', '1.1.0'
25 gem 'cool.io', '1.1.0'
27 gem 'eventmachine', '1.0.3'
28 gem 'sinatra', '1.2.0'
29 gem 'async_sinatra', '0.5.0'
31 gem 'neverblock', '0.1.6.2'
34 if defined?(::Fiber) && engine == "ruby"
35 gem 'revactor', '0.1.5'
36 gem 'rack-fiber_pool', '0.9.1'
39 if RUBY_PLATFORM =~ /linux/
40 gem 'sleepy_penguin', '3.3.0'
42 # is 2.6.32 new enough?
43 gem 'io_splice', '4.2.0' if `uname -r`.strip > '2.6.32'
47 $stdout.reopen(old_out)
48 # don't load the old Rev if it exists, Cool.io 1.0.0 is compatible with it,
49 # even for everything Revactor uses.
50 dirs = Dir["#{path}/gems/*-*/lib"]
51 dirs.delete_if { |x| x =~ %r{/rev-[\d\.]+/lib} }
52 puts dirs.map { |x| File.expand_path(x) }.join(':')