addressable 2.8.7 → 2.8.8
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/CHANGELOG.md +55 -46
- data/README.md +6 -6
- data/addressable.gemspec +6 -6
- data/lib/addressable/idna/pure.rb +4235 -20
- data/lib/addressable/uri.rb +1 -1
- data/lib/addressable/version.rb +1 -1
- data/spec/addressable/uri_spec.rb +15 -1
- data/tasks/gem.rake +6 -1
- data/tasks/profile.rake +1 -1
- metadata +6 -10
- data/data/unicode.data +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5ba707c598b13c65017d7e0087ab2a5d6e53b549a5dd8d6758bf9f44cd4ce089
|
|
4
|
+
data.tar.gz: 1001a3bd33c3338cb5506831fa2c81a858e4f7e4c3d630b1e5cf8db1bb787179
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3810b328b2868fdb3929e6e64ddc1a12a8c9f26e092b95ab582f0d2d52e436e960be1434e3608901d2d657fc86df03f91467383720c70304a3fdaeaa040a2a1c
|
|
7
|
+
data.tar.gz: 482415fe1a529fc5c43183bcd5d3673360d2886467435b8a8c8ed01ab3b8792265808f67704ce01b0d1af5d4888aaa75cc11af464bad70e0e78827f8b56f5cb5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## Addressable 2.8.8 <a name="v2.8.8">
|
|
4
|
+
- Replace the `unicode.data` blob by a ruby constant ([#561])
|
|
5
|
+
- Allow `public_suffix` 7 ([#558])
|
|
6
|
+
|
|
7
|
+
[#561]: https://github.com/sporkmonger/addressable/pull/561
|
|
8
|
+
[#535]: https://github.com/sporkmonger/addressable/pull/558
|
|
9
|
+
|
|
10
|
+
## Addressable 2.8.7 <a name="v2.8.7">
|
|
2
11
|
- Allow `public_suffix` 6 ([#535])
|
|
3
12
|
|
|
4
13
|
[#535]: https://github.com/sporkmonger/addressable/pull/535
|
|
5
14
|
|
|
6
|
-
|
|
15
|
+
## Addressable 2.8.6 <a name="v2.8.6">
|
|
7
16
|
- Memoize regexps for common character classes ([#524])
|
|
8
17
|
|
|
9
18
|
[#524]: https://github.com/sporkmonger/addressable/pull/524
|
|
10
19
|
|
|
11
|
-
|
|
20
|
+
## Addressable 2.8.5 <a name="v2.8.5">
|
|
12
21
|
- Fix thread safety issue with encoding tables ([#515])
|
|
13
22
|
- Define URI::NONE as a module to avoid serialization issues ([#509])
|
|
14
23
|
- Fix YAML serialization ([#508])
|
|
@@ -17,18 +26,18 @@
|
|
|
17
26
|
[#509]: https://github.com/sporkmonger/addressable/pull/509
|
|
18
27
|
[#515]: https://github.com/sporkmonger/addressable/pull/515
|
|
19
28
|
|
|
20
|
-
|
|
29
|
+
## Addressable 2.8.4 <a name="v2.8.4">
|
|
21
30
|
- Restore `Addressable::IDNA.unicode_normalize_kc` as a deprecated method ([#504])
|
|
22
31
|
|
|
23
32
|
[#504]: https://github.com/sporkmonger/addressable/pull/504
|
|
24
33
|
|
|
25
|
-
|
|
34
|
+
## Addressable 2.8.3 <a name="v2.8.3">
|
|
26
35
|
- Fix template expand level 2 hash support for non-string objects ([#499], [#498])
|
|
27
36
|
|
|
28
37
|
[#499]: https://github.com/sporkmonger/addressable/pull/499
|
|
29
38
|
[#498]: https://github.com/sporkmonger/addressable/pull/498
|
|
30
39
|
|
|
31
|
-
|
|
40
|
+
## Addressable 2.8.2 <a name="v2.8.2">
|
|
32
41
|
- Improve cache hits and JIT friendliness ([#486](https://github.com/sporkmonger/addressable/pull/486))
|
|
33
42
|
- Improve code style and test coverage ([#482](https://github.com/sporkmonger/addressable/pull/482))
|
|
34
43
|
- Ensure reset of deferred validation ([#481](https://github.com/sporkmonger/addressable/pull/481))
|
|
@@ -37,7 +46,7 @@
|
|
|
37
46
|
|
|
38
47
|
[#492]: https://github.com/sporkmonger/addressable/pull/492
|
|
39
48
|
|
|
40
|
-
|
|
49
|
+
## Addressable 2.8.1 <a name="v2.8.1">
|
|
41
50
|
- refactor `Addressable::URI.normalize_path` to address linter offenses ([#430](https://github.com/sporkmonger/addressable/pull/430))
|
|
42
51
|
- update gemspec to reflect supported Ruby versions ([#466], [#464], [#463])
|
|
43
52
|
- compatibility w/ public_suffix 5.x ([#466], [#465], [#460])
|
|
@@ -53,7 +62,7 @@
|
|
|
53
62
|
[#465]: https://github.com/sporkmonger/addressable/pull/465
|
|
54
63
|
[#466]: https://github.com/sporkmonger/addressable/pull/466
|
|
55
64
|
|
|
56
|
-
|
|
65
|
+
## Addressable 2.8.0 <a name="v2.8.0">
|
|
57
66
|
- fixes ReDoS vulnerability in Addressable::Template#match
|
|
58
67
|
- no longer replaces `+` with spaces in queries for non-http(s) schemes
|
|
59
68
|
- fixed encoding ipv6 literals
|
|
@@ -65,14 +74,14 @@
|
|
|
65
74
|
- performance improvements
|
|
66
75
|
- switch CI/CD to GitHub Actions
|
|
67
76
|
|
|
68
|
-
|
|
77
|
+
## Addressable 2.7.0 <a name="v2.7.0">
|
|
69
78
|
- added `:compacted` flag to `normalized_query`
|
|
70
79
|
- `heuristic_parse` handles `mailto:` more intuitively
|
|
71
80
|
- dropped explicit support for JRuby 9.0.5.0
|
|
72
81
|
- compatibility w/ public_suffix 4.x
|
|
73
82
|
- performance improvements
|
|
74
83
|
|
|
75
|
-
|
|
84
|
+
## Addressable 2.6.0 <a name="v2.6.0">
|
|
76
85
|
- added `tld=` method to allow assignment to the public suffix
|
|
77
86
|
- most `heuristic_parse` patterns are now case-insensitive
|
|
78
87
|
- `heuristic_parse` handles more `file://` URI variations
|
|
@@ -83,17 +92,17 @@
|
|
|
83
92
|
- minor performance improvements in regexps
|
|
84
93
|
- fixes to eliminate warnings
|
|
85
94
|
|
|
86
|
-
|
|
95
|
+
## Addressable 2.5.2 <a name="v2.5.2">
|
|
87
96
|
- better support for frozen string literals
|
|
88
97
|
- fixed bug w/ uppercase characters in scheme
|
|
89
98
|
- IDNA errors w/ emoji URLs
|
|
90
99
|
- compatibility w/ public_suffix 3.x
|
|
91
100
|
|
|
92
|
-
|
|
101
|
+
## Addressable 2.5.1 <a name="v2.5.1">
|
|
93
102
|
- allow unicode normalization to be disabled for URI Template expansion
|
|
94
103
|
- removed duplicate test
|
|
95
104
|
|
|
96
|
-
|
|
105
|
+
## Addressable 2.5.0 <a name="v2.5.0">
|
|
97
106
|
- dropping support for Ruby 1.9
|
|
98
107
|
- adding support for Ruby 2.4 preview
|
|
99
108
|
- add support for public suffixes and tld; first runtime dependency
|
|
@@ -107,7 +116,7 @@
|
|
|
107
116
|
- host parts longer than 63 bytes will be ignored and not passed to libidn
|
|
108
117
|
- normalized values always encoded as UTF-8
|
|
109
118
|
|
|
110
|
-
|
|
119
|
+
## Addressable 2.4.0 <a name="v2.4.0">
|
|
111
120
|
- support for 1.8.x dropped
|
|
112
121
|
- double quotes in a host now raises an error
|
|
113
122
|
- newlines in host will no longer get unescaped during normalization
|
|
@@ -119,17 +128,17 @@
|
|
|
119
128
|
- fixed minor bug where an exception would be thrown for a missing ACE suffix
|
|
120
129
|
- better partial expansion of URI templates
|
|
121
130
|
|
|
122
|
-
|
|
131
|
+
## Addressable 2.3.8 <a name="v2.3.8">
|
|
123
132
|
- fix warnings
|
|
124
133
|
- update dependency gems
|
|
125
134
|
- support for 1.8.x officially deprecated
|
|
126
135
|
|
|
127
|
-
|
|
136
|
+
## Addressable 2.3.7 <a name="v2.3.7">
|
|
128
137
|
- fix scenario in which invalid URIs don't get an exception until inspected
|
|
129
138
|
- handle hostnames with two adjacent periods correctly
|
|
130
139
|
- upgrade of RSpec
|
|
131
140
|
|
|
132
|
-
|
|
141
|
+
## Addressable 2.3.6 <a name="v2.3.6">
|
|
133
142
|
- normalization drops empty query string
|
|
134
143
|
- better handling in template extract for missing values
|
|
135
144
|
- template modifier for `'?'` now treated as optional
|
|
@@ -138,19 +147,19 @@
|
|
|
138
147
|
- added `:sorted` option to normalization of query strings
|
|
139
148
|
- fixed issue with normalization of hosts given in `'example.com.'` form
|
|
140
149
|
|
|
141
|
-
|
|
150
|
+
## Addressable 2.3.5 <a name="v2.3.5">
|
|
142
151
|
- added Addressable::URI#empty? method
|
|
143
152
|
- Addressable::URI#hostname methods now strip square brackets from IPv6 hosts
|
|
144
153
|
- compatibility with Net::HTTP in Ruby 2.0.0
|
|
145
154
|
- Addressable::URI#route_from should always give relative URIs
|
|
146
155
|
|
|
147
|
-
|
|
156
|
+
## Addressable 2.3.4 <a name="v2.3.4">
|
|
148
157
|
- fixed issue with encoding altering its inputs
|
|
149
158
|
- query string normalization now leaves ';' characters alone
|
|
150
159
|
- FakeFS is detected before attempting to load unicode tables
|
|
151
160
|
- additional testing to ensure frozen objects don't cause problems
|
|
152
161
|
|
|
153
|
-
|
|
162
|
+
## Addressable 2.3.3 <a name="v2.3.3">
|
|
154
163
|
- fixed issue with converting common primitives during template expansion
|
|
155
164
|
- fixed port encoding issue
|
|
156
165
|
- removed a few warnings
|
|
@@ -159,59 +168,59 @@
|
|
|
159
168
|
- no template match should now result in nil instead of an empty MatchData
|
|
160
169
|
- added license information to gemspec
|
|
161
170
|
|
|
162
|
-
|
|
171
|
+
## Addressable 2.3.2 <a name="v2.3.2">
|
|
163
172
|
- added Addressable::URI#default_port method
|
|
164
173
|
- fixed issue with Marshalling Unicode data on Windows
|
|
165
174
|
- improved heuristic parsing to better handle IPv4 addresses
|
|
166
175
|
|
|
167
|
-
|
|
176
|
+
## Addressable 2.3.1 <a name="v2.3.1">
|
|
168
177
|
- fixed missing unicode data file
|
|
169
178
|
|
|
170
|
-
|
|
179
|
+
## Addressable 2.3.0 <a name="v2.3.0">
|
|
171
180
|
- updated Addressable::Template to use RFC 6570, level 4
|
|
172
181
|
- fixed compatibility problems with some versions of Ruby
|
|
173
182
|
- moved unicode tables into a data file for performance reasons
|
|
174
183
|
- removing support for multiple query value notations
|
|
175
184
|
|
|
176
|
-
|
|
185
|
+
## Addressable 2.2.8 <a name="v2.2.8">
|
|
177
186
|
- fixed issues with dot segment removal code
|
|
178
187
|
- form encoding can now handle multiple values per key
|
|
179
188
|
- updated development environment
|
|
180
189
|
|
|
181
|
-
|
|
190
|
+
## Addressable 2.2.7 <a name="v2.2.7">
|
|
182
191
|
- fixed issues related to Addressable::URI#query_values=
|
|
183
192
|
- the Addressable::URI.parse method is now polymorphic
|
|
184
193
|
|
|
185
|
-
|
|
194
|
+
## Addressable 2.2.6 <a name="v2.2.6">
|
|
186
195
|
- changed the way ambiguous paths are handled
|
|
187
196
|
- fixed bug with frozen URIs
|
|
188
197
|
- https supported in heuristic parsing
|
|
189
198
|
|
|
190
|
-
|
|
199
|
+
## Addressable 2.2.5 <a name="v2.2.5">
|
|
191
200
|
- 'parsing' a pre-parsed URI object is now a dup operation
|
|
192
201
|
- introduced conditional support for libidn
|
|
193
202
|
- fixed normalization issue on ampersands in query strings
|
|
194
203
|
- added additional tests around handling of query strings
|
|
195
204
|
|
|
196
|
-
|
|
205
|
+
## Addressable 2.2.4 <a name="v2.2.4">
|
|
197
206
|
- added origin support from draft-ietf-websec-origin-00
|
|
198
207
|
- resolved issue with attempting to navigate below root
|
|
199
208
|
- fixed bug with string splitting in query strings
|
|
200
209
|
|
|
201
|
-
|
|
210
|
+
## Addressable 2.2.3 <a name="v2.2.3">
|
|
202
211
|
- added :flat_array notation for query strings
|
|
203
212
|
|
|
204
|
-
|
|
213
|
+
## Addressable 2.2.2 <a name="v2.2.2">
|
|
205
214
|
- fixed issue with percent escaping of '+' character in query strings
|
|
206
215
|
|
|
207
|
-
|
|
216
|
+
## Addressable 2.2.1 <a name="v2.2.1">
|
|
208
217
|
- added support for application/x-www-form-urlencoded.
|
|
209
218
|
|
|
210
|
-
|
|
219
|
+
## Addressable 2.2.0 <a name="v2.2.0">
|
|
211
220
|
- added site methods
|
|
212
221
|
- improved documentation
|
|
213
222
|
|
|
214
|
-
|
|
223
|
+
## Addressable 2.1.2 <a name="v2.1.2">
|
|
215
224
|
- added HTTP request URI methods
|
|
216
225
|
- better handling of Windows file paths
|
|
217
226
|
- validation_deferred boolean replaced with defer_validation block
|
|
@@ -219,14 +228,14 @@
|
|
|
219
228
|
- fixed issue with constructing URIs with relative paths
|
|
220
229
|
- fixed warnings
|
|
221
230
|
|
|
222
|
-
|
|
231
|
+
## Addressable 2.1.1 <a name="v2.1.1">
|
|
223
232
|
- more type checking changes
|
|
224
233
|
- fixed issue with unicode normalization
|
|
225
234
|
- added method to find template defaults
|
|
226
235
|
- symbolic keys are now allowed in template mappings
|
|
227
236
|
- numeric values and symbolic values are now allowed in template mappings
|
|
228
237
|
|
|
229
|
-
|
|
238
|
+
## Addressable 2.1.0 <a name="v2.1.0x">
|
|
230
239
|
- refactored URI template support out into its own class
|
|
231
240
|
- removed extract method due to being useless and unreliable
|
|
232
241
|
- removed Addressable::URI.expand_template
|
|
@@ -240,15 +249,15 @@
|
|
|
240
249
|
- worked around issue with freezing URIs
|
|
241
250
|
- improved specs
|
|
242
251
|
|
|
243
|
-
|
|
252
|
+
## Addressable 2.0.2 <a name="v2.0.2">
|
|
244
253
|
- fixed issue with URI template expansion
|
|
245
254
|
- fixed issue with percent escaping characters 0-15
|
|
246
255
|
|
|
247
|
-
|
|
256
|
+
## Addressable 2.0.1 <a name="v2.0.1">
|
|
248
257
|
- fixed issue with query string assignment
|
|
249
258
|
- fixed issue with improperly encoded components
|
|
250
259
|
|
|
251
|
-
|
|
260
|
+
## Addressable 2.0.0 <a name="v2.0.0">
|
|
252
261
|
- the initialize method now takes an options hash as its only parameter
|
|
253
262
|
- added query_values method to URI class
|
|
254
263
|
- completely replaced IDNA implementation with pure Ruby
|
|
@@ -263,20 +272,20 @@
|
|
|
263
272
|
- updated URI Template code to match v 03 of the draft spec
|
|
264
273
|
- added a bunch of new specifications
|
|
265
274
|
|
|
266
|
-
|
|
275
|
+
## Addressable 1.0.4 <a name="v1.0.4">
|
|
267
276
|
- switched to using RSpec's pending system for specs that rely on IDN
|
|
268
277
|
- fixed issue with creating URIs with paths that are not prefixed with '/'
|
|
269
278
|
|
|
270
|
-
|
|
279
|
+
## Addressable 1.0.3 <a name="v1.0.3">
|
|
271
280
|
- implemented a hash method
|
|
272
281
|
|
|
273
|
-
|
|
282
|
+
## Addressable 1.0.2 <a name="v1.0.2">
|
|
274
283
|
- fixed minor bug with the extract_mapping method
|
|
275
284
|
|
|
276
|
-
|
|
285
|
+
## Addressable 1.0.1 <a name="v1.0.1">
|
|
277
286
|
- fixed minor bug with the extract_mapping method
|
|
278
287
|
|
|
279
|
-
|
|
288
|
+
## Addressable 1.0.0 <a name="v1.0.0">
|
|
280
289
|
- heuristic parse method added
|
|
281
290
|
- parsing is slightly more strict
|
|
282
291
|
- replaced to_h with to_hash
|
|
@@ -285,16 +294,16 @@
|
|
|
285
294
|
- improved heckle rake task
|
|
286
295
|
- no surviving heckle mutations
|
|
287
296
|
|
|
288
|
-
|
|
297
|
+
## Addressable 0.1.2 <a name="v0.1.2">
|
|
289
298
|
- improved normalization
|
|
290
299
|
- fixed bug in joining algorithm
|
|
291
300
|
- updated specifications
|
|
292
301
|
|
|
293
|
-
|
|
302
|
+
## Addressable 0.1.1 <a name="v0.1.1">
|
|
294
303
|
- updated documentation
|
|
295
304
|
- added URI Template variable extraction
|
|
296
305
|
|
|
297
|
-
|
|
306
|
+
## Addressable 0.1.0 <a name="v0.1.0">
|
|
298
307
|
- initial release
|
|
299
308
|
- implementation based on RFC 3986, 3987
|
|
300
309
|
- support for IRIs via libidn
|
data/README.md
CHANGED
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
[coveralls]: https://coveralls.io/r/sporkmonger/addressable
|
|
18
18
|
[inch]: https://inch-ci.org/github/sporkmonger/addressable
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
## Description
|
|
21
21
|
|
|
22
22
|
Addressable is an alternative implementation to the URI implementation
|
|
23
23
|
that is part of Ruby's standard library. It is flexible, offers heuristic
|
|
@@ -25,12 +25,12 @@ parsing, and additionally provides extensive support for IRIs and URI templates.
|
|
|
25
25
|
|
|
26
26
|
Addressable closely conforms to RFC 3986, RFC 3987, and RFC 6570 (level 4).
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
## Reference
|
|
29
29
|
|
|
30
30
|
- {Addressable::URI}
|
|
31
31
|
- {Addressable::Template}
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
## Example usage
|
|
34
34
|
|
|
35
35
|
```ruby
|
|
36
36
|
require "addressable/uri"
|
|
@@ -49,7 +49,7 @@ uri.normalize
|
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
|
|
52
|
-
|
|
52
|
+
## URI Templates
|
|
53
53
|
|
|
54
54
|
For more details, see [RFC 6570](https://www.rfc-editor.org/rfc/rfc6570.txt).
|
|
55
55
|
|
|
@@ -88,7 +88,7 @@ template.extract(uri)
|
|
|
88
88
|
# }
|
|
89
89
|
```
|
|
90
90
|
|
|
91
|
-
|
|
91
|
+
## Install
|
|
92
92
|
|
|
93
93
|
```console
|
|
94
94
|
$ gem install addressable
|
|
@@ -103,7 +103,7 @@ $ brew install libidn # OS X
|
|
|
103
103
|
$ gem install idn-ruby
|
|
104
104
|
```
|
|
105
105
|
|
|
106
|
-
|
|
106
|
+
## Semantic Versioning
|
|
107
107
|
|
|
108
108
|
This project uses [Semantic Versioning](https://semver.org/). You can (and should) specify your
|
|
109
109
|
dependency using a pessimistic version constraint covering the major and minor
|
data/addressable.gemspec
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: addressable 2.8.
|
|
2
|
+
# stub: addressable 2.8.8 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "addressable".freeze
|
|
6
|
-
s.version = "2.8.
|
|
6
|
+
s.version = "2.8.8".freeze
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
|
-
s.metadata = { "changelog_uri" => "https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md#v2.8.
|
|
9
|
+
s.metadata = { "changelog_uri" => "https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md#v2.8.8" } if s.respond_to? :metadata=
|
|
10
10
|
s.require_paths = ["lib".freeze]
|
|
11
11
|
s.authors = ["Bob Aman".freeze]
|
|
12
|
-
s.date = "
|
|
12
|
+
s.date = "2025-11-24"
|
|
13
13
|
s.description = "Addressable is an alternative implementation to the URI implementation that is\npart of Ruby's standard library. It is flexible, offers heuristic parsing, and\nadditionally provides extensive support for IRIs and URI templates.\n".freeze
|
|
14
14
|
s.email = "bob@sporkmonger.com".freeze
|
|
15
15
|
s.extra_rdoc_files = ["README.md".freeze]
|
|
@@ -18,11 +18,11 @@ Gem::Specification.new do |s|
|
|
|
18
18
|
s.licenses = ["Apache-2.0".freeze]
|
|
19
19
|
s.rdoc_options = ["--main".freeze, "README.md".freeze]
|
|
20
20
|
s.required_ruby_version = Gem::Requirement.new(">= 2.2".freeze)
|
|
21
|
-
s.rubygems_version = "3.
|
|
21
|
+
s.rubygems_version = "3.7.2".freeze
|
|
22
22
|
s.summary = "URI Implementation".freeze
|
|
23
23
|
|
|
24
24
|
s.specification_version = 4
|
|
25
25
|
|
|
26
|
-
s.add_runtime_dependency(%q<public_suffix>.freeze, [">= 2.0.2".freeze, "<
|
|
26
|
+
s.add_runtime_dependency(%q<public_suffix>.freeze, [">= 2.0.2".freeze, "< 8.0".freeze])
|
|
27
27
|
s.add_development_dependency(%q<bundler>.freeze, [">= 1.0".freeze, "< 3.0".freeze])
|
|
28
28
|
end
|