iri 0.11.5 → 0.11.6
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/iri.gemspec +1 -1
- data/lib/iri.rb +4 -3
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7aa1c497498e2f86717f3424aa2ffff883cd0bb802ebd1221eb843bfa9201128
|
|
4
|
+
data.tar.gz: f21579dec4e4f8b10f154346573ec9d315b110af646a038995ad1b0df2835c6f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 787968f9c7351661b0ebda1b7f1e682092c7606e8c55a1b666793c05765d6c94aaa6a57d45e608fb914d2485de4d3e3b54221b3400346a9a6ef9f157edc68c32
|
|
7
|
+
data.tar.gz: 3904c3fa693beba0593d1b3920d819b6aceb4c1f82b5bc47d9637edffa83e2ad45b9e18102c3e256e5eadd00d5847b40cb4ba267b106901e7aea66d88159d64f
|
data/iri.gemspec
CHANGED
|
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
|
|
|
9
9
|
s.required_rubygems_version = Gem::Requirement.new('>= 0') if s.respond_to? :required_rubygems_version=
|
|
10
10
|
s.required_ruby_version = '>=2.2'
|
|
11
11
|
s.name = 'iri'
|
|
12
|
-
s.version = '0.11.
|
|
12
|
+
s.version = '0.11.6'
|
|
13
13
|
s.license = 'MIT'
|
|
14
14
|
s.summary = 'Simple Immutable Ruby URI Builder'
|
|
15
15
|
s.description =
|
data/lib/iri.rb
CHANGED
|
@@ -346,9 +346,10 @@ class Iri
|
|
|
346
346
|
path = path.to_s
|
|
347
347
|
raise ArgumentError, "The path can't be empty" if path.empty?
|
|
348
348
|
modify do |c|
|
|
349
|
-
|
|
350
|
-
c.
|
|
351
|
-
c.
|
|
349
|
+
s = Iri.new(path).to_uri
|
|
350
|
+
c.query = s.query
|
|
351
|
+
c.path = s.path
|
|
352
|
+
c.fragment = s.fragment
|
|
352
353
|
end
|
|
353
354
|
end
|
|
354
355
|
|