forked from jruby/jruby-rack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcore_ext.rb
More file actions
24 lines (20 loc) · 755 Bytes
/
core_ext.rb
File metadata and controls
24 lines (20 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#--
# Copyright (c) 2010-2012 Engine Yard, Inc.
# Copyright (c) 2007-2009 Sun Microsystems, Inc.
# This source code is available under the MIT license.
# See the file LICENSE.txt for details.
#++
require 'jruby/rack/capture'
$DEBUG ||= ! ENV['DEBUG'].nil?
class Exception
include JRuby::Rack::Capture::Base
include JRuby::Rack::Capture::Exception
include JRuby::Rack::Capture::Environment if $DEBUG
include JRuby::Rack::Capture::RubyGems
include JRuby::Rack::Capture::Bundler
include JRuby::Rack::Capture::JRubyRackConfig if JRUBY_VERSION.start_with?("9.") # Workaround for JRuby 10 with missing CompatVersion class
include JRuby::Rack::Capture::JavaEnvironment if $DEBUG
end
class LoadError
include JRuby::Rack::Capture::LoadPath
end