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)
19 gem 'unicorn', '3.3.1'
23 gem 'sendfile', '1.0.0' # next Rubinius should support this
24 gem 'cool.io', '1.0.0'
26 gem 'eventmachine', '0.12.10'
27 gem 'async_sinatra', '0.4.0'
29 gem 'neverblock', '0.1.6.2'
32 if defined?(::Fiber) && engine == "ruby"
33 gem 'revactor', '0.1.5'
34 gem 'rack-fiber_pool', '0.9.0'
38 $stdout.reopen(old_out)
40 # don't load the old Rev if it exists, Cool.io 1.0.0 is compatible with it,
41 # even for everything Revactor uses.
42 dirs = Dir["#{path}/gems/*-*/lib"]
43 dirs.delete_if { |x| x =~ %r{/rev-[\d\.]+/lib} }
44 puts dirs.map { |x| File.expand_path(x) }.join(':')