uri 0.13.1 → 0.13.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/uri/generic.rb +7 -8
- data/lib/uri/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c48d404937252d15c0d0b86b13e97c95bfe6f064d102a30f2315a232f6fa8f0
|
4
|
+
data.tar.gz: 82ac08510e8d10ce1b4974d4ea3688dc96c4ee181c7ec9caf05265bc7d302694
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56d1883dc76ec22d874a8a3b69a554c3a66b53bc9731818c45bb5f2a89ac1f09df43d678578c041c01669c2dcfb8a568da5ac4b1bfe357d476c679973ba3f6c2
|
7
|
+
data.tar.gz: 5d35aa86097abc0d179a6bab84c381130c255fe19f412233da98d6688f77e9f687fd3647ee5e3d58d60243564ac4946b8733510c95bc212adfe8ccf559d1acef
|
data/lib/uri/generic.rb
CHANGED
@@ -1133,17 +1133,16 @@ module URI
|
|
1133
1133
|
base.fragment=(nil)
|
1134
1134
|
|
1135
1135
|
# RFC2396, Section 5.2, 4)
|
1136
|
-
if
|
1137
|
-
base.
|
1138
|
-
|
1139
|
-
|
1140
|
-
base.set_path(rel.path)
|
1136
|
+
if authority
|
1137
|
+
base.set_userinfo(rel.userinfo)
|
1138
|
+
base.set_host(rel.host)
|
1139
|
+
base.set_port(rel.port || base.default_port)
|
1140
|
+
base.set_path(rel.path)
|
1141
|
+
elsif base.path && rel.path
|
1142
|
+
base.set_path(merge_path(base.path, rel.path))
|
1141
1143
|
end
|
1142
1144
|
|
1143
1145
|
# RFC2396, Section 5.2, 7)
|
1144
|
-
base.set_userinfo(rel.userinfo) if rel.userinfo
|
1145
|
-
base.set_host(rel.host) if rel.host
|
1146
|
-
base.set_port(rel.port) if rel.port
|
1147
1146
|
base.query = rel.query if rel.query
|
1148
1147
|
base.fragment=(rel.fragment) if rel.fragment
|
1149
1148
|
|
data/lib/uri/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira Yamada
|
8
|
+
autorequire:
|
8
9
|
bindir: exe
|
9
10
|
cert_chain: []
|
10
|
-
date:
|
11
|
+
date: 2025-02-26 00:00:00.000000000 Z
|
11
12
|
dependencies: []
|
12
13
|
description: URI is a module providing classes to handle Uniform Resource Identifiers
|
13
14
|
email:
|
@@ -53,6 +54,7 @@ metadata:
|
|
53
54
|
documentation_uri: https://ruby.github.io/uri/
|
54
55
|
homepage_uri: https://github.com/ruby/uri
|
55
56
|
source_code_uri: https://github.com/ruby/uri
|
57
|
+
post_install_message:
|
56
58
|
rdoc_options: []
|
57
59
|
require_paths:
|
58
60
|
- lib
|
@@ -67,7 +69,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
69
|
- !ruby/object:Gem::Version
|
68
70
|
version: '0'
|
69
71
|
requirements: []
|
70
|
-
rubygems_version: 3.
|
72
|
+
rubygems_version: 3.4.19
|
73
|
+
signing_key:
|
71
74
|
specification_version: 4
|
72
75
|
summary: URI is a module providing classes to handle Uniform Resource Identifiers
|
73
76
|
test_files: []
|