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