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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4c833634f92938709935d0e9d84835711bca81f9d0686ad98d6906bf8d7b8df8
4
- data.tar.gz: 1ffe584402aeb2e8739e64a4d36819989677806767e894ad86f91fa4dc1094ab
3
+ metadata.gz: 62962616c4c61eea8b72706b4f01a7775577f6cf17d38b52fda29fe35809e2c0
4
+ data.tar.gz: 7d26aed0fb6c50d3d7620330a0bc319fca4a9eb777e526ef87e91019150b53e9
5
5
  SHA512:
6
- metadata.gz: 1173525725822d8bcb3dc15fc94e3d6492063a7a04da5a0c3793cc6c00416643cdf27e4092157280999c133faa175c907c6ef00aa97503110a02f3ad7a4ec075
7
- data.tar.gz: 0a6ca9384dd752c617aa74a5e59aa13ca460207863df2067f37cf039a40c8efaea509f10948328a029d19952951085d8e33ece3bbb7ed3f1ec0bdc3b0d2dbaae
6
+ metadata.gz: 5b4feb7c4763a8273e870568bd674d70714a809f9d77c799dd51af3b9f682893924d7a69d79e1d8c231f155fde9637dbba0cfa18009d222ce9f1d459816cd0d9
7
+ data.tar.gz: a7e2fefbf3c506e88a6a954ae203254bf6426c91385d98ca8759f73e8cc47ad3b8513f19b45af903e624cf8fc983ad0c5044b2a33aa340034072ca25d8859128
@@ -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
@@ -6,7 +6,6 @@ rvm:
6
6
  - 2.5
7
7
  - 2.6
8
8
  - 2.7
9
- - jruby-9.1.5.0
10
9
  - ruby-head
11
10
 
12
11
  env:
@@ -18,7 +17,6 @@ cache:
18
17
  matrix:
19
18
  allow_failures:
20
19
  - rvm: ruby-head
21
- - rvm: jruby-9.1.5.0
22
20
 
23
21
  before_install:
24
22
  - gem update --system
@@ -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
- - CHANGED: Updated definitions.
6
+ ## 4.0.3
7
7
 
8
+ ### Fixed
8
9
 
9
- #### Release 4.0.0
10
+ - Fixed 2.7 deprecations and warnings (GH-167). [Thanks @BrianHawley]
10
11
 
11
- - CHANGED: Minimum Ruby version is 2.3
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
- #### Release 3.1.1
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
- #### Release 3.1.0
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
- #### Release 3.0.3
49
+ ## Release 3.0.3
30
50
 
31
51
  - CHANGED: Updated definitions.
32
52
 
33
53
 
34
- #### Release 3.0.2
54
+ ## Release 3.0.2
35
55
 
36
56
  - CHANGED: Updated definitions.
37
57
 
38
58
 
39
- #### Release 3.0.1
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
- #### Release 3.0.0
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
- #### Release 2.0.5
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
- #### Release 2.0.4
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
- #### Release 2.0.3
95
+ ## Release 2.0.3
76
96
 
77
97
  - CHANGED: Updated definitions.
78
98
 
79
99
 
80
- #### Release 2.0.2
100
+ ## Release 2.0.2
81
101
 
82
102
  - CHANGED: Updated definitions.
83
103
 
84
104
 
85
- #### Release 2.0.1
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
- #### Release 2.0.0
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
- #### Release 1.5.3
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
- #### Release 1.5.2
134
+ ## Release 1.5.2
115
135
 
116
136
  - CHANGED: Updated definitions.
117
137
 
118
138
 
119
- #### Release 1.5.1
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
- #### Release 1.5.0
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
- #### Release 1.4.6
153
+ ## Release 1.4.6
134
154
 
135
155
  - CHANGED: Updated definitions.
136
156
 
137
157
 
138
- #### Release 1.4.5
158
+ ## Release 1.4.5
139
159
 
140
160
  - CHANGED: Updated definitions.
141
161
 
142
162
 
143
- #### Release 1.4.4
163
+ ## Release 1.4.4
144
164
 
145
165
  - CHANGED: Updated definitions.
146
166
 
147
167
 
148
- #### Release 1.4.3
168
+ ## Release 1.4.3
149
169
 
150
170
  - CHANGED: Updated definitions.
151
171
 
152
172
 
153
- #### Release 1.4.2
173
+ ## Release 1.4.2
154
174
 
155
175
  - CHANGED: Updated definitions.
156
176
 
157
177
 
158
- #### Release 1.4.1
178
+ ## Release 1.4.1
159
179
 
160
180
  - CHANGED: Updated definitions.
161
181
 
162
182
 
163
- #### Release 1.4.0
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
- #### Release 1.3.3
190
+ ## Release 1.3.3
171
191
 
172
192
  - CHANGED: Updated definitions.
173
193
 
174
194
 
175
- #### Release 1.3.2
195
+ ## Release 1.3.2
176
196
 
177
197
  - CHANGED: Updated definitions.
178
198
 
179
199
 
180
- #### Release 1.3.1
200
+ ## Release 1.3.1
181
201
 
182
202
  - CHANGED: Updated definitions.
183
203
 
184
204
 
185
- #### Release 1.3.0
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
- #### Release 1.2.1
212
+ ## Release 1.2.1
193
213
 
194
214
  - CHANGED: Updated definitions.
195
215
 
196
216
 
197
- #### Release 1.2.0
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
- #### Release 1.1.3
226
+ ## Release 1.1.3
207
227
 
208
228
  - CHANGED: Updated definitions.
209
229
 
210
230
 
211
- #### Release 1.1.2
231
+ ## Release 1.1.2
212
232
 
213
233
  - CHANGED: Updated definitions.
214
234
 
215
235
 
216
- #### Release 1.1.1
236
+ ## Release 1.1.1
217
237
 
218
238
  - CHANGED: Updated definitions.
219
239
 
220
240
 
221
- #### Release 1.1.0
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
- #### Release 1.0.0
250
+ ## Release 1.0.0
231
251
 
232
252
  - CHANGED: Updated definitions.
233
253
 
234
254
 
235
- #### Release 1.0.0.rc1
255
+ ## Release 1.0.0.rc1
236
256
 
237
257
  The library is now known as PublicSuffix.
238
258
 
239
259
 
240
- #### Release 0.9.1
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
- #### Release 0.9.0
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
- #### Release 0.8.4
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
- #### Release 0.8.3
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
- #### Release 0.8.2
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
- #### Release 0.8.1
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
- #### Release 0.8.0
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
- #### Release 0.7.0
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
- #### Release 0.6.0
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
- #### Release 0.5.2
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
- #### Release 0.5.1
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
- #### Release 0.5.0
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
- #### Release 0.4.0
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
- #### Release 0.3.1
356
+ ## Release 0.3.1
337
357
 
338
358
  - Deprecated DomainName library.
339
359
 
340
360
 
341
- #### Release 0.3.0
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
- #### Release 0.2.0
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
- #### Release 0.1.0
383
+ ## Release 0.1.0
364
384
 
365
385
  - Initial version