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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2882fdd03684973d58da7d6ab31972b3e63a9a1be9830f9ffdea4e0b3b1388cb
4
- data.tar.gz: b0a3773d8cb10cee6f23b5b2cca3443b246f29dda5d7a8a2c2dd4081ab5bc2e3
3
+ metadata.gz: 62962616c4c61eea8b72706b4f01a7775577f6cf17d38b52fda29fe35809e2c0
4
+ data.tar.gz: 7d26aed0fb6c50d3d7620330a0bc319fca4a9eb777e526ef87e91019150b53e9
5
5
  SHA512:
6
- metadata.gz: f3464d49567b455953707990adf15f09b46def015cc15ca481960b780eb0cd6e3b4abe0c7c3c026303ebece570b99a3569e652dc0ff479f4100c3161c25f8931
7
- data.tar.gz: 8a77d9b3ad305dad91b1433e52eab8b6f3b6c5ecd91e4f15c02d245fe400cd8b06de1288a2680c92e3281024c81571da0f5fb66816b4280f010ee9e161389381
6
+ metadata.gz: 5b4feb7c4763a8273e870568bd674d70714a809f9d77c799dd51af3b9f682893924d7a69d79e1d8c231f155fde9637dbba0cfa18009d222ce9f1d459816cd0d9
7
+ data.tar.gz: a7e2fefbf3c506e88a6a954ae203254bf6426c91385d98ca8759f73e8cc47ad3b8513f19b45af903e624cf8fc983ad0c5044b2a33aa340034072ca25d8859128
@@ -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
@@ -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:
@@ -7,37 +7,52 @@ AllCops:
7
7
  - 'vendor/**/*'
8
8
 
9
9
  # [codesmell]
10
- Metrics/AbcSize:
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
- # [codesmell]
17
- Metrics/BlockLength:
18
- Enabled: false
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/CyclomaticComplexity:
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/ClassLength:
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/LineLength:
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
@@ -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:
@@ -17,7 +17,6 @@ cache:
17
17
  matrix:
18
18
  allow_failures:
19
19
  - rvm: ruby-head
20
- - rvm: jruby-9.1.5.0
21
20
 
22
21
  before_install:
23
22
  - gem update --system
@@ -1,30 +1,68 @@
1
1
  # Changelog
2
2
 
3
+ This project uses [Semantic Versioning 2.0.0](https://semver.org/).
3
4
 
4
- #### Release 3.1.0
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
- #### Release 3.0.3
49
+ ## Release 3.0.3
12
50
 
13
51
  - CHANGED: Updated definitions.
14
52
 
15
53
 
16
- #### Release 3.0.2
54
+ ## Release 3.0.2
17
55
 
18
56
  - CHANGED: Updated definitions.
19
57
 
20
58
 
21
- #### Release 3.0.1
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
- #### Release 3.0.0
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
- #### Release 2.0.5
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
- #### Release 2.0.4
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
- #### Release 2.0.3
95
+ ## Release 2.0.3
58
96
 
59
97
  - CHANGED: Updated definitions.
60
98
 
61
99
 
62
- #### Release 2.0.2
100
+ ## Release 2.0.2
63
101
 
64
102
  - CHANGED: Updated definitions.
65
103
 
66
104
 
67
- #### Release 2.0.1
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
- #### Release 2.0.0
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
- #### Release 1.5.3
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
- #### Release 1.5.2
134
+ ## Release 1.5.2
97
135
 
98
136
  - CHANGED: Updated definitions.
99
137
 
100
138
 
101
- #### Release 1.5.1
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
- #### Release 1.5.0
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
- #### Release 1.4.6
153
+ ## Release 1.4.6
116
154
 
117
155
  - CHANGED: Updated definitions.
118
156
 
119
157
 
120
- #### Release 1.4.5
158
+ ## Release 1.4.5
121
159
 
122
160
  - CHANGED: Updated definitions.
123
161
 
124
162
 
125
- #### Release 1.4.4
163
+ ## Release 1.4.4
126
164
 
127
165
  - CHANGED: Updated definitions.
128
166
 
129
167
 
130
- #### Release 1.4.3
168
+ ## Release 1.4.3
131
169
 
132
170
  - CHANGED: Updated definitions.
133
171
 
134
172
 
135
- #### Release 1.4.2
173
+ ## Release 1.4.2
136
174
 
137
175
  - CHANGED: Updated definitions.
138
176
 
139
177
 
140
- #### Release 1.4.1
178
+ ## Release 1.4.1
141
179
 
142
180
  - CHANGED: Updated definitions.
143
181
 
144
182
 
145
- #### Release 1.4.0
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
- #### Release 1.3.3
190
+ ## Release 1.3.3
153
191
 
154
192
  - CHANGED: Updated definitions.
155
193
 
156
194
 
157
- #### Release 1.3.2
195
+ ## Release 1.3.2
158
196
 
159
197
  - CHANGED: Updated definitions.
160
198
 
161
199
 
162
- #### Release 1.3.1
200
+ ## Release 1.3.1
163
201
 
164
202
  - CHANGED: Updated definitions.
165
203
 
166
204
 
167
- #### Release 1.3.0
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
- #### Release 1.2.1
212
+ ## Release 1.2.1
175
213
 
176
214
  - CHANGED: Updated definitions.
177
215
 
178
216
 
179
- #### Release 1.2.0
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
- #### Release 1.1.3
226
+ ## Release 1.1.3
189
227
 
190
228
  - CHANGED: Updated definitions.
191
229
 
192
230
 
193
- #### Release 1.1.2
231
+ ## Release 1.1.2
194
232
 
195
233
  - CHANGED: Updated definitions.
196
234
 
197
235
 
198
- #### Release 1.1.1
236
+ ## Release 1.1.1
199
237
 
200
238
  - CHANGED: Updated definitions.
201
239
 
202
240
 
203
- #### Release 1.1.0
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
- #### Release 1.0.0
250
+ ## Release 1.0.0
213
251
 
214
252
  - CHANGED: Updated definitions.
215
253
 
216
254
 
217
- #### Release 1.0.0.rc1
255
+ ## Release 1.0.0.rc1
218
256
 
219
257
  The library is now known as PublicSuffix.
220
258
 
221
259
 
222
- #### Release 0.9.1
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
- #### Release 0.9.0
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
- #### Release 0.8.4
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
- #### Release 0.8.3
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
- #### Release 0.8.2
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
- #### Release 0.8.1
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
- #### Release 0.8.0
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
- #### Release 0.7.0
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
- #### Release 0.6.0
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
- #### Release 0.5.2
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
- #### Release 0.5.1
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
- #### Release 0.5.0
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
- #### Release 0.4.0
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
- #### Release 0.3.1
356
+ ## Release 0.3.1
319
357
 
320
358
  - Deprecated DomainName library.
321
359
 
322
360
 
323
- #### Release 0.3.0
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
- #### Release 0.2.0
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
- #### Release 0.1.0
383
+ ## Release 0.1.0
346
384
 
347
385
  - Initial version