public_suffix 3.1.1 → 5.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +150 -52
- data/LICENSE.txt +1 -1
- data/README.md +37 -15
- data/SECURITY.md +25 -0
- data/data/list.txt +4775 -2310
- data/lib/public_suffix/domain.rb +1 -1
- data/lib/public_suffix/errors.rb +1 -1
- data/lib/public_suffix/list.rb +6 -6
- data/lib/public_suffix/rule.rb +17 -17
- data/lib/public_suffix/version.rb +5 -4
- data/lib/public_suffix.rb +12 -14
- metadata +16 -104
- data/.gitignore +0 -11
- data/.rubocop.yml +0 -36
- data/.rubocop_defaults.yml +0 -179
- data/.ruby-gemset +0 -1
- data/.travis.yml +0 -31
- data/Gemfile +0 -12
- data/Rakefile +0 -51
- data/bin/console +0 -15
- data/public_suffix.gemspec +0 -25
- data/test/.empty +0 -2
- data/test/acceptance_test.rb +0 -129
- data/test/benchmarks/bm_find.rb +0 -66
- data/test/benchmarks/bm_find_all.rb +0 -102
- data/test/benchmarks/bm_names.rb +0 -91
- data/test/benchmarks/bm_select.rb +0 -26
- data/test/benchmarks/bm_select_incremental.rb +0 -25
- data/test/benchmarks/bm_valid.rb +0 -101
- data/test/profilers/domain_profiler.rb +0 -12
- data/test/profilers/find_profiler.rb +0 -12
- data/test/profilers/find_profiler_jp.rb +0 -12
- data/test/profilers/initialization_profiler.rb +0 -11
- data/test/profilers/list_profsize.rb +0 -11
- data/test/profilers/object_binsize.rb +0 -57
- data/test/psl_test.rb +0 -52
- data/test/test_helper.rb +0 -18
- data/test/tests.txt +0 -98
- data/test/unit/domain_test.rb +0 -106
- data/test/unit/errors_test.rb +0 -25
- data/test/unit/list_test.rb +0 -241
- data/test/unit/public_suffix_test.rb +0 -188
- data/test/unit/rule_test.rb +0 -222
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea2999178af7556a851937cd5765444b296e4faae47ce7f1ac212b9e986cb9b5
|
4
|
+
data.tar.gz: 58aaeb3b708d9a6c7c661aa3e39798dcf1c9ca06e02557e50b6c00d59df13d03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30ca67d20043e2587b8d6a3529694f41e7ca154569e839eb2d13964ef0eaf9bce3adae688e6ef12c2a5ecd4a97258269e492db71fa50ec42411ecb026012fd2f
|
7
|
+
data.tar.gz: a0ae32c9c225b0e91746611d1ce644e36b4e53c3e0b9319b569d302d9c45c0ccd492cdf6273b6392cca36edddab4a6865767b5951a5b644c2059fe7ab3a556db
|
data/CHANGELOG.md
CHANGED
@@ -1,36 +1,134 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
This project uses [Semantic Versioning 2.0.0](https://semver.org/).
|
3
4
|
|
4
|
-
|
5
|
+
## 5.0.4
|
6
|
+
|
7
|
+
### Changed
|
8
|
+
|
9
|
+
- Reduced .gem file size (GH-259). [Thanks @ybiquitous]
|
10
|
+
- Updated definitions.
|
11
|
+
|
12
|
+
## 5.0.3
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
|
16
|
+
- Fixed automated release workflow.
|
17
|
+
|
18
|
+
## 5.0.2
|
19
|
+
|
20
|
+
### Changed
|
21
|
+
|
22
|
+
- Updated definitions.
|
23
|
+
|
24
|
+
## 5.0.1
|
25
|
+
|
26
|
+
### Changed
|
27
|
+
|
28
|
+
- Updated definitions.
|
29
|
+
|
30
|
+
|
31
|
+
## 5.0.0
|
32
|
+
|
33
|
+
### Changed
|
34
|
+
|
35
|
+
- Minimum Ruby version is 2.6
|
36
|
+
|
37
|
+
- Updated definitions.
|
38
|
+
|
39
|
+
|
40
|
+
## 4.0.7
|
41
|
+
|
42
|
+
### Fixes
|
43
|
+
|
44
|
+
- Fixed YARD rake task (GH-179)
|
45
|
+
|
46
|
+
### Changed
|
47
|
+
|
48
|
+
- Updated definitions.
|
49
|
+
|
50
|
+
|
51
|
+
## 4.0.6
|
52
|
+
|
53
|
+
### Changed
|
54
|
+
|
55
|
+
- Updated definitions.
|
56
|
+
|
57
|
+
|
58
|
+
## 4.0.5
|
59
|
+
|
60
|
+
### Changed
|
61
|
+
|
62
|
+
- Updated definitions.
|
63
|
+
|
64
|
+
|
65
|
+
## 4.0.4
|
66
|
+
|
67
|
+
### Changed
|
68
|
+
|
69
|
+
- Updated definitions.
|
70
|
+
|
71
|
+
|
72
|
+
## 4.0.3
|
73
|
+
|
74
|
+
### Fixed
|
75
|
+
|
76
|
+
- Fixed 2.7 deprecations and warnings (GH-167). [Thanks @BrianHawley]
|
77
|
+
|
78
|
+
|
79
|
+
## 4.0.2
|
80
|
+
|
81
|
+
### Changed
|
82
|
+
|
83
|
+
- Updated definitions.
|
84
|
+
|
85
|
+
|
86
|
+
## 4.0.1
|
87
|
+
|
88
|
+
### Changed
|
89
|
+
|
90
|
+
- Updated definitions.
|
91
|
+
|
92
|
+
|
93
|
+
## 4.0.0
|
94
|
+
|
95
|
+
### Changed
|
96
|
+
|
97
|
+
- Minimum Ruby version is 2.3
|
98
|
+
|
99
|
+
|
100
|
+
## Release 3.1.1
|
5
101
|
|
6
102
|
- CHANGED: Updated definitions.
|
7
103
|
- CHANGED: Rolled back support for Ruby 2.3 (GH-161, GH-162)
|
8
104
|
|
105
|
+
IMPORTANT: 3.x is the latest version compatible with Ruby 2.1 and Ruby 2.2.
|
106
|
+
|
9
107
|
|
10
|
-
|
108
|
+
## Release 3.1.0
|
11
109
|
|
12
110
|
- CHANGED: Updated definitions.
|
13
111
|
- CHANGED: Minimum Ruby version is 2.3
|
14
112
|
- CHANGED: Upgraded to Bundler 2.x
|
15
113
|
|
16
114
|
|
17
|
-
|
115
|
+
## Release 3.0.3
|
18
116
|
|
19
117
|
- CHANGED: Updated definitions.
|
20
118
|
|
21
119
|
|
22
|
-
|
120
|
+
## Release 3.0.2
|
23
121
|
|
24
122
|
- CHANGED: Updated definitions.
|
25
123
|
|
26
124
|
|
27
|
-
|
125
|
+
## Release 3.0.1
|
28
126
|
|
29
127
|
- CHANGED: Updated definitions.
|
30
128
|
- CHANGED: Improve performance and avoid allocation (GH-146). [Thanks @robholland]
|
31
129
|
|
32
130
|
|
33
|
-
|
131
|
+
## Release 3.0.0
|
34
132
|
|
35
133
|
This new version includes a major redesign of the library internals, with the goal to drastically
|
36
134
|
improve the lookup time while reducing storage space.
|
@@ -47,35 +145,35 @@ and/or removed. You can find more information at GH-133.
|
|
47
145
|
- CHANGED: Redesigned internal list storage and lookup algorithm to achieve O(1) lookup time (see GH-133).
|
48
146
|
|
49
147
|
|
50
|
-
|
148
|
+
## Release 2.0.5
|
51
149
|
|
52
150
|
- CHANGED: Updated definitions.
|
53
151
|
- CHANGED: Initialization performance improvements (GH-128). [Thanks @casperisfine]
|
54
152
|
|
55
153
|
|
56
|
-
|
154
|
+
## Release 2.0.4
|
57
155
|
|
58
156
|
- FIXED: Fix a bug that caused the GEM to be published with the wrong version number in the gemspec (GH-121).
|
59
157
|
|
60
158
|
- CHANGED: Updated definitions.
|
61
159
|
|
62
160
|
|
63
|
-
|
161
|
+
## Release 2.0.3
|
64
162
|
|
65
163
|
- CHANGED: Updated definitions.
|
66
164
|
|
67
165
|
|
68
|
-
|
166
|
+
## Release 2.0.2
|
69
167
|
|
70
168
|
- CHANGED: Updated definitions.
|
71
169
|
|
72
170
|
|
73
|
-
|
171
|
+
## Release 2.0.1
|
74
172
|
|
75
173
|
- FIXED: Fix bug that prevented .valid? to reset the default rule
|
76
174
|
|
77
175
|
|
78
|
-
|
176
|
+
## Release 2.0.0
|
79
177
|
|
80
178
|
- NEW: Added PublicSuffix.domain # => sld.tld
|
81
179
|
- 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 +190,97 @@ and/or removed. You can find more information at GH-133.
|
|
92
190
|
- 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
191
|
|
94
192
|
|
95
|
-
|
193
|
+
## Release 1.5.3
|
96
194
|
|
97
195
|
- FIXED: Don't duplicate rule indices when creating index (GH-77). [Thanks @ags]
|
98
196
|
|
99
197
|
- CHANGED: Updated definitions.
|
100
198
|
|
101
199
|
|
102
|
-
|
200
|
+
## Release 1.5.2
|
103
201
|
|
104
202
|
- CHANGED: Updated definitions.
|
105
203
|
|
106
204
|
|
107
|
-
|
205
|
+
## Release 1.5.1
|
108
206
|
|
109
207
|
- FIXED: Ignore case for parsing and validating (GH-62)
|
110
208
|
|
111
209
|
- CHANGED: Updated definitions.
|
112
210
|
|
113
211
|
|
114
|
-
|
212
|
+
## Release 1.5.0
|
115
213
|
|
116
214
|
- CHANGED: Dropped support for Ruby < 2.0
|
117
215
|
|
118
216
|
- CHANGED: Updated definitions.
|
119
217
|
|
120
218
|
|
121
|
-
|
219
|
+
## Release 1.4.6
|
122
220
|
|
123
221
|
- CHANGED: Updated definitions.
|
124
222
|
|
125
223
|
|
126
|
-
|
224
|
+
## Release 1.4.5
|
127
225
|
|
128
226
|
- CHANGED: Updated definitions.
|
129
227
|
|
130
228
|
|
131
|
-
|
229
|
+
## Release 1.4.4
|
132
230
|
|
133
231
|
- CHANGED: Updated definitions.
|
134
232
|
|
135
233
|
|
136
|
-
|
234
|
+
## Release 1.4.3
|
137
235
|
|
138
236
|
- CHANGED: Updated definitions.
|
139
237
|
|
140
238
|
|
141
|
-
|
239
|
+
## Release 1.4.2
|
142
240
|
|
143
241
|
- CHANGED: Updated definitions.
|
144
242
|
|
145
243
|
|
146
|
-
|
244
|
+
## Release 1.4.1
|
147
245
|
|
148
246
|
- CHANGED: Updated definitions.
|
149
247
|
|
150
248
|
|
151
|
-
|
249
|
+
## Release 1.4.0
|
152
250
|
|
153
251
|
- CHANGED: Moved the definitions in the lib folder.
|
154
252
|
|
155
253
|
- CHANGED: Updated definitions.
|
156
254
|
|
157
255
|
|
158
|
-
|
256
|
+
## Release 1.3.3
|
159
257
|
|
160
258
|
- CHANGED: Updated definitions.
|
161
259
|
|
162
260
|
|
163
|
-
|
261
|
+
## Release 1.3.2
|
164
262
|
|
165
263
|
- CHANGED: Updated definitions.
|
166
264
|
|
167
265
|
|
168
|
-
|
266
|
+
## Release 1.3.1
|
169
267
|
|
170
268
|
- CHANGED: Updated definitions.
|
171
269
|
|
172
270
|
|
173
|
-
|
271
|
+
## Release 1.3.0
|
174
272
|
|
175
273
|
- NEW: Ability to skip Private Domains (GH-28). [Thanks @rb2k]
|
176
274
|
|
177
275
|
- CHANGED: Updated definitions.
|
178
276
|
|
179
277
|
|
180
|
-
|
278
|
+
## Release 1.2.1
|
181
279
|
|
182
280
|
- CHANGED: Updated definitions.
|
183
281
|
|
184
282
|
|
185
|
-
|
283
|
+
## Release 1.2.0
|
186
284
|
|
187
285
|
- NEW: Allow a custom List on `PublicSuffix.parse` (GH-26). [Thanks @itspriddle]
|
188
286
|
|
@@ -191,22 +289,22 @@ and/or removed. You can find more information at GH-133.
|
|
191
289
|
- CHANGED: Updated definitions.
|
192
290
|
|
193
291
|
|
194
|
-
|
292
|
+
## Release 1.1.3
|
195
293
|
|
196
294
|
- CHANGED: Updated definitions.
|
197
295
|
|
198
296
|
|
199
|
-
|
297
|
+
## Release 1.1.2
|
200
298
|
|
201
299
|
- CHANGED: Updated definitions.
|
202
300
|
|
203
301
|
|
204
|
-
|
302
|
+
## Release 1.1.1
|
205
303
|
|
206
304
|
- CHANGED: Updated definitions.
|
207
305
|
|
208
306
|
|
209
|
-
|
307
|
+
## Release 1.1.0
|
210
308
|
|
211
309
|
- FIXED: #valid? and #parse consider URIs as valid domains (GH-15)
|
212
310
|
|
@@ -215,17 +313,17 @@ and/or removed. You can find more information at GH-133.
|
|
215
313
|
- CHANGED: Removed deprecatd PublicSuffixService::RuleList.
|
216
314
|
|
217
315
|
|
218
|
-
|
316
|
+
## Release 1.0.0
|
219
317
|
|
220
318
|
- CHANGED: Updated definitions.
|
221
319
|
|
222
320
|
|
223
|
-
|
321
|
+
## Release 1.0.0.rc1
|
224
322
|
|
225
323
|
The library is now known as PublicSuffix.
|
226
324
|
|
227
325
|
|
228
|
-
|
326
|
+
## Release 0.9.1
|
229
327
|
|
230
328
|
- CHANGED: Renamed PublicSuffixService::RuleList to PublicSuffixService::List.
|
231
329
|
|
@@ -236,20 +334,20 @@ The library is now known as PublicSuffix.
|
|
236
334
|
- CHANGED: Updated definitions.
|
237
335
|
|
238
336
|
|
239
|
-
|
337
|
+
## Release 0.9.0
|
240
338
|
|
241
339
|
- CHANGED: Minimum Ruby version increased to Ruby 1.8.7.
|
242
340
|
|
243
341
|
- CHANGED: rake/gempackagetask is deprecated. Use rubygems/package_task instead.
|
244
342
|
|
245
343
|
|
246
|
-
|
344
|
+
## Release 0.8.4
|
247
345
|
|
248
346
|
- FIXED: Reverted bugfix for issue #12 for Ruby 1.8.6.
|
249
347
|
This is the latest version compatible with Ruby 1.8.6.
|
250
348
|
|
251
349
|
|
252
|
-
|
350
|
+
## Release 0.8.3
|
253
351
|
|
254
352
|
- FIXED: Fixed ArgumentError: invalid byte sequence in US-ASCII with Ruby 1.9.2 (#12).
|
255
353
|
|
@@ -258,7 +356,7 @@ The library is now known as PublicSuffix.
|
|
258
356
|
- CHANGED: Renamed definitions.txt to definitions.dat.
|
259
357
|
|
260
358
|
|
261
|
-
|
359
|
+
## Release 0.8.2
|
262
360
|
|
263
361
|
- NEW: Added support for rubygems-test.
|
264
362
|
|
@@ -267,19 +365,19 @@ The library is now known as PublicSuffix.
|
|
267
365
|
- CHANGED: Updated definitions.
|
268
366
|
|
269
367
|
|
270
|
-
|
368
|
+
## Release 0.8.1
|
271
369
|
|
272
370
|
- FIXED: The files in the release 0.8.0 have wrong permission 600 and can't be loaded (#10).
|
273
371
|
|
274
372
|
|
275
|
-
|
373
|
+
## Release 0.8.0
|
276
374
|
|
277
375
|
- CHANGED: Update public suffix list to d1a5599b49fa 2010-10-25 15:10 +0100 (#9)
|
278
376
|
|
279
377
|
- NEW: Add support for Fully Qualified Domain Names (#7)
|
280
378
|
|
281
379
|
|
282
|
-
|
380
|
+
## Release 0.7.0
|
283
381
|
|
284
382
|
- CHANGED: Using YARD to document the code instead of RDoc.
|
285
383
|
|
@@ -288,7 +386,7 @@ The library is now known as PublicSuffix.
|
|
288
386
|
- FIXED: PublicSuffixService.valid? should return false if the domain is not defined or not allowed (#4, #5)
|
289
387
|
|
290
388
|
|
291
|
-
|
389
|
+
## Release 0.6.0
|
292
390
|
|
293
391
|
- NEW: PublicSuffixService.parse raises DomainNotAllowed when trying to parse a domain name
|
294
392
|
which exists, but is not allowed by the current definition list (#3)
|
@@ -299,34 +397,34 @@ The library is now known as PublicSuffix.
|
|
299
397
|
- CHANGED: Renamed PublicSuffixService::InvalidDomain to PublicSuffixService::DomainInvalid
|
300
398
|
|
301
399
|
|
302
|
-
|
400
|
+
## Release 0.5.2
|
303
401
|
|
304
402
|
- CHANGED: Update public suffix list to 248ea690d671 2010-09-16 18:02 +0100
|
305
403
|
|
306
404
|
|
307
|
-
|
405
|
+
## Release 0.5.1
|
308
406
|
|
309
407
|
- CHANGED: Update public suffix list to 14dc66dd53c1 2010-09-15 17:09 +0100
|
310
408
|
|
311
409
|
|
312
|
-
|
410
|
+
## Release 0.5.0
|
313
411
|
|
314
412
|
- CHANGED: Improve documentation for Domain#domain and Domain#subdomain (#1).
|
315
413
|
|
316
414
|
- CHANGED: Performance improvements (#2).
|
317
415
|
|
318
416
|
|
319
|
-
|
417
|
+
## Release 0.4.0
|
320
418
|
|
321
419
|
- CHANGED: Rename library from DomainName to PublicSuffixService to reduce the probability of name conflicts.
|
322
420
|
|
323
421
|
|
324
|
-
|
422
|
+
## Release 0.3.1
|
325
423
|
|
326
424
|
- Deprecated DomainName library.
|
327
425
|
|
328
426
|
|
329
|
-
|
427
|
+
## Release 0.3.0
|
330
428
|
|
331
429
|
- CHANGED: DomainName#domain and DomainName#subdomain are no longer alias of Domain#sld and Domain#tld.
|
332
430
|
|
@@ -337,7 +435,7 @@ The library is now known as PublicSuffix.
|
|
337
435
|
- 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
436
|
|
339
437
|
|
340
|
-
|
438
|
+
## Release 0.2.0
|
341
439
|
|
342
440
|
- NEW: DomainName#valid?
|
343
441
|
|
@@ -348,6 +446,6 @@ The library is now known as PublicSuffix.
|
|
348
446
|
- CHANGED: Make sure RuleList lookup is only performed once.
|
349
447
|
|
350
448
|
|
351
|
-
|
449
|
+
## Release 0.1.0
|
352
450
|
|
353
451
|
- Initial version
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -2,14 +2,21 @@
|
|
2
2
|
|
3
3
|
<tt>PublicSuffix</tt> is a Ruby domain name parser based on the [Public Suffix List](https://publicsuffix.org/).
|
4
4
|
|
5
|
-
[![Build Status](https://
|
5
|
+
[![Build Status](https://github.com/weppos/publicsuffix-ruby/actions/workflows/tests.yml/badge.svg)](https://github.com/weppos/publicsuffix-ruby/actions/workflows/tests.yml)
|
6
|
+
[![Tidelift dependencies](https://tidelift.com/badges/package/rubygems/public_suffix)](https://tidelift.com/subscription/pkg/rubygems-public-suffix?utm_source=rubygems-public-suffix&utm_medium=referral&utm_campaign=enterprise)
|
6
7
|
|
7
8
|
|
8
|
-
##
|
9
|
+
## Links
|
10
|
+
|
11
|
+
- [Homepage](https://simonecarletti.com/code/publicsuffix-ruby)
|
12
|
+
- [Repository](https://github.com/weppos/publicsuffix-ruby)
|
13
|
+
- [API Documentation](https://rubydoc.info/gems/public_suffix)
|
14
|
+
- [Introducing the Public Suffix List library for Ruby](https://simonecarletti.com/blog/2010/06/public-suffix-list-library-for-ruby/)
|
9
15
|
|
10
|
-
- Ruby >= 2.3
|
11
16
|
|
12
|
-
|
17
|
+
## Requirements
|
18
|
+
|
19
|
+
<tt>PublicSuffix</tt> requires **Ruby >= 2.6**. For an older versions of Ruby use a previous release.
|
13
20
|
|
14
21
|
|
15
22
|
## Installation
|
@@ -17,7 +24,7 @@ For an older versions of Ruby use a previous release.
|
|
17
24
|
You can install the gem manually:
|
18
25
|
|
19
26
|
```shell
|
20
|
-
|
27
|
+
gem install public_suffix
|
21
28
|
```
|
22
29
|
|
23
30
|
Or use Bundler and define it as a dependency in your `Gemfile`:
|
@@ -143,6 +150,13 @@ PublicSuffix.domain("something.blogspot.com")
|
|
143
150
|
# => "blogspot.com"
|
144
151
|
```
|
145
152
|
|
153
|
+
## Add domain to list
|
154
|
+
|
155
|
+
If you want to manually add a domain to the list just run:
|
156
|
+
|
157
|
+
```ruby
|
158
|
+
PublicSuffix::List.default << PublicSuffix::Rule.factory('onmicrosoft.com')
|
159
|
+
```
|
146
160
|
|
147
161
|
## What is the Public Suffix List?
|
148
162
|
|
@@ -173,21 +187,19 @@ Not convinced yet? Check out [this real world example](https://stackoverflow.com
|
|
173
187
|
No. <tt>PublicSuffix</tt> comes with a bundled list. It does not make any HTTP requests to parse or validate a domain.
|
174
188
|
|
175
189
|
|
176
|
-
##
|
190
|
+
## Support
|
177
191
|
|
178
|
-
|
192
|
+
Library documentation is auto-generated from the [README](https://github.com/weppos/publicsuffix-ruby/blob/master/README.md) and the source code, and it's available at https://rubydoc.info/gems/public_suffix.
|
179
193
|
|
180
|
-
|
194
|
+
- The PublicSuffix bug tracker is here: https://github.com/weppos/publicsuffix-ruby/issues
|
195
|
+
- The PublicSuffix code repository is here: https://github.com/weppos/publicsuffix-ruby. Contributions are welcome! Please include tests and/or feature coverage for every patch, and create a topic branch for every separate change you make.
|
181
196
|
|
182
|
-
|
197
|
+
[Consider subscribing to Tidelift which provides Enterprise support for this project](https://tidelift.com/subscription/pkg/rubygems-public-suffix?utm_source=rubygems-public-suffix&utm_medium=referral&utm_campaign=readme) as part of the Tidelift Subscription. Tidelift subscriptions also help the maintainers by funding the project, which in turn allows us to ship releases, bugfixes, and security updates more often.
|
183
198
|
|
184
199
|
|
185
|
-
##
|
200
|
+
## Security and Vulnerability Reporting
|
186
201
|
|
187
|
-
|
188
|
-
- [Repository](https://github.com/weppos/publicsuffix-ruby)
|
189
|
-
- [API Documentation](http://rubydoc.info/gems/public_suffix)
|
190
|
-
- [Introducing the Public Suffix List library for Ruby](https://simonecarletti.com/blog/2010/06/public-suffix-list-library-for-ruby/)
|
202
|
+
Full information and description of our security policy please visit [`SECURITY.md`](SECURITY.md)
|
191
203
|
|
192
204
|
|
193
205
|
## Changelog
|
@@ -197,6 +209,16 @@ See the [CHANGELOG.md](CHANGELOG.md) file for details.
|
|
197
209
|
|
198
210
|
## License
|
199
211
|
|
200
|
-
Copyright (c) 2009-
|
212
|
+
Copyright (c) 2009-2023 Simone Carletti. This is Free Software distributed under the MIT license.
|
201
213
|
|
202
214
|
The [Public Suffix List source](https://publicsuffix.org/list/) is subject to the terms of the Mozilla Public License, v. 2.0.
|
215
|
+
|
216
|
+
## Definitions
|
217
|
+
|
218
|
+
tld = Top level domain, this is in reference to the last segment of a domain, sometimes the part that is directly after the "dot" symbol. For example, `mozilla.org`, the `.org` portion is the tld.
|
219
|
+
|
220
|
+
sld = Second level domain, a domain that is directly below a top-level domain. For example, in `https://www.mozilla.org/en-US/`, `mozilla` is the second-level domain of the .org tld.
|
221
|
+
|
222
|
+
trd = Transit routing domain, or known as a subdomain. This is the part of the domain that is before the sld or root domain. For example, in `https://www.mozilla.org/en-US/`, `www` is the trd.
|
223
|
+
|
224
|
+
FQDN = Fully Qualified Domain Names, are domain names that are written with the hostname and the domain name, and include the top-level domain, the format looks like `[hostname].[domain].[tld].` for ex. `[www].[mozilla].[org]`.
|
data/SECURITY.md
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Supported Versions
|
4
|
+
|
5
|
+
Security updates are provided only for the current minor version.
|
6
|
+
|
7
|
+
If you are using a previous minor version, we recommend to upgrade to the current minor version.
|
8
|
+
This project uses [semantic versioning](https://semver.org/), therefore you can upgrade to a more recent minor version without incurring into breaking changes.
|
9
|
+
|
10
|
+
Exceptionally, we may support previous minor versions upon request if there are significant reasons preventing to immediately switch the latest minor version.
|
11
|
+
|
12
|
+
Older major versions are no longer supported.
|
13
|
+
|
14
|
+
|
15
|
+
## Reporting a Vulnerability
|
16
|
+
|
17
|
+
To make a report, please email weppos@weppos.net.
|
18
|
+
|
19
|
+
> [!IMPORTANT]
|
20
|
+
> Please consider encrypting your report with GPG using the key [0x420da82a989398df](https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x420da82a989398df).
|
21
|
+
|
22
|
+
|
23
|
+
## Tracking Security Updates
|
24
|
+
|
25
|
+
Information about security vulnerabilities are published in the [Security Advisories](https://github.com/weppos/publicsuffix-ruby/security/advisories) page.
|