aboutsummaryrefslogtreecommitdiffstats
path: root/lib/uri
diff options
context:
space:
mode:
Diffstat (limited to 'lib/uri')
-rw-r--r--lib/uri/common.rb10
-rw-r--r--lib/uri/generic.rb4
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index 10f77caecb..aaafeba478 100644
--- a/lib/uri/common.rb
+++ b/lib/uri/common.rb
@@ -202,13 +202,13 @@ module URI
#
# == Usage
#
- # p = URI::Parser.new
- # p.parse("ldap://ldap.example.com/dc=example?user=john")
- # #=> #<URI::LDAP:0x00000000b9e7e8 URL:ldap://ldap.example.com/dc=example?user=john>
+ # p = URI::Parser.new
+ # p.parse("ldap://ldap.example.com/dc=example?user=john")
+ # #=> #<URI::LDAP:0x00000000b9e7e8 URL:ldap://ldap.example.com/dc=example?user=john>
#
def parse(uri)
scheme, userinfo, host, port,
- registry, path, opaque, query, fragment = self.split(uri)
+ registry, path, opaque, query, fragment = self.split(uri)
if scheme && URI.scheme_list.include?(scheme.upcase)
URI.scheme_list[scheme.upcase].new(scheme, userinfo, host, port,
@@ -273,7 +273,7 @@ module URI
# unless +schemes+ is provided. Then it is a Regexp.union with self.pattern[:X_ABS_URI]
def make_regexp(schemes = nil)
unless schemes
- @regexp[:ABS_URI_REF]
+ @regexp[:ABS_URI_REF]
else
/(?=#{Regexp.union(*schemes)}:)#{@pattern[:X_ABS_URI]}/x
end
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb
index 78e3fc05f7..a37649545a 100644
--- a/lib/uri/generic.rb
+++ b/lib/uri/generic.rb
@@ -1321,8 +1321,8 @@ module URI
self.query, self.fragment, parser)
if rel.userinfo != oth.userinfo ||
- rel.host.to_s.downcase != oth.host.to_s.downcase ||
- rel.port != oth.port
+ rel.host.to_s.downcase != oth.host.to_s.downcase ||
+ rel.port != oth.port
if self.userinfo.nil? && self.host.nil?
return self, self.dup