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)
16 lock = File.open(__FILE__, "rb")
17 lock.flock(File::LOCK_EX)
22 gem 'raindrops', '0.10.0'
23 gem 'unicorn', '4.6.2'
26 gem 'sendfile', '1.1.0'
27 gem 'cool.io', '1.1.0'
29 gem 'eventmachine', '1.0.0'
30 gem 'sinatra', '1.3.3'
31 gem 'async_sinatra', '1.0.0'
33 gem 'neverblock', '0.1.6.2'
36 if defined?(::Fiber) && engine == "ruby"
37 gem 'revactor', '0.1.5'
38 gem 'rack-fiber_pool', '0.9.2'
41 if RUBY_PLATFORM =~ /linux/
42 gem 'sleepy_penguin', '3.1.0'
44 # is 2.6.32 new enough?
45 gem 'io_splice', '4.1.1' if `uname -r`.strip > '2.6.32'
49 $stdout.reopen(old_out)
51 # don't load the old Rev if it exists, Cool.io 1.0.0 is compatible with it,
52 # even for everything Revactor uses.
53 dirs = Dir["#{path}/gems/*-*/lib"]
54 dirs.delete_if { |x| x =~ %r{/rev-[\d\.]+/lib} }
55 puts dirs.map { |x| File.expand_path(x) }.join(':')