public_suffix 3.1.1 → 4.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c55510fd81cb1ec900d6aaa3728880850148b57f81621ce5a0c1e93f3811a163
4
- data.tar.gz: 9f76520d1a8a28ef3ffeda93ebaac0368113c02208093a57621443195629ef98
3
+ metadata.gz: 4024f44e47147f95aacb6e0be5e0d7b9a23e3b2a4ea98c8f4f2bfd3eac65bd08
4
+ data.tar.gz: 99596dd3d3d98439fed363cfb0d9d1500a7096bf744583625d4ebb8f91d7e8b2
5
5
  SHA512:
6
- metadata.gz: 41bafee63060875aa1456f916947e50cd12ff5895dedfc781a444edb86db4d3e1877f20a6b5baae6277838b48ae3a40e6e634f0c71566fc5cf1673ca401cdb0c
7
- data.tar.gz: 6e7e87dbdc0fcc12606e5696965e0e0cc50310721a03aaca88e90170cbd6876f510cea3b79f22c574de8efe626220d621be79f4da5ae4b3bf8a43c27fc56cc6f
6
+ metadata.gz: 127164c169e2c4cf0b7d640afab77a6fc52772501d9b09ac4c161ede20422e15c58f6a36346a46dffe104d33467915298b4538085ea427682984af914ea0448d
7
+ data.tar.gz: 6fb21d08ee9c96a78c87e780ee186282aa73d9957b613043b7779dc5a350a69bbee645b267bb462cde7cdf0befbcd037514bc66c28059c6254bfc4476d1e518a
@@ -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/.gitignore CHANGED
@@ -1,11 +1,8 @@
1
1
  # Bundler
2
- .bundle
3
- Gemfile.lock
4
- pkg/*
5
-
6
- # Rubinius
7
- *.rbc
2
+ /.bundle
3
+ /Gemfile.lock
4
+ /pkg/*
8
5
 
9
6
  # YARD
10
- .yardoc
11
- yardoc/
7
+ /.yardoc
8
+ /yardoc/
@@ -1,5 +1,5 @@
1
1
  inherit_from:
2
- - .rubocop_defaults.yml
2
+ - .rubocop_opinionated.yml
3
3
 
4
4
  AllCops:
5
5
  Exclude:
@@ -24,7 +24,7 @@ Style/ClassAndModuleChildren:
24
24
  - 'test/**/*_test.rb'
25
25
 
26
26
  # Dear Rubocop, I don't want to use String#strip_heredoc
27
- Layout/IndentHeredoc:
27
+ Layout/HeredocIndentation:
28
28
  Enabled: false
29
29
 
30
30
  Style/WordArray:
@@ -6,6 +6,14 @@ AllCops:
6
6
  - 'tmp/**/*'
7
7
  - 'vendor/**/*'
8
8
 
9
+ # [codesmell]
10
+ Layout/LineLength:
11
+ Enabled: false
12
+ Exclude:
13
+ - 'spec/**/*_spec.rb'
14
+ - 'test/**/*_test.rb'
15
+ Max: 100
16
+
9
17
  # [codesmell]
10
18
  Metrics/AbcSize:
11
19
  Enabled: false
@@ -31,14 +39,6 @@ Metrics/ClassLength:
31
39
  - 'spec/**/*_spec.rb'
32
40
  - 'test/**/*_test.rb'
33
41
 
34
- # [codesmell]
35
- Metrics/LineLength:
36
- Enabled: false
37
- Exclude:
38
- - 'spec/**/*_spec.rb'
39
- - 'test/**/*_test.rb'
40
- Max: 100
41
-
42
42
  # [codesmell]
43
43
  Metrics/MethodLength:
44
44
  Enabled: false
@@ -105,32 +105,6 @@ Style/FormatString:
105
105
  Style/FormatStringToken:
106
106
  Enabled: false
107
107
 
108
- # Prefer the latest Hash syntax
109
- Style/HashSyntax:
110
- Exclude:
111
- # But Rakefiles generally have some definition like
112
- # :default => :test
113
- # that looks nicer with the old rocket syntax.
114
- - 'Rakefile'
115
-
116
- Style/RescueStandardError:
117
- Enabled: false
118
-
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
108
  # unless is not always cool.
