summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-15 16:51:31 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-03-15 16:51:31 +0000
commit04883f12c8944922117482d4d446502e5d5d3413 ()
treef53ea95a094653f08804dcd0797129c1a96ce1d2
parent09fb6248389be31975480306654a18cf4cea232a (diff)
Introduce URI::File to handle file URI scheme
* the default value of URI::File's authority is "" (localhost). Both nil and "localhost" is normalized to "" by default. * URI::File ignores setting userinfo and port [Feature #14035] fix https://.com/ruby/ruby/pull/1719 fic https://.com/ruby/ruby/pull/1832 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62767 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--NEWS4
-rw-r--r--lib/uri.rb4
-rw-r--r--lib/uri/file.rb95
-rw-r--r--test/uri/test_file.rb67
4 files changed, 169 insertions, 1 deletions
@@ -132,6 +132,10 @@ with all sufficient information, see the ChangeLog file or Redmine
* Set#filter! is a new alias for Set#select! [Feature #13784]
=== Compatibility issues (excluding feature bug fixes)
=== Stdlib compatibility issues (excluding feature bug fixes)
@@ -41,7 +41,7 @@
# #=> URI::RSYNC
#
# URI.scheme_list
-# #=> {"FTP"=>URI::FTP, "HTTP"=>URI::HTTP, "HTTPS"=>URI::HTTPS,
# "LDAP"=>URI::LDAP, "LDAPS"=>URI::LDAPS, "MAILTO"=>URI::MailTo,
# "RSYNC"=>URI::RSYNC}
#
@@ -65,6 +65,7 @@
# == Class tree
#
# - URI::Generic (in uri/generic.rb)
# - URI::FTP - (in uri/ftp.rb)
# - URI::HTTP - (in uri/http.rb)
# - URI::HTTPS - (in uri/https.rb)
@@ -104,6 +105,7 @@ end
require 'uri/common'
require 'uri/generic'
require 'uri/ftp'
require 'uri/http'
require 'uri/https'
@@ -0,0 +1,95 @@
@@ -0,0 +1,67 @@