protocol-url 0.18.0 → 0.19.0
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
- checksums.yaml.gz.sig +0 -0
- data/lib/protocol/url/reference.rb +3 -1
- data/lib/protocol/url/version.rb +1 -1
- data/readme.md +40 -0
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1046498fe40f1c0f6c4a07d26fc5571cf0e62d23a2a04d42395067305939e332
|
|
4
|
+
data.tar.gz: 75245045f5ef31e58223e0756fa1545010ee3dd88616e0643d99a2fece75f6a6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 50732055bf8ced444ad5778ce8cc0ad1c1058345550e601e8cdc073c9e658fb2fae58c04f483e340f59814e54fde8a673e7a49c989ccbd7990041346c93d2013
|
|
7
|
+
data.tar.gz: f89051a69478d7fac5632e95b3fd59f2ece97460c10e846165b2255d0d3241d2e3d60768b22c68b8ed5c2f3fae52b97e2e8dda2de58a2401728b5a3ce1e4d96f
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
|
@@ -132,6 +132,8 @@ module Protocol
|
|
|
132
132
|
#
|
|
133
133
|
# Afterwards, the `query` attribute will be cleared.
|
|
134
134
|
#
|
|
135
|
+
# If there is no query string or existing parameters, an empty mutable hash is created.
|
|
136
|
+
#
|
|
135
137
|
# @returns [Hash] The merged parameters.
|
|
136
138
|
def parse_query!(encoding = Encoding)
|
|
137
139
|
if @query and !@query.empty?
|
|
@@ -146,7 +148,7 @@ module Protocol
|
|
|
146
148
|
@query = nil
|
|
147
149
|
end
|
|
148
150
|
|
|
149
|
-
return @parameters
|
|
151
|
+
return @parameters ||= {}
|
|
150
152
|
end
|
|
151
153
|
|
|
152
154
|
# @returns [Boolean] Whether the reference has a query string.
|
data/lib/protocol/url/version.rb
CHANGED
data/readme.md
CHANGED
|
@@ -34,6 +34,46 @@ bundle exec sus
|
|
|
34
34
|
|
|
35
35
|
Please see the [project releases](https://socketry.github.io/protocol-url/releases/index) for all releases.
|
|
36
36
|
|
|
37
|
+
### v0.18.0
|
|
38
|
+
|
|
39
|
+
- Support explicit URL serialization for mixed grammars, and remove explicit prefixes from relative path calculation.
|
|
40
|
+
|
|
41
|
+
### v0.17.0
|
|
42
|
+
|
|
43
|
+
- Add optional explicit `./` prefixes when generating same-directory relative URLs.
|
|
44
|
+
|
|
45
|
+
### v0.16.0
|
|
46
|
+
|
|
47
|
+
- Preserve directory and file semantics when generating relative URL paths.
|
|
48
|
+
|
|
49
|
+
### v0.15.0
|
|
50
|
+
|
|
51
|
+
- Add `Protocol::URL::Relative#relative_to` for expressing root-relative URLs relative to a base path.
|
|
52
|
+
|
|
53
|
+
### v0.14.0
|
|
54
|
+
|
|
55
|
+
- Allow paths to compare with their encoded string representation.
|
|
56
|
+
|
|
57
|
+
### v0.13.0
|
|
58
|
+
|
|
59
|
+
- Add conservative normalization of encoded URL paths.
|
|
60
|
+
|
|
61
|
+
### v0.12.0
|
|
62
|
+
|
|
63
|
+
- Allow unfrozen relative and absolute URLs to replace their components.
|
|
64
|
+
|
|
65
|
+
### v0.10.0
|
|
66
|
+
|
|
67
|
+
- Rename `Protocol::URL::FormData::Parser::CONTENT_TYPE` to `MEDIA_TYPE`.
|
|
68
|
+
|
|
69
|
+
### v0.9.0
|
|
70
|
+
|
|
71
|
+
- Add `Protocol::URL::LimitError` for configured processing limits.
|
|
72
|
+
|
|
73
|
+
### v0.8.0
|
|
74
|
+
|
|
75
|
+
- Use consistent limit naming for form data parser constraints.
|
|
76
|
+
|
|
37
77
|
### v0.18.0
|
|
38
78
|
|
|
39
79
|
- Support explicit URL serialization for mixed grammars, and remove explicit prefixes from relative path calculation.
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|