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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '049540a7791381da861b94d6ed8e6b3e0ad751d3b176106f1c50a029aba36e32'
4
- data.tar.gz: d6431de11836accc4318f01066b3c2431b9f26e349b46e77fcf9108da80cfb5e
3
+ metadata.gz: 1046498fe40f1c0f6c4a07d26fc5571cf0e62d23a2a04d42395067305939e332
4
+ data.tar.gz: 75245045f5ef31e58223e0756fa1545010ee3dd88616e0643d99a2fece75f6a6
5
5
  SHA512:
6
- metadata.gz: 27cee8571add43c57a7b0c2255d7f6a40566d1b44fe49b8ed73a7b06c50ef2d9d259eb951c0ffae7bce3c77f026fb193924f7eb003c85bfc61250661c2ed6135
7
- data.tar.gz: ec74d61c74a06b318b9ff1b9ebcedb261bb90e0f80293b8def6e8d22efeef30db04ebc873e5546f746556312cd45cbeaa6c487893021c0b773a27990a3efd3d5
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.
@@ -7,6 +7,6 @@
7
7
  module Protocol
8
8
  # @namespace
9
9
  module URL
10
- VERSION = "0.18.0"
10
+ VERSION = "0.19.0"
11
11
  end
12
12
  end
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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: protocol-url
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.18.0
4
+ version: 0.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
metadata.gz.sig CHANGED
Binary file