135
109
  Style/NegatedIf:
136
110
  Enabled: false
@@ -145,6 +119,9 @@ Style/PercentLiteralDelimiters:
145
119
  Style/RescueModifier:
146
120
  Enabled: false
147
121
 
122
+ Style/SymbolArray:
123
+ EnforcedStyle: brackets
124
+
148
125
  # Sorry, but using trailing spaces helps readability.
149
126
  #
150
127
  # %w( foo bar )
@@ -177,3 +154,21 @@ Style/TrivialAccessors:
177
154
  # end
178
155
  #
179
156
  IgnoreClassMethods: true
157
+
158
+ # New cops
159
+ # See https://docs.rubocop.org/en/latest/versioning/
160
+
161
+ Lint/RaiseException:
162
+ Enabled: true
163
+
164
+ Lint/StructNewOverride:
165
+ Enabled: true
166
+
167
+ Style/HashEachMethods:
168
+ Enabled: true
169
+
170
+ Style/HashTransformKeys:
171
+ Enabled: true
172
+
173
+ Style/HashTransformValues:
174
+ Enabled: true
@@ -5,7 +5,7 @@ rvm:
5
5
  - 2.4
6
6
  - 2.5
7
7
  - 2.6
8
- - jruby-9.1.5.0
8
+ - 2.7
9
9
  - ruby-head
10
10
 
11
11
  env:
@@ -15,16 +15,8 @@ cache:
15
15
  - bundler
16
16
 
17
17
  matrix:
18
- include:
19
- - rvm: 2.1
20
- before_install:
21
- - gem install bundler -v '< 2.0'
22
- - rvm: 2.2
23
- before_install:
24
- - gem install bundler -v '< 2.0'
25
18
  allow_failures:
26
19
  - rvm: ruby-head
27
- - rvm: jruby-9.1.5.0
28
20
 
29
21
  before_install:
30
22
  - gem update --system
@@ -1,36 +1,75 @@
1
1
  # Changelog
2
2
 
