Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

don't load broken backports on jruby, either

  • Loading branch information...
commit 382c3c560f661df4fe9c1b31bb8d291721977949 1 parent 5dc7bac
Konstantin Haase authored March 11, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  lib/rack/utils.rb
3  lib/rack/utils.rb
@@ -5,10 +5,11 @@
5 5
 require 'rack/multipart'
6 6
 
7 7
 major, minor, patch = RUBY_VERSION.split('.').map { |v| v.to_i }
  8
+ruby_engine = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
8 9
 
9 10
 if major == 1 && minor < 9
10 11
   require 'rack/backports/uri/common_18'
11  
-elsif major == 1 && minor == 9 && patch == 2 && RUBY_PATCHLEVEL < 318
  12
+elsif major == 1 && minor == 9 && patch == 2 && RUBY_PATCHLEVEL < 318 && RUBY_ENGINE != 'jruby'
12 13
   require 'rack/backports/uri/common_192'
13 14
 elsif major == 1 && minor == 9 && patch == 3 && RUBY_PATCHLEVEL < 125
14 15
   require 'rack/backports/uri/common_193'

0 notes on commit 382c3c5

Please sign in to comment.
Something went wrong with that request. Please try again.