public_suffix 4.0.2 → 4.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/.rubocop_defaults.yml +23 -23
- data/.travis.yml +0 -2
- data/CHANGELOG.md +73 -58
- data/LICENSE.txt +1 -1
- data/README.md +6 -1
- data/SECURITY.md +101 -0
- data/lib/public_suffix.rb +1 -1
- data/lib/public_suffix/domain.rb +1 -1
- data/lib/public_suffix/errors.rb +1 -1
- data/lib/public_suffix/list.rb +2 -2
- data/lib/public_suffix/rule.rb +1 -1
- data/lib/public_suffix/version.rb +2 -2
- data/test/test_helper.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 62962616c4c61eea8b72706b4f01a7775577f6cf17d38b52fda29fe35809e2c0
|
4
|
+
data.tar.gz: 7d26aed0fb6c50d3d7620330a0bc319fca4a9eb777e526ef87e91019150b53e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b4feb7c4763a8273e870568bd674d70714a809f9d77c799dd51af3b9f682893924d7a69d79e1d8c231f155fde9637dbba0cfa18009d222ce9f1d459816cd0d9
|
7
|
+
data.tar.gz: a7e2fefbf3c506e88a6a954ae203254bf6426c91385d98ca8759f73e8cc47ad3b8513f19b45af903e624cf8fc983ad0c5044b2a33aa340034072ca25d8859128
|
data/.rubocop.yml
CHANGED
data/.rubocop_defaults.yml
CHANGED
@@ -7,37 +7,52 @@ AllCops:
|
|
7
7
|
- 'vendor/**/*'
|
8
8
|
|
9
9
|
# [codesmell]
|
10
|
-
|
10
|
+
Layout/LineLength:
|
11
11
|
Enabled: false
|
12
12
|
Exclude:
|
13
13
|
- 'spec/**/*_spec.rb'
|
14
14
|
- 'test/**/*_test.rb'
|
15
|
+
Max: 100
|
15
16
|
|
16
|
-
#
|
17
|
-
|
18
|
-
|
17
|
+
# Array indentation should be considered like MultilineMethodCallIndentation indentation
|
18
|
+
# and use 4 spaces instead of 2.
|
19
|
+
Layout/FirstArrayElementIndentation:
|
20
|
+
IndentationWidth: 4
|
21
|
+
|
22
|
+
# Hash indentation should be considered like MultilineMethodCallIndentation indentation
|
23
|
+
# and use 4 spaces instead of 2.
|
24
|
+
Layout/FirstHashElementIndentation:
|
25
|
+
IndentationWidth: 4
|
26
|
+
|
27
|
+
# Multi-line differs from standard indentation, they are indented twice.
|
28
|
+
Layout/MultilineMethodCallIndentation:
|
29
|
+
EnforcedStyle: indented
|
30
|
+
IndentationWidth: 4
|
19
31
|
|
20
32
|
# [codesmell]
|
21
|
-
Metrics/
|
33
|
+
Metrics/AbcSize:
|
22
34
|
Enabled: false
|
23
35
|
Exclude:
|
24
36
|
- 'spec/**/*_spec.rb'
|
25
37
|
- 'test/**/*_test.rb'
|
26
38
|
|
27
39
|
# [codesmell]
|
28
|
-
Metrics/
|
40
|
+
Metrics/BlockLength:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
# [codesmell]
|
44
|
+
Metrics/CyclomaticComplexity:
|
29
45
|
Enabled: false
|
30
46
|
Exclude:
|
31
47
|
- 'spec/**/*_spec.rb'
|
32
48
|
- 'test/**/*_test.rb'
|
33
49
|
|
34
50
|
# [codesmell]
|
35
|
-
Metrics/
|
51
|
+
Metrics/ClassLength:
|
36
52
|
Enabled: false
|
37
53
|
Exclude:
|
38
54
|
- 'spec/**/*_spec.rb'
|
39
55
|
- 'test/**/*_test.rb'
|
40
|
-
Max: 100
|
41
56
|
|
42
57
|
# [codesmell]
|
43
58
|
Metrics/MethodLength:
|
@@ -116,21 +131,6 @@ Style/HashSyntax:
|
|
116
131
|
Style/RescueStandardError:
|
117
132
|
Enabled: false
|
118
133
|
|
119
|
-
# Array indentation should be considered like MultilineMethodCallIndentation indentation
|
120
|
-
# and use 4 spaces instead of 2.
|
121
|
-
Layout/IndentFirstArrayElement:
|
122
|
-
IndentationWidth: 4
|
123
|
-
|
124
|
-
# Hash indentation should be considered like MultilineMethodCallIndentation indentation
|
125
|
-
# and use 4 spaces instead of 2.
|
126
|
-
Layout/IndentFirstHashElement:
|
127
|
-
IndentationWidth: 4
|
128
|
-
|
129
|
-
# Multi-line differs from standard indentation, they are indented twice.
|
130
|
-
Layout/MultilineMethodCallIndentation:
|
131
|
-
EnforcedStyle: indented
|
132
|
-
IndentationWidth: 4
|
133
|
-
|
134
134
|
# unless is not always cool.
|
135
135
|
Style/NegatedIf:
|
136
136
|
Enabled: false
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,22 +1,37 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
This project uses [Semantic Versioning 2.0.0](https://semver.org/).
|
3
4
|
|
4
|
-
#### Release 4.0.2
|
5
5
|
|
6
|
-
|
6
|
+
## 4.0.3
|
7
7
|
|
8
|
+
### Fixed
|
8
9
|
|
9
|
-
|
10
|
+
- Fixed 2.7 deprecations and warnings (GH-167). [Thanks @BrianHawley]
|
10
11
|
|
11
|
-
- CHANGED: Updated definitions.
|
12
12
|
|
13
|
+
## 4.0.2
|
13
14
|
|
14
|
-
|
15
|
+
### Changed
|
15
16
|
|
16
|
-
-
|
17
|
+
- Updated definitions.
|
18
|
+
|
19
|
+
|
20
|
+
## 4.0.1
|
21
|
+
|
22
|
+
### Changed
|
23
|
+
|
24
|
+
- Updated definitions.
|
25
|
+
|
26
|
+
|
27
|
+
## 4.0.0
|
28
|
+
|
29
|
+
### Changed
|
30
|
+
|
31
|
+
- Minimum Ruby version is 2.3
|
17
32
|
|
18
33
|
|
19
|
-
|
34
|
+
## Release 3.1.1
|
20
35
|
|
21
36
|
- CHANGED: Updated definitions.
|
22
37
|
- CHANGED: Rolled back support for Ruby 2.3 (GH-161, GH-162)
|
@@ -24,30 +39,30 @@
|
|
24
39
|
IMPORTANT: 3.x is the latest version compatible with Ruby 2.1 and Ruby 2.2.
|
25
40
|
|
26
41
|
|
27
|
-
|
42
|
+
## Release 3.1.0
|
28
43
|
|
29
44
|
- CHANGED: Updated definitions.
|
30
45
|
- CHANGED: Minimum Ruby version is 2.3
|
31
46
|
- CHANGED: Upgraded to Bundler 2.x
|
32
47
|
|
33
48
|
|
34
|
-
|
49
|
+
## Release 3.0.3
|
35
50
|
|
36
51
|
- CHANGED: Updated definitions.
|
37
52
|
|
38
53
|
|
39
|
-
|
54
|
+
## Release 3.0.2
|
40
55
|
|
41
56
|
- CHANGED: Updated definitions.
|
42
57
|
|
43
58
|
|
44
|
-
|
59
|
+
## Release 3.0.1
|
45
60
|
|
46
61
|
- CHANGED: Updated definitions.
|
47
62
|
- CHANGED: Improve performance and avoid allocation (GH-146). [Thanks @robholland]
|
48
63
|
|
49
64
|
|
50
|
-
|
65
|
+
## Release 3.0.0
|
51
66
|
|
52
67
|
This new version includes a major redesign of the library internals, with the goal to drastically
|
53
68
|
improve the lookup time while reducing storage space.
|
@@ -64,35 +79,35 @@ and/or removed. You can find more information at GH-133.
|
|
64
79
|
- CHANGED: Redesigned internal list storage and lookup algorithm to achieve O(1) lookup time (see GH-133).
|
65
80
|
|
66
81
|
|
67
|
-
|
82
|
+
## Release 2.0.5
|
68
83
|
|
69
84
|
- CHANGED: Updated definitions.
|
70
85
|
- CHANGED: Initialization performance improvements (GH-128). [Thanks @casperisfine]
|
71
86
|
|
72
87
|
|
73
|
-
|
88
|
+
## Release 2.0.4
|
74
89
|
|
75
90
|
- FIXED: Fix a bug that caused the GEM to be published with the wrong version number in the gemspec (GH-121).
|
76
91
|
|
77
92
|
- CHANGED: Updated definitions.
|
78
93
|
|
79
94
|
|
80
|
-
|
95
|
+
## Release 2.0.3
|
81
96
|
|
82
97
|
- CHANGED: Updated definitions.
|
83
98
|
|
84
99
|
|
85
|
-
|
100
|
+
## Release 2.0.2
|
86
101
|
|
87
102
|
- CHANGED: Updated definitions.
|
88
103
|
|
89
104
|
|
90
|
-
|
105
|
+
## Release 2.0.1
|
91
106
|
|
92
107
|
- FIXED: Fix bug that prevented .valid? to reset the default rule
|
93
108
|
|
94
109
|
|
95
|
-
|
110
|
+
## Release 2.0.0
|
96
111
|
|
97
112
|
- NEW: Added PublicSuffix.domain # => sld.tld
|
98
113
|
- NEW: Added the ability to disable the use of private domains either at runtime, in addition to the ability to not load the private domains section when reading the list (`private_domains: false`). This feature also superseded the `private_domains` class-level attribute, that is no longer available.
|
@@ -109,97 +124,97 @@ and/or removed. You can find more information at GH-133.
|
|
109
124
|
- REMOVED: Removed futile utility helpers such as `Domain#rule`, `Domain#is_a_domain?`, `Domain#is_a_subdomain?`, `Domain#valid?`. You can easily obtain the same result by having a custom method that reconstructs the logic, and/or calling `PublicSuffix.{domain|parse}(domain.to_s)`.
|
110
125
|
|
111
126
|
|
112
|
-
|
127
|
+
## Release 1.5.3
|
113
128
|
|
114
129
|
- FIXED: Don't duplicate rule indices when creating index (GH-77). [Thanks @ags]
|
115
130
|
|
116
131
|
- CHANGED: Updated definitions.
|
117
132
|
|
118
133
|
|
119
|
-
|
134
|
+
## Release 1.5.2
|
120
135
|
|
121
136
|
- CHANGED: Updated definitions.
|
122
137
|
|
123
138
|
|
124
|
-
|
139
|
+
## Release 1.5.1
|
125
140
|
|
126
141
|
- FIXED: Ignore case for parsing and validating (GH-62)
|
127
142
|
|
128
143
|
- CHANGED: Updated definitions.
|
129
144
|
|
130
145
|
|
131
|
-
|
146
|
+
## Release 1.5.0
|
132
147
|
|
133
148
|
- CHANGED: Dropped support for Ruby < 2.0
|
134
149
|
|
135
150
|
- CHANGED: Updated definitions.
|
136
151
|
|
137
152
|
|
138
|
-
|
153
|
+
## Release 1.4.6
|
139
154
|
|
140
155
|
- CHANGED: Updated definitions.
|
141
156
|
|
142
157
|
|
143
|
-
|
158
|
+
## Release 1.4.5
|
144
159
|
|
145
160
|
- CHANGED: Updated definitions.
|
146
161
|
|
147
162
|
|
148
|
-
|
163
|
+
## Release 1.4.4
|
149
164
|
|
150
165
|
- CHANGED: Updated definitions.
|
151
166
|
|
152
167
|
|
153
|
-
|
168
|
+
## Release 1.4.3
|
154
169
|
|
155
170
|
- CHANGED: Updated definitions.
|
156
171
|
|
157
172
|
|
158
|
-
|
173
|
+
## Release 1.4.2
|
159
174
|
|
160
175
|
- CHANGED: Updated definitions.
|
161
176
|
|
162
177
|
|
163
|
-
|
178
|
+
## Release 1.4.1
|
164
179
|
|
165
180
|
- CHANGED: Updated definitions.
|
166
181
|
|
167
182
|
|
168
|
-
|
183
|
+
## Release 1.4.0
|
169
184
|
|
170
185
|
- CHANGED: Moved the definitions in the lib folder.
|
171
186
|
|
172
187
|
- CHANGED: Updated definitions.
|
173
188
|
|
174
189
|
|
175
|
-
|
190
|
+
## Release 1.3.3
|
176
191
|
|
177
192
|
- CHANGED: Updated definitions.
|
178
193
|
|
179
194
|
|
180
|
-
|
195
|
+
## Release 1.3.2
|
181
196
|
|
182
197
|
- CHANGED: Updated definitions.
|
183
198
|
|
184
199
|
|
185
|
-
|
200
|
+
## Release 1.3.1
|
186
201
|
|
187
202
|
- CHANGED: Updated definitions.
|
188
203
|
|
189
204
|
|
190
|
-
|
205
|
+
## Release 1.3.0
|
191
206
|
|
192
207
|
- NEW: Ability to skip Private Domains (GH-28). [Thanks @rb2k]
|
193
208
|
|
194
209
|
- CHANGED: Updated definitions.
|
195
210
|
|
196
211
|
|
197
|
-
|
212
|
+
## Release 1.2.1
|
198
213
|
|
199
214
|
- CHANGED: Updated definitions.
|
200
215
|
|
201
216
|
|
202
|
-
|
217
|
+
## Release 1.2.0
|
203
218
|
|
204
219
|
- NEW: Allow a custom List on `PublicSuffix.parse` (GH-26). [Thanks @itspriddle]
|
205
220
|
|
@@ -208,22 +223,22 @@ and/or removed. You can find more information at GH-133.
|
|
208
223
|
- CHANGED: Updated definitions.
|
209
224
|
|
210
225
|
|
211
|
-
|
226
|
+
## Release 1.1.3
|
212
227
|
|
213
228
|
- CHANGED: Updated definitions.
|
214
229
|
|
215
230
|
|
216
|
-
|
231
|
+
## Release 1.1.2
|
217
232
|
|
218
233
|
- CHANGED: Updated definitions.
|
219
234
|
|
220
235
|
|
221
|
-
|
236
|
+
## Release 1.1.1
|
222
237
|
|
223
238
|
- CHANGED: Updated definitions.
|
224
239
|
|
225
240
|
|
226
|
-
|
241
|
+
## Release 1.1.0
|
227
242
|
|
228
243
|
- FIXED: #valid? and #parse consider URIs as valid domains (GH-15)
|
229
244
|
|
@@ -232,17 +247,17 @@ and/or removed. You can find more information at GH-133.
|
|
232
247
|
- CHANGED: Removed deprecatd PublicSuffixService::RuleList.
|
233
248
|
|
234
249
|
|
235
|
-
|
250
|
+
## Release 1.0.0
|
236
251
|
|
237
252
|
- CHANGED: Updated definitions.
|
238
253
|
|
239
254
|
|
240
|
-
|
255
|
+
## Release 1.0.0.rc1
|
241
256
|
|
242
257
|
The library is now known as PublicSuffix.
|
243
258
|
|
244
259
|
|
245
|
-
|
260
|
+
## Release 0.9.1
|
246
261
|
|
247
262
|
- CHANGED: Renamed PublicSuffixService::RuleList to PublicSuffixService::List.
|
248
263
|
|
@@ -253,20 +268,20 @@ The library is now known as PublicSuffix.
|
|
253
268
|
- CHANGED: Updated definitions.
|
254
269
|
|
255
270
|
|
256
|
-
|
271
|
+
## Release 0.9.0
|
257
272
|
|
258
273
|
- CHANGED: Minimum Ruby version increased to Ruby 1.8.7.
|
259
274
|
|
260
275
|
- CHANGED: rake/gempackagetask is deprecated. Use rubygems/package_task instead.
|
261
276
|
|
262
277
|
|
263
|
-
|
278
|
+
## Release 0.8.4
|
264
279
|
|
265
280
|
- FIXED: Reverted bugfix for issue #12 for Ruby 1.8.6.
|
266
281
|
This is the latest version compatible with Ruby 1.8.6.
|
267
282
|
|
268
283
|
|
269
|
-
|
284
|
+
## Release 0.8.3
|
270
285
|
|
271
286
|
- FIXED: Fixed ArgumentError: invalid byte sequence in US-ASCII with Ruby 1.9.2 (#12).
|
272
287
|
|
@@ -275,7 +290,7 @@ The library is now known as PublicSuffix.
|
|
275
290
|
- CHANGED: Renamed definitions.txt to definitions.dat.
|
276
291
|
|
277
292
|
|
278
|
-
|
293
|
+
## Release 0.8.2
|
279
294
|
|
280
295
|
- NEW: Added support for rubygems-test.
|
281
296
|
|
@@ -284,19 +299,19 @@ The library is now known as PublicSuffix.
|
|
284
299
|
- CHANGED: Updated definitions.
|
285
300
|
|
286
301
|
|
287
|
-
|
302
|
+
## Release 0.8.1
|
288
303
|
|
289
304
|
- FIXED: The files in the release 0.8.0 have wrong permission 600 and can't be loaded (#10).
|
290
305
|
|
291
306
|
|
292
|
-
|
307
|
+
## Release 0.8.0
|
293
308
|
|
294
309
|
- CHANGED: Update public suffix list to d1a5599b49fa 2010-10-25 15:10 +0100 (#9)
|
295
310
|
|
296
311
|
- NEW: Add support for Fully Qualified Domain Names (#7)
|
297
312
|
|
298
313
|
|
299
|
-
|
314
|
+
## Release 0.7.0
|
300
315
|
|
301
316
|
- CHANGED: Using YARD to document the code instead of RDoc.
|
302
317
|
|
@@ -305,7 +320,7 @@ The library is now known as PublicSuffix.
|
|
305
320
|
- FIXED: PublicSuffixService.valid? should return false if the domain is not defined or not allowed (#4, #5)
|
306
321
|
|
307
322
|
|
308
|
-
|
323
|
+
## Release 0.6.0
|
309
324
|
|
310
325
|
- NEW: PublicSuffixService.parse raises DomainNotAllowed when trying to parse a domain name
|
311
326
|
which exists, but is not allowed by the current definition list (#3)
|
@@ -316,34 +331,34 @@ The library is now known as PublicSuffix.
|
|
316
331
|
- CHANGED: Renamed PublicSuffixService::InvalidDomain to PublicSuffixService::DomainInvalid
|
317
332
|
|
318
333
|
|
319
|
-
|
334
|
+
## Release 0.5.2
|
320
335
|
|
321
336
|
- CHANGED: Update public suffix list to 248ea690d671 2010-09-16 18:02 +0100
|
322
337
|
|
323
338
|
|
324
|
-
|
339
|
+
## Release 0.5.1
|
325
340
|
|
326
341
|
- CHANGED: Update public suffix list to 14dc66dd53c1 2010-09-15 17:09 +0100
|
327
342
|
|
328
343
|
|
329
|
-
|
344
|
+
## Release 0.5.0
|
330
345
|
|
331
346
|
- CHANGED: Improve documentation for Domain#domain and Domain#subdomain (#1).
|
332
347
|
|
333
348
|
- CHANGED: Performance improvements (#2).
|
334
349
|
|
335
350
|
|
336
|
-
|
351
|
+
## Release 0.4.0
|
337
352
|
|
338
353
|
- CHANGED: Rename library from DomainName to PublicSuffixService to reduce the probability of name conflicts.
|
339
354
|
|
340
355
|
|
341
|
-
|
356
|
+
## Release 0.3.1
|
342
357
|
|
343
358
|
- Deprecated DomainName library.
|
344
359
|
|
345
360
|
|
346
|
-
|
361
|
+
## Release 0.3.0
|
347
362
|
|
348
363
|
- CHANGED: DomainName#domain and DomainName#subdomain are no longer alias of Domain#sld and Domain#tld.
|
349
364
|
|
@@ -354,7 +369,7 @@ The library is now known as PublicSuffix.
|
|
354
369
|
- CHANGED: Refactoring the entire DomainName API. Removed the internal on-the-fly parsing. Added a bunch of new methods to check and validate the DomainName.
|
355
370
|
|
356
371
|
|
357
|
-
|
372
|
+
## Release 0.2.0
|
358
373
|
|
359
374
|
- NEW: DomainName#valid?
|
360
375
|
|
@@ -365,6 +380,6 @@ The library is now known as PublicSuffix.
|
|
365
380
|
- CHANGED: Make sure RuleList lookup is only performed once.
|
366
381
|
|
367
382
|
|
368
|
-
|
383
|
+
## Release 0.1.0
|
369
384
|
|
370
385
|
- Initial version
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -190,6 +190,11 @@ Library documentation is auto-generated from the [README](https://github.com/wep
|
|
190
190
|
[Consider subscribing to Tidelift which provides Enterprise support for this project](https://tidelift.com/subscription/pkg/rubygems-public-suffix?utm_source=rubygems-public-suffix&utm_medium=referral&utm_campaign=readme) as part of the Tidelift Subscription. Tidelift subscriptions also help the maintainers by funding the project, which in turn allows us to ship releases, bugfixes, and security updates more often.
|
191
191
|
|
192
192
|
|
193
|
+
## Security and Vulnerability Reporting
|
194
|
+
|
195
|
+
Full information and description of our security policy please visit [`SECURITY.md`](SECURITY.md)
|
196
|
+
|
197
|
+
|
193
198
|
## Changelog
|
194
199
|
|
195
200
|
See the [CHANGELOG.md](CHANGELOG.md) file for details.
|
@@ -197,6 +202,6 @@ See the [CHANGELOG.md](CHANGELOG.md) file for details.
|
|
197
202
|
|
198
203
|
## License
|
199
204
|
|
200
|
-
Copyright (c) 2009-
|
205
|
+
Copyright (c) 2009-2020 Simone Carletti. This is Free Software distributed under the MIT license.
|
201
206
|
|
202
207
|
The [Public Suffix List source](https://publicsuffix.org/list/) is subject to the terms of the Mozilla Public License, v. 2.0.
|
data/SECURITY.md
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Supported Versions
|
4
|
+
|
5
|
+
Security updates are provided only for the current minor version.
|
6
|
+
|
7
|
+
If you are using a previous minor version, we recommend to upgrade to the current minor version.
|
8
|
+
This project uses [semantic versioning](https://semver.org/), therefore you can upgrade to a more recent minor version without incurring into breaking changes.
|
9
|
+
|
10
|
+
Exceptionally, we may support previous minor versions upon request if there are significant reasons preventing to immediately switch the latest minor version.
|
11
|
+
|
12
|
+
Older major versions are no longer supported.
|
13
|
+
|
14
|
+
|
15
|
+
## Reporting a Vulnerability
|
16
|
+
|
17
|
+
To make a report, please email weppos@weppos.net.
|
18
|
+
|
19
|
+
Please consider encrypting your report with GPG using the key (0x420da82a989398df)[https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x420da82a989398df]
|
20
|
+
|
21
|
+
```
|
22
|
+
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
23
|
+
|
24
|
+
xsBNBE/QiI0BCACtBbjJnJIzaLb4NfjaljzT/+dvodst+wyDRE8Vwc6ujwboZjr2
|
25
|
+
0QwXScNzObPazyvkSZVh3g6PveneeSD0dSw2XDqKbbtLMg/Ss12yqXJfjavH/zjk
|
26
|
+
6Xq+nnbSnxBPzwFAAEaEFIc6H6BygJ7zHPP5WEY5QIMqifEAX//aBqHi4GXHJiHE
|
27
|
+
237Zqufdry23jBYjY7w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ACgkQcBROh493BN9hdwf9
|
86
|
+
GjiF1GcQN+3TZkXdr2WY0AlbcA/wBp6+ShnqcoU5XLuA0RY3+rWGuaSc2buLke6Y
|
87
|
+
2MhMAYcgmPdG+WTBoW5dWQGXBZ1IHYVR8HLGaF+Vate1MofE1BNHXhnilIMMfH4G
|
88
|
+
Tcr3Z3/FaSk9OdHlyiE/Jo7++8PQ+auHVyjtqry+/ysAnyr+lnCn+K4E0PQ1fYpP
|
89
|
+
fiawKtfSqk9h6HjjMyx9Adrz+ljXh+NyVqYZUfRytjgO+v+dAQmMczT1EawLTdX+
|
90
|
+
trx1tHR549pEey7in5QKsje3GLH4zq4mCdWBlivQxmmmlvR07DysLADMbcpjKK2g
|
91
|
+
utfzygZHCU9hWGR3wbWZ7lXjB/0ZzutNaNYzSCkiC8PIWH1bG+TJO9pslHwP+aBJ
|
92
|
+
NGAmcwyOH9Bub2CSXikQFZNUmVRwtl7mN4bVAHI8zbMd6xdlX22yDgQei54dPXDw
|
93
|
+
UYsvGE4zmrD97he1EYcIOKMFHzlJNcWK+uR7lEq6mv7SFGnBr8qTYZRi1bySRgwd
|
94
|
+
UORuDV12GKTen9WectKtepW0fgYSz+udbDKQyyRef+7xGtCErWRL7f1qr8xm60da
|
95
|
+
+gSwyD/WkPTY8SP2mdq4u+6m4dWS26kKoENwuL7jUktl/C/EG7NmUKURbXG8lmeu
|
96
|
+
q59MIs/Fb3SgaO+zN2FZTYp6dyRJHbeEz55JdOu6F+6ihZYH
|
97
|
+
=j6Xr
|
98
|
+
-----END PGP PUBLIC KEY BLOCK-----
|
99
|
+
```
|
100
|
+
|
101
|
+
|
data/lib/public_suffix.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
#
|
5
5
|
# Domain name parser based on the Public Suffix List.
|
6
6
|
#
|
7
|
-
# Copyright (c) 2009-
|
7
|
+
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
8
8
|
|
9
9
|
require_relative "public_suffix/domain"
|
10
10
|
require_relative "public_suffix/version"
|
data/lib/public_suffix/domain.rb
CHANGED
data/lib/public_suffix/errors.rb
CHANGED
data/lib/public_suffix/list.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
#
|
5
5
|
# Domain name parser based on the Public Suffix List.
|
6
6
|
#
|
7
|
-
# Copyright (c) 2009-
|
7
|
+
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
8
8
|
|
9
9
|
module PublicSuffix
|
10
10
|
|
@@ -48,7 +48,7 @@ module PublicSuffix
|
|
48
48
|
#
|
49
49
|
# @return [PublicSuffix::List]
|
50
50
|
def self.default(**options)
|
51
|
-
@default ||= parse(File.read(DEFAULT_LIST_PATH), options)
|
51
|
+
@default ||= parse(File.read(DEFAULT_LIST_PATH), **options)
|
52
52
|
end
|
53
53
|
|
54
54
|
# Sets the default rule list to +value+.
|
data/lib/public_suffix/rule.rb
CHANGED
@@ -5,9 +5,9 @@
|
|
5
5
|
#
|
6
6
|
# Domain name parser based on the Public Suffix List.
|
7
7
|
#
|
8
|
-
# Copyright (c) 2009-
|
8
|
+
# Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
|
9
9
|
|
10
10
|
module PublicSuffix
|
11
11
|
# The current library version.
|
12
|
-
VERSION = "4.0.
|
12
|
+
VERSION = "4.0.3"
|
13
13
|
end
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: public_suffix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Carletti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -73,6 +73,7 @@ files:
|
|
73
73
|
- LICENSE.txt
|
74
74
|
- README.md
|
75
75
|
- Rakefile
|
76
|
+
- SECURITY.md
|
76
77
|
- bin/console
|
77
78
|
- data/list.txt
|
78
79
|
- lib/public_suffix.rb
|
@@ -123,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
124
|
- !ruby/object:Gem::Version
|
124
125
|
version: '0'
|
125
126
|
requirements: []
|
126
|
-
rubygems_version: 3.
|
127
|
+
rubygems_version: 3.1.2
|
127
128
|
signing_key:
|
128
129
|
specification_version: 4
|
129
130
|
summary: Domain name parser based on the Public Suffix List.
|