public_suffix 4.0.1 → 4.0.3
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/.rubocop.yml +1 -1
- data/.rubocop_defaults.yml +23 -23
- data/.travis.yml +0 -2
- data/CHANGELOG.md +76 -56
- data/LICENSE.txt +1 -1
- data/README.md +6 -1
- data/SECURITY.md +101 -0
- data/data/list.txt +141 -83
- 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 -4
- data/.ruby-gemset +0 -1
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,17 +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.1
|
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
|
-
|
12
|
+
|
13
|
+
## 4.0.2
|
14
|
+
|
15
|
+
### Changed
|
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
|
12
32
|
|
13
33
|
|
14
|
-
|
34
|
+
## Release 3.1.1
|
15
35
|
|
16
36
|
- CHANGED: Updated definitions.
|
17
37
|
- CHANGED: Rolled back support for Ruby 2.3 (GH-161, GH-162)
|
@@ -19,30 +39,30 @@
|
|
19
39
|
IMPORTANT: 3.x is the latest version compatible with Ruby 2.1 and Ruby 2.2.
|
20
40
|
|
21
41
|
|
22
|
-
|
42
|
+
## Release 3.1.0
|
23
43
|
|
24
44
|
- CHANGED: Updated definitions.
|
25
45
|
- CHANGED: Minimum Ruby version is 2.3
|
26
46
|
- CHANGED: Upgraded to Bundler 2.x
|
27
47
|
|
28
48
|
|
29
|
-
|
49
|
+
## Release 3.0.3
|
30
50
|
|
31
51
|
- CHANGED: Updated definitions.
|
32
52
|
|
33
53
|
|
34
|
-
|
54
|
+
## Release 3.0.2
|
35
55
|
|
36
56
|
- CHANGED: Updated definitions.
|
37
57
|
|
38
58
|
|
39
|
-
|
59
|
+
## Release 3.0.1
|
40
60
|
|
41
61
|
- CHANGED: Updated definitions.
|
42
62
|
- CHANGED: Improve performance and avoid allocation (GH-146). [Thanks @robholland]
|
43
63
|
|
44
64
|
|
45
|
-
|
65
|
+
## Release 3.0.0
|
46
66
|
|
47
67
|
This new version includes a major redesign of the library internals, with the goal to drastically
|
48
68
|
improve the lookup time while reducing storage space.
|
@@ -59,35 +79,35 @@ and/or removed. You can find more information at GH-133.
|
|
59
79
|
- CHANGED: Redesigned internal list storage and lookup algorithm to achieve O(1) lookup time (see GH-133).
|
60
80
|
|
61
81
|
|
62
|
-
|
82
|
+
## Release 2.0.5
|
63
83
|
|
64
84
|
- CHANGED: Updated definitions.
|
65
85
|
- CHANGED: Initialization performance improvements (GH-128). [Thanks @casperisfine]
|
66
86
|
|
67
87
|
|
68
|
-
|
88
|
+
## Release 2.0.4
|
69
89
|
|
70
90
|
- FIXED: Fix a bug that caused the GEM to be published with the wrong version number in the gemspec (GH-121).
|
71
91
|
|
72
92
|
- CHANGED: Updated definitions.
|
73
93
|
|
74
94
|
|
75
|
-
|
95
|
+
## Release 2.0.3
|
76
96
|
|
77
97
|
- CHANGED: Updated definitions.
|
78
98
|
|
79
99
|
|
80
|
-
|
100
|
+
## Release 2.0.2
|
81
101
|
|
82
102
|
- CHANGED: Updated definitions.
|
83
103
|
|
84
104
|
|
85
|
-
|
105
|
+
## Release 2.0.1
|
86
106
|
|
87
107
|
- FIXED: Fix bug that prevented .valid? to reset the default rule
|
88
108
|
|
89
109
|
|
90
|
-
|
110
|
+
## Release 2.0.0
|
91
111
|
|
92
112
|
- NEW: Added PublicSuffix.domain # => sld.tld
|
93
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.
|
@@ -104,97 +124,97 @@ and/or removed. You can find more information at GH-133.
|
|
104
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)`.
|
105
125
|
|
106
126
|
|
107
|
-
|
127
|
+
## Release 1.5.3
|
108
128
|
|
109
129
|
- FIXED: Don't duplicate rule indices when creating index (GH-77). [Thanks @ags]
|
110
130
|
|
111
131
|
- CHANGED: Updated definitions.
|
112
132
|
|
113
133
|
|
114
|
-
|
134
|
+
## Release 1.5.2
|
115
135
|
|
116
136
|
- CHANGED: Updated definitions.
|
117
137
|
|
118
138
|
|
119
|
-
|
139
|
+
## Release 1.5.1
|
120
140
|
|
121
141
|
- FIXED: Ignore case for parsing and validating (GH-62)
|
122
142
|
|
123
143
|
- CHANGED: Updated definitions.
|
124
144
|
|
125
145
|
|
126
|
-
|
146
|
+
## Release 1.5.0
|
127
147
|
|
128
148
|
- CHANGED: Dropped support for Ruby < 2.0
|
129
149
|
|
130
150
|
- CHANGED: Updated definitions.
|
131
151
|
|
132
152
|
|
133
|
-
|
153
|
+
## Release 1.4.6
|
134
154
|
|
135
155
|
- CHANGED: Updated definitions.
|
136
156
|
|
137
157
|
|
138
|
-
|
158
|
+
## Release 1.4.5
|
139
159
|
|
140
160
|
- CHANGED: Updated definitions.
|
141
161
|
|
142
162
|
|
143
|
-
|
163
|
+
## Release 1.4.4
|
144
164
|
|
145
165
|
- CHANGED: Updated definitions.
|
146
166
|
|
147
167
|
|
148
|
-
|
168
|
+
## Release 1.4.3
|
149
169
|
|
150
170
|
- CHANGED: Updated definitions.
|
151
171
|
|
152
172
|
|
153
|
-
|
173
|
+
## Release 1.4.2
|
154
174
|
|
155
175
|
- CHANGED: Updated definitions.
|
156
176
|
|
157
177
|
|
158
|
-
|
178
|
+
## Release 1.4.1
|
159
179
|
|
160
180
|
- CHANGED: Updated definitions.
|
161
181
|
|
162
182
|
|
163
|
-
|
183
|
+
## Release 1.4.0
|
164
184
|
|
165
185
|
- CHANGED: Moved the definitions in the lib folder.
|
166
186
|
|
167
187
|
- CHANGED: Updated definitions.
|
168
188
|
|
169
189
|
|
170
|
-
|
190
|
+
## Release 1.3.3
|
171
191
|
|
172
192
|
- CHANGED: Updated definitions.
|
173
193
|
|
174
194
|
|
175
|
-
|
195
|
+
## Release 1.3.2
|
176
196
|
|
177
197
|
- CHANGED: Updated definitions.
|
178
198
|
|
179
199
|
|
180
|
-
|
200
|
+
## Release 1.3.1
|
181
201
|
|
182
202
|
- CHANGED: Updated definitions.
|
183
203
|
|
184
204
|
|
185
|
-
|
205
|
+
## Release 1.3.0
|
186
206
|
|
187
207
|
- NEW: Ability to skip Private Domains (GH-28). [Thanks @rb2k]
|
188
208
|
|
189
209
|
- CHANGED: Updated definitions.
|
190
210
|
|
191
211
|
|
192
|
-
|
212
|
+
## Release 1.2.1
|
193
213
|
|
194
214
|
- CHANGED: Updated definitions.
|
195
215
|
|
196
216
|
|
197
|
-
|
217
|
+
## Release 1.2.0
|
198
218
|
|
199
219
|
- NEW: Allow a custom List on `PublicSuffix.parse` (GH-26). [Thanks @itspriddle]
|
200
220
|
|
@@ -203,22 +223,22 @@ and/or removed. You can find more information at GH-133.
|
|
203
223
|
- CHANGED: Updated definitions.
|
204
224
|
|
205
225
|
|
206
|
-
|
226
|
+
## Release 1.1.3
|
207
227
|
|
208
228
|
- CHANGED: Updated definitions.
|
209
229
|
|
210
230
|
|
211
|
-
|
231
|
+
## Release 1.1.2
|
212
232
|
|
213
233
|
- CHANGED: Updated definitions.
|
214
234
|
|
215
235
|
|
216
|
-
|
236
|
+
## Release 1.1.1
|
217
237
|
|
218
238
|
- CHANGED: Updated definitions.
|
219
239
|
|
220
240
|
|
221
|
-
|
241
|
+
## Release 1.1.0
|
222
242
|
|
223
243
|
- FIXED: #valid? and #parse consider URIs as valid domains (GH-15)
|
224
244
|
|
@@ -227,17 +247,17 @@ and/or removed. You can find more information at GH-133.
|
|
227
247
|
- CHANGED: Removed deprecatd PublicSuffixService::RuleList.
|
228
248
|
|
229
249
|
|
230
|
-
|
250
|
+
## Release 1.0.0
|
231
251
|
|
232
252
|
- CHANGED: Updated definitions.
|
233
253
|
|
234
254
|
|
235
|
-
|
255
|
+
## Release 1.0.0.rc1
|
236
256
|
|
237
257
|
The library is now known as PublicSuffix.
|
238
258
|
|
239
259
|
|
240
|
-
|
260
|
+
## Release 0.9.1
|
241
261
|
|
242
262
|
- CHANGED: Renamed PublicSuffixService::RuleList to PublicSuffixService::List.
|
243
263
|
|
@@ -248,20 +268,20 @@ The library is now known as PublicSuffix.
|
|
248
268
|
- CHANGED: Updated definitions.
|
249
269
|
|
250
270
|
|
251
|
-
|
271
|
+
## Release 0.9.0
|
252
272
|
|
253
273
|
- CHANGED: Minimum Ruby version increased to Ruby 1.8.7.
|
254
274
|
|
255
275
|
- CHANGED: rake/gempackagetask is deprecated. Use rubygems/package_task instead.
|
256
276
|
|
257
277
|
|
258
|
-
|
278
|
+
## Release 0.8.4
|
259
279
|
|
260
280
|
- FIXED: Reverted bugfix for issue #12 for Ruby 1.8.6.
|
261
281
|
This is the latest version compatible with Ruby 1.8.6.
|
262
282
|
|
263
283
|
|
264
|
-
|
284
|
+
## Release 0.8.3
|
265
285
|
|
266
286
|
- FIXED: Fixed ArgumentError: invalid byte sequence in US-ASCII with Ruby 1.9.2 (#12).
|
267
287
|
|
@@ -270,7 +290,7 @@ The library is now known as PublicSuffix.
|
|
270
290
|
- CHANGED: Renamed definitions.txt to definitions.dat.
|
271
291
|
|
272
292
|
|
273
|
-
|
293
|
+
## Release 0.8.2
|
274
294
|
|
275
295
|
- NEW: Added support for rubygems-test.
|
276
296
|
|
@@ -279,19 +299,19 @@ The library is now known as PublicSuffix.
|
|
279
299
|
- CHANGED: Updated definitions.
|
280
300
|
|
281
301
|
|
282
|
-
|
302
|
+
## Release 0.8.1
|
283
303
|
|
284
304
|
- FIXED: The files in the release 0.8.0 have wrong permission 600 and can't be loaded (#10).
|
285
305
|
|
286
306
|
|
287
|
-
|
307
|
+
## Release 0.8.0
|
288
308
|
|
289
309
|
- CHANGED: Update public suffix list to d1a5599b49fa 2010-10-25 15:10 +0100 (#9)
|
290
310
|
|
291
311
|
- NEW: Add support for Fully Qualified Domain Names (#7)
|
292
312
|
|
293
313
|
|
294
|
-
|
314
|
+
## Release 0.7.0
|
295
315
|
|
296
316
|
- CHANGED: Using YARD to document the code instead of RDoc.
|
297
317
|
|
@@ -300,7 +320,7 @@ The library is now known as PublicSuffix.
|
|
300
320
|
- FIXED: PublicSuffixService.valid? should return false if the domain is not defined or not allowed (#4, #5)
|
301
321
|
|
302
322
|
|
303
|
-
|
323
|
+
## Release 0.6.0
|
304
324
|
|
305
325
|
- NEW: PublicSuffixService.parse raises DomainNotAllowed when trying to parse a domain name
|
306
326
|
which exists, but is not allowed by the current definition list (#3)
|
@@ -311,34 +331,34 @@ The library is now known as PublicSuffix.
|
|
311
331
|
- CHANGED: Renamed PublicSuffixService::InvalidDomain to PublicSuffixService::DomainInvalid
|
312
332
|
|
313
333
|
|
314
|
-
|
334
|
+
## Release 0.5.2
|
315
335
|
|
316
336
|
- CHANGED: Update public suffix list to 248ea690d671 2010-09-16 18:02 +0100
|
317
337
|
|
318
338
|
|
319
|
-
|
339
|
+
## Release 0.5.1
|
320
340
|
|
321
341
|
- CHANGED: Update public suffix list to 14dc66dd53c1 2010-09-15 17:09 +0100
|
322
342
|
|
323
343
|
|
324
|
-
|
344
|
+
## Release 0.5.0
|
325
345
|
|
326
346
|
- CHANGED: Improve documentation for Domain#domain and Domain#subdomain (#1).
|
327
347
|
|
328
348
|
- CHANGED: Performance improvements (#2).
|
329
349
|
|
330
350
|
|
331
|
-
|
351
|
+
## Release 0.4.0
|
332
352
|
|
333
353
|
- CHANGED: Rename library from DomainName to PublicSuffixService to reduce the probability of name conflicts.
|
334
354
|
|
335
355
|
|
336
|
-
|
356
|
+
## Release 0.3.1
|
337
357
|
|
338
358
|
- Deprecated DomainName library.
|
339
359
|
|
340
360
|
|
341
|
-
|
361
|
+
## Release 0.3.0
|
342
362
|
|
343
363
|
- CHANGED: DomainName#domain and DomainName#subdomain are no longer alias of Domain#sld and Domain#tld.
|
344
364
|
|
@@ -349,7 +369,7 @@ The library is now known as PublicSuffix.
|
|
349
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.
|
350
370
|
|
351
371
|
|
352
|
-
|
372
|
+
## Release 0.2.0
|
353
373
|
|
354
374
|
- NEW: DomainName#valid?
|
355
375
|
|
@@ -360,6 +380,6 @@ The library is now known as PublicSuffix.
|
|
360
380
|
- CHANGED: Make sure RuleList lookup is only performed once.
|
361
381
|
|
362
382
|
|
363
|
-
|
383
|
+
## Release 0.1.0
|
364
384
|
|
365
385
|
- Initial version
|