public_suffix 4.0.0 → 4.0.5

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