mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/open-uri.rb: remove needless condition for old ruby version.
* test/open-uri/test_open-uri.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b9a9249f4
commit
d6f0bd2b84
3 changed files with 7 additions and 5 deletions
|
@ -1,3 +1,8 @@
|
|||
Fri Aug 8 17:19:57 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/open-uri.rb: remove needless condition for old ruby version.
|
||||
* test/open-uri/test_open-uri.rb: ditto.
|
||||
|
||||
Fri Aug 8 16:40:59 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* lib/irb/init.rb: removed unreachable code.
|
||||
|
|
|
@ -256,8 +256,7 @@ module OpenURI
|
|||
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.
|
||||
if target.userinfo
|
||||
raise ArgumentError, "userinfo not supported. [RFC3986]"
|
||||
end
|
||||
|
||||
|
|
|
@ -401,9 +401,7 @@ class TestOpenURI < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def test_userinfo
|
||||
if "1.9.0" <= RUBY_VERSION
|
||||
assert_raise(ArgumentError) { open("http://user:pass@127.0.0.1/") {} }
|
||||
end
|
||||
assert_raise(ArgumentError) { open("http://user:pass@127.0.0.1/") {} }
|
||||
end
|
||||
|
||||
def test_progress
|
||||
|
|
Loading…
Reference in a new issue