Skip to content

Commit

Permalink
don't load broken backports on jruby, either
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Mar 11, 2012
1 parent 5dc7bac commit 382c3c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rack/utils.rb
Expand Up @@ -5,10 +5,11 @@
require 'rack/multipart'

major, minor, patch = RUBY_VERSION.split('.').map { |v| v.to_i }
ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'

if major == 1 && minor < 9
require 'rack/backports/uri/common_18'
elsif major == 1 && minor == 9 && patch == 2 && RUBY_PATCHLEVEL < 318
elsif major == 1 && minor == 9 && patch == 2 && RUBY_PATCHLEVEL < 318 && RUBY_ENGINE != 'jruby'
require 'rack/backports/uri/common_192'
elsif major == 1 && minor == 9 && patch == 3 && RUBY_PATCHLEVEL < 125
require 'rack/backports/uri/common_193'
Expand Down

0 comments on commit 382c3c5

Please sign in to comment.