Project

General

Profile

Feature #6707 ยป 0001-Remove-checks-for-RUBY_VERSION.patch

oscardelben (Oscar Del Ben), 07/09/2012 01:40 AM

View differences:

lib/cgi.rb
# Documentation: Wakou Aoyama (RDoc'd and embellished by William Webber)
#
raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0"
# == Overview
#
# The Common Gateway Interface (CGI) is a simple protocol for passing an HTTP
lib/drb/drb.rb
end
if RUBY_VERSION >= '1.8'
require 'drb/invokemethod'
class InvokeMethod
include InvokeMethod18Mixin
end
else
require 'drb/invokemethod16'
class InvokeMethod
include InvokeMethod16Mixin
end
require 'drb/invokemethod'
class InvokeMethod
include InvokeMethod18Mixin
end
# The main loop performed by a DRbServer's internal thread.
lib/irb/init.rb
@CONF[:LC_MESSAGES].load("irb/error.rb")
end
FEATURE_IOPT_CHANGE_VERSION = "1.9.0"
# option analyzing
def IRB.parse_opts
load_path = []
......
break
end
end
if RUBY_VERSION >= FEATURE_IOPT_CHANGE_VERSION
load_path.collect! do |path|
/\A\.\// =~ path ? path : File.expand_path(path)
end
load_path.collect! do |path|
/\A\.\// =~ path ? path : File.expand_path(path)
end
$LOAD_PATH.unshift(*load_path)
lib/open-uri.rb
raise "Non-HTTP proxy URI: #{proxy_uri}" if proxy_uri.class != URI::HTTP
end
if target.userinfo && "1.9.0" <= RUBY_VERSION
# don't raise for 1.8 because compatibility.
raise ArgumentError, "userinfo not supported. [RFC3986]"
end
header = {}
options.each {|k, v| header[k] = v if String === k }
lib/webrick/httpproxy.rb
require "webrick/httpserver"
require "net/http"
Net::HTTP::version_1_2 if RUBY_VERSION < "1.7"
module WEBrick
NullReader = Object.new
class << NullReader
    (1-1/1)