diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-15 16:51:31 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-03-15 16:51:31 +0000 |
commit | 04883f12c8944922117482d4d446502e5d5d3413 () | |
tree | f53ea95a094653f08804dcd0797129c1a96ce1d2 /lib/uri.rb | |
parent | 09fb6248389be31975480306654a18cf4cea232a (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-- | lib/uri.rb | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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' |