3
+ This project uses [Semantic Versioning 2.0.0](https://semver.org/).
3
4
 
4
- #### Release 3.1.1
5
+
6
+ ## 4.0.4
7
+
8
+ ### Changed
9
+
10
+ - Updated definitions.
11
+
12
+
13
+ ## 4.0.3
14
+
15
+ ### Fixed
16
+
17
+ - Fixed 2.7 deprecations and warnings (GH-167). [Thanks @BrianHawley]
18
+
19
+
20
+ ## 4.0.2
21
+
22
+ ### Changed
23
+
24
+ - Updated definitions.
25
+
26
+
27
+ ## 4.0.1
28
+
29
+ ### Changed
30
+
31
+ - Updated definitions.
32
+
33
+
34
+ ## 4.0.0
35
+
36
+ ### Changed
37
+
38
+ - Minimum Ruby version is 2.3
39
+
40
+
41
+ ## Release 3.1.1
5
42
 
6
43
  - CHANGED: Updated definitions.
7
44
  - CHANGED: Rolled back support for Ruby 2.3 (GH-161, GH-162)
8
45
 
46
+ IMPORTANT: 3.x is the latest version compatible with Ruby 2.1 and Ruby 2.2.
47
+
9
48
 
10
- #### Release 3.1.0
49
+ ## Release 3.1.0
11
50
 
12
51
  - CHANGED: Updated definitions.
13
52
  - CHANGED: Minimum Ruby version is 2.3
14
53
  - CHANGED: Upgraded to Bundler 2.x
15
54
 
16
55
 
17
- #### Release 3.0.3
56
+ ## Release 3.0.3
18
57
 
19
58
  - CHANGED: Updated definitions.
20
59
 
21
60
 
22
- #### Release 3.0.2
61
+ ## Release 3.0.2
23
62
 
24
63
  - CHANGED: Updated definitions.
25
64
 
26
65
 
27
- #### Release 3.0.1
66
+ ## Release 3.0.1
28
67
 
29
68
  - CHANGED: Updated definitions.
30
69
  - CHANGED: Improve performance and avoid allocation (GH-146). [Thanks @robholland]
31
70
 
32
71
 
33
- #### Release 3.0.0
72
+ ## Release 3.0.0
34
73
 
35
74
  This new version includes a major redesign of the library internals, with the goal to drastically
36
75
  improve the lookup time while reducing storage space.
@@ -47,35 +86,35 @@ and/or removed. You can find more information at GH-133.
47
86
  - CHANGED: Redesigned internal list storage and lookup algorithm to achieve O(1) lookup time (see GH-133).
48
87
 
49
88
 
50
- #### Release 2.0.5
89
+ ## Release 2.0.5
51
90
 
52
91
  - CHANGED: Updated definitions.
53
92
  - CHANGED: Initialization performance improvements (GH-128). [Thanks @casperisfine]
54
93
 
55
94
 
56
- #### Release 2.0.4
95
+ ## Release 2.0.4
57
96
 
58
97
  - FIXED: Fix a bug that caused the GEM to be published with the wrong version number in the gemspec (GH-121).
59
98
 
60
99
  - CHANGED: Updated definitions.
61
100
 
62
101
 
63
- #### Release 2.0.3
102
+ ## Release 2.0.3
64
103
 
65
104
  - CHANGED: Updated definitions.
66
105
 
67
106
 
68
- #### Release 2.0.2
107
+ ## Release 2.0.2
69
108
 
70
109
  - CHANGED: Updated definitions.
71
110
 
72
111
 
73
- #### Release 2.0.1
112
+ ## Release 2.0.1
74
113
 
75
114
  - FIXED: Fix bug that prevented .valid? to reset the default rule
76
115
 
77
116
 
78
- #### Release 2.0.0
117
+ ## Release 2.0.0
79
118
 
80
119
  - NEW: Added PublicSuffix.domain # => sld.tld
81
120
  - 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.
@@ -92,97 +131,97 @@ and/or removed. You can find more information at GH-133.
92
131
  - 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)`.
93
132
 
94
133
 
95
- #### Release 1.5.3
134
+ ## Release 1.5.3
96
135
 
97
136
  - FIXED: Don't duplicate rule indices when creating index (GH-77). [Thanks @ags]
98
137
 
99
138
  - CHANGED: Updated definitions.
100
139
 
101
140
 
102
- #### Release 1.5.2
141
+ ## Release 1.5.2
103
142
 
104
143
  - CHANGED: Updated definitions.
105
144
 
106
145
 
107
- #### Release 1.5.1
146
+ ## Release 1.5.1
108
147
 
109
148
  - FIXED: Ignore case for parsing and validating (GH-62)
110
149
 
111
150
  - CHANGED: Updated definitions.
112
151
 
113
152
 
114
- #### Release 1.5.0
153
+ ## Release 1.5.0
115
154
 
116
155
  - CHANGED: Dropped support for Ruby < 2.0
117
156
 
118
157
  - CHANGED: Updated definitions.
119
158
 
120
159
 
121
- #### Release 1.4.6
160
+ ## Release 1.4.6
122
161
 
123
162
  - CHANGED: Updated definitions.
124
163
 
125
164
 
126
- #### Release 1.4.5
165
+ ## Release 1.4.5
127
166
 
128
167
  - CHANGED: Updated definitions.
129
168
 
130
169
 
131
- #### Release 1.4.4
170
+ ## Release 1.4.4
132
171
 
133
172
  - CHANGED: Updated definitions.
134
173
 
135
174
 
136
- #### Release 1.4.3
175
+ ## Release 1.4.3
137
176
 
138
177
  - CHANGED: Updated definitions.
139
178
 
140
179
 
141
- #### Release 1.4.2
180
+ ## Release 1.4.2
142
181
 
143
182
  - CHANGED: Updated definitions.
144
183
 
145
184
 
146
- #### Release 1.4.1
185
+ ## Release 1.4.1
147
186
 
148
187
  - CHANGED: Updated definitions.
149
188
 
150
189
 
151
- #### Release 1.4.0
190
+ ## Release 1.4.0
152
191
 
153
192
  - CHANGED: Moved the definitions in the lib folder.
154
193
 
155
194
  - CHANGED: Updated definitions.
156
195
 
157
196
 
158
- #### Release 1.3.3
197
+ ## Release 1.3.3
159
198
 
160
199
  - CHANGED: Updated definitions.
161
200
 
162
201
 
163
- #### Release 1.3.2
202
+ ## Release 1.3.2
164
203
 
165
204
  - CHANGED: Updated definitions.
166
205
 
167
206
 
168
- #### Release 1.3.1
207
+ ## Release 1.3.1
169
208
 
170
209
  - CHANGED: Updated definitions.
171
210
 
172
211
 
173
- #### Release 1.3.0
212
+ ## Release 1.3.0
174
213
 
175
214
  - NEW: Ability to skip Private Domains (GH-28). [Thanks @rb2k]
176
215
 
177
216
  - CHANGED: Updated definitions.
178
217
 
179
218
 
180
- #### Release 1.2.1
219
+ ## Release 1.2.1
181
220
 
182
221
  - CHANGED: Updated definitions.
183
222
 
184
223
 
185
- #### Release 1.2.0
224
+ ## Release 1.2.0
186
225
 
187
226
  - NEW: Allow a custom List on `PublicSuffix.parse` (GH-26). [Thanks @itspriddle]
188
227
 
@@ -191,22 +230,22 @@ and/or removed. You can find more information at GH-133.
191
230
  - CHANGED: Updated definitions.
192
231
 
193
232
 
194
- #### Release 1.1.3
233
+ ## Release 1.1.3
195
234
 
196
235
  - CHANGED: Updated definitions.
197
236
 
198
237
 
199
- #### Release 1.1.2
238
+ ## Release 1.1.2
200
239
 
201
240
  - CHANGED: Updated definitions.
202
241
 
203
242
 
204
- #### Release 1.1.1
243
+ ## Release 1.1.1
205
244
 
206
245
  - CHANGED: Updated definitions.
207
246
 
208
247
 
209
- #### Release 1.1.0
248
+ ## Release 1.1.0
210
249
 
211
250
  - FIXED: #valid? and #parse consider URIs as valid domains (GH-15)
212
251
 
@@ -215,17 +254,17 @@ and/or removed. You can find more information at GH-133.
215
254
  - CHANGED: Removed deprecatd PublicSuffixService::RuleList.
216
255
 
217
256
 
218
- #### Release 1.0.0
257
+ ## Release 1.0.0
219
258
 
220
259
  - CHANGED: Updated definitions.
221
260
 
222
261
 
223
- #### Release 1.0.0.rc1
262
+ ## Release 1.0.0.rc1
224
263
 
225
264
  The library is now known as PublicSuffix.
226
265
 
227
266
 
228
- #### Release 0.9.1
267
+ ## Release 0.9.1
229
268
 
230
269
  - CHANGED: Renamed PublicSuffixService::RuleList to PublicSuffixService::List.
231
270
 
@@ -236,20 +275,20 @@ The library is now known as PublicSuffix.
236
275
  - CHANGED: Updated definitions.
237
276
 
238
277
 
239
- #### Release 0.9.0
278
+ ## Release 0.9.0
240
279
 
241
280
  - CHANGED: Minimum Ruby version increased to Ruby 1.8.7.
242
281
 
243
282
  - CHANGED: rake/gempackagetask is deprecated. Use rubygems/package_task instead.
244
283
 
245
284
 
246
- #### Release 0.8.4
285
+ ## Release 0.8.4
247
286
 
248
287
  - FIXED: Reverted bugfix for issue #12 for Ruby 1.8.6.
249
288
  This is the latest version compatible with Ruby 1.8.6.
250
289
 
251
290
 
252
- #### Release 0.8.3
291
+ ## Release 0.8.3
253
292
 
254
293
  - FIXED: Fixed ArgumentError: invalid byte sequence in US-ASCII with Ruby 1.9.2 (#12).
255
294
 
@@ -258,7 +297,7 @@ The library is now known as PublicSuffix.
258
297
  - CHANGED: Renamed definitions.txt to definitions.dat.
259
298
 
260
299
 
261
- #### Release 0.8.2
300
+ ## Release 0.8.2
262
301
 
263
302
  - NEW: Added support for rubygems-test.
264
303
 
@@ -267,19 +306,19 @@ The library is now known as PublicSuffix.
267
306
  - CHANGED: Updated definitions.
268
307
 
269
308
 
270
- #### Release 0.8.1
309
+ ## Release 0.8.1
271
310
 
272
311
  - FIXED: The files in the release 0.8.0 have wrong permission 600 and can't be loaded (#10).
273
312
 
274
313
 
275
- #### Release 0.8.0
314
+ ## Release 0.8.0
276
315
 
277
316
  - CHANGED: Update public suffix list to d1a5599b49fa 2010-10-25 15:10 +0100 (#9)
278
317
 
279
318
  - NEW: Add support for Fully Qualified Domain Names (#7)
280
319
 
281
320
 
282
- #### Release 0.7.0
321
+ ## Release 0.7.0
283
322
 
284
323
  - CHANGED: Using YARD to document the code instead of RDoc.
285
324
 
@@ -288,7 +327,7 @@ The library is now known as PublicSuffix.
288
327
  - FIXED: PublicSuffixService.valid? should return false if the domain is not defined or not allowed (#4, #5)
289
328
 
290
329
 
291
- #### Release 0.6.0
330
+ ## Release 0.6.0
292
331
 
293
332
  - NEW: PublicSuffixService.parse raises DomainNotAllowed when trying to parse a domain name
294
333
  which exists, but is not allowed by the current definition list (#3)
@@ -299,34 +338,34 @@ The library is now known as PublicSuffix.
299
338
  - CHANGED: Renamed PublicSuffixService::InvalidDomain to PublicSuffixService::DomainInvalid
300
339
 
301
340
 
302
- #### Release 0.5.2
341
+ ## Release 0.5.2
303
342
 
304
343
  - CHANGED: Update public suffix list to 248ea690d671 2010-09-16 18:02 +0100
305
344
 
306
345
 
307
- #### Release 0.5.1
346
+ ## Release 0.5.1
308
347
 
309
348
  - CHANGED: Update public suffix list to 14dc66dd53c1 2010-09-15 17:09 +0100
310
349
 
311
350
 
312
- #### Release 0.5.0
351
+ ## Release 0.5.0
313
352
 
314
353
  - CHANGED: Improve documentation for Domain#domain and Domain#subdomain (#1).
315
354
 
316
355
  - CHANGED: Performance improvements (#2).
317
356
 
318
357
 
319
- #### Release 0.4.0
358
+ ## Release 0.4.0
320
359
 
321
360
  - CHANGED: Rename library from DomainName to PublicSuffixService to reduce the probability of name conflicts.
322
361
 
323
362
 
324
- #### Release 0.3.1
363
+ ## Release 0.3.1
325
364
 
326
365
  - Deprecated DomainName library.
327
366
 
328
367
 
329
- #### Release 0.3.0
368
+ ## Release 0.3.0
330
369
 
331
370
  - CHANGED: DomainName#domain and DomainName#subdomain are no longer alias of Domain#sld and Domain#tld.
332
371
 
@@ -337,7 +376,7 @@ The library is now known as PublicSuffix.
337
376
  - 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.
338
377
 
339
378
 
340
- #### Release 0.2.0
379
+ ## Release 0.2.0
341
380
 
342
381
  - NEW: DomainName#valid?
343
382
 
@@ -348,6 +387,6 @@ The library is now known as PublicSuffix.
348
387
  - CHANGED: Make sure RuleList lookup is only performed once.
349
388
 
350
389
 
351
- #### Release 0.1.0
390
+ ## Release 0.1.0
352
391
 
353
392
  - Initial version