lib/rack/utils.rb in rack-1.3.3 vs lib/rack/utils.rb in rack-1.3.4

- old
+ new

@@ -4,12 +4,13 @@ require 'tempfile' require 'rack/multipart' major, minor, patch = RUBY_VERSION.split('.').map { |v| v.to_i } -if (major == 1 && minor < 9) || (major == 1 && minor == 9 && patch < 2) - # pull in backports - require 'rack/backports/uri/common' +if major == 1 && minor < 9 + require 'rack/backports/uri/common_18' +elsif major == 1 && minor == 9 && patch < 3 + require 'rack/backports/uri/common_192' else require 'uri/common' end module Rack