public_suffix 4.0.3 → 4.0.7
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 +4 -4
- data/.github/dependabot.yml +8 -0
- data/.github/workflows/release.yml +16 -0
- data/.github/workflows/tests.yml +28 -0
- data/.gitignore +5 -8
- data/.rubocop.yml +1 -1
- data/{.rubocop_defaults.yml → .rubocop_opinionated.yml} +9 -25
- data/CHANGELOG.md +32 -0
- data/Gemfile +6 -4
- data/LICENSE.txt +1 -1
- data/README.md +13 -3
- data/Rakefile +1 -0
- data/SECURITY.md +4 -1
- data/data/list.txt +1412 -436
- data/lib/public_suffix/domain.rb +1 -1
- data/lib/public_suffix/errors.rb +1 -1
- data/lib/public_suffix/list.rb +4 -4
- data/lib/public_suffix/rule.rb +12 -12
- data/lib/public_suffix/version.rb +5 -3
- data/lib/public_suffix.rb +11 -13
- data/public_suffix.gemspec +8 -4
- data/test/acceptance_test.rb +31 -29
- data/test/psl_test.rb +1 -1
- data/test/test_helper.rb +0 -8
- data/test/unit/public_suffix_test.rb +11 -11
- data/test/unit/rule_test.rb +30 -30
- metadata +15 -71
- data/.travis.yml +0 -23
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4ea7129dc0659a87fad96459afefddaafdb4280eac62895e036ce1e2bcf14d91
|
|
4
|
+
data.tar.gz: a335705e6ba76d959f52b3e4acea7be1f97c472af3b05a34cd15bae9a3301582
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d1a8d2f55e733e6f2ed7f7ed233cda997e55b0838b2926488c15e86586a72329ee2392af7ccc94dd3a5b04c60f3bbd0358fe38c0f4e82e0c13ae513a0dafdf4
|
|
7
|
+
data.tar.gz: aced9afff807ed3c71457871d68b56f7288cff8e5379da534f9deccea735ca1911074b7f300795f021e7b17a1ccf4ced27630efd3d1dd667c10a998b611fb71c
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
name: release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- v*.*.*
|
|
7
|
+
jobs:
|
|
8
|
+
release:
|
|
9
|
+
runs-on: ubuntu-latest
|
|
10
|
+
steps:
|
|
11
|
+
- uses: actions/checkout@v2
|
|
12
|
+
- name: Release Gem
|
|
13
|
+
uses: cadwallion/publish-rubygems-action@8f9e0538302643309e4e43bf48cd34173ca48cfc
|
|
14
|
+
env:
|
|
15
|
+
RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
|
|
16
|
+
RELEASE_COMMAND: rake release
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
name: Tests
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
pull_request:
|
|
6
|
+
workflow_dispatch:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
build:
|
|
10
|
+
strategy:
|
|
11
|
+
matrix:
|
|
12
|
+
ruby-version:
|
|
13
|
+
- "2.6"
|
|
14
|
+
- "2.7"
|
|
15
|
+
- "3.0"
|
|
16
|
+
- "3.1"
|
|
17
|
+
platform: [ubuntu-latest]
|
|
18
|
+
runs-on: ${{ matrix.platform }}
|
|
19
|
+
steps:
|
|
20
|
+
- uses: actions/checkout@v2
|
|
21
|
+
- name: Set up Ruby
|
|
22
|
+
uses: ruby/setup-ruby@v1
|
|
23
|
+
with:
|
|
24
|
+
ruby-version: ${{ matrix.ruby-version }}
|
|
25
|
+
- name: Install dependencies
|
|
26
|
+
run: bundle install
|
|
27
|
+
- name: Run tests
|
|
28
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -5,6 +5,7 @@ AllCops:
|
|
|
5
5
|
# Exclude vendored folders
|
|
6
6
|
- 'tmp/**/*'
|
|
7
7
|
- 'vendor/**/*'
|
|
8
|
+
NewCops: enable
|
|
8
9
|
|
|
9
10
|
# [codesmell]
|
|
10
11
|
Layout/LineLength:
|
|
@@ -14,20 +15,11 @@ Layout/LineLength:
|
|
|
14
15
|
- 'test/**/*_test.rb'
|
|
15
16
|
Max: 100
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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
|
|
18
|
+
Lint/ConstantDefinitionInBlock:
|
|
19
|
+
Exclude:
|
|
20
|
+
- 'Rakefile'
|
|
21
|
+
- 'spec/**/*'
|
|
22
|
+
- 'test/**/*'
|
|
31
23
|
|
|
32
24
|
# [codesmell]
|
|
33
25
|
Metrics/AbcSize:
|
|
@@ -120,17 +112,6 @@ Style/FormatString:
|
|
|
120
112
|
Style/FormatStringToken:
|
|
121
113
|
Enabled: false
|
|
122
114
|
|
|
123
|
-
# Prefer the latest Hash syntax
|
|
124
|
-
Style/HashSyntax:
|
|
125
|
-
Exclude:
|
|
126
|
-
# But Rakefiles generally have some definition like
|
|
127
|
-
# :default => :test
|
|
128
|
-
# that looks nicer with the old rocket syntax.
|
|
129
|
-
- 'Rakefile'
|
|
130
|
-
|
|
131
|
-
Style/RescueStandardError:
|
|
132
|
-
Enabled: false
|
|
133
|
-
|
|
134
115
|
# unless is not always cool.
|
|
135
116
|
Style/NegatedIf:
|
|
136
117
|
Enabled: false
|
|
@@ -145,6 +126,9 @@ Style/PercentLiteralDelimiters:
|
|
|
145
126
|
Style/RescueModifier:
|
|
146
127
|
Enabled: false
|
|
147
128
|
|
|
129
|
+
Style/SymbolArray:
|
|
130
|
+
EnforcedStyle: brackets
|
|
131
|
+
|
|
148
132
|
# Sorry, but using trailing spaces helps readability.
|
|
149
133
|
#
|
|
150
134
|
# %w( foo bar )
|
data/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
3
3
|
This project uses [Semantic Versioning 2.0.0](https://semver.org/).
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
## 4.0.7
|
|
7
|
+
|
|
8
|
+
### Fixes
|
|
9
|
+
|
|
10
|
+
- Fixed YARD rake task (GH-179)
|
|
11
|
+
|
|
12
|
+
### Changed
|
|
13
|
+
|
|
14
|
+
- Updated definitions.
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 4.0.6
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- Updated definitions.
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## 4.0.5
|
|
25
|
+
|
|
26
|
+
### Changed
|
|
27
|
+
|
|
28
|
+
- Updated definitions.
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
## 4.0.4
|
|
32
|
+
|
|
33
|
+
### Changed
|
|
34
|
+
|
|
35
|
+
- Updated definitions.
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## 4.0.3
|
|
7
39
|
|
|
8
40
|
### Fixed
|
data/Gemfile
CHANGED
|
@@ -4,9 +4,11 @@ source "https://rubygems.org"
|
|
|
4
4
|
|
|
5
5
|
gemspec
|
|
6
6
|
|
|
7
|
-
gem "
|
|
8
|
-
gem "minitest"
|
|
9
|
-
gem "minitest-reporters"
|
|
10
|
-
gem "rubocop", require: false
|
|
7
|
+
gem "rake"
|
|
11
8
|
|
|
12
9
|
gem "memory_profiler", require: false
|
|
10
|
+
gem "minitest"
|
|
11
|
+
gem "minitest-reporters"
|
|
12
|
+
gem "mocha"
|
|
13
|
+
gem "rubocop", "~>0.90", require: false
|
|
14
|
+
gem "yard"
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
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
|
-
[](https://github.com/weppos/publicsuffix-ruby/actions/workflows/tests.yml)
|
|
6
|
+
[](https://tidelift.com/subscription/pkg/rubygems-public-suffix?utm_source=rubygems-public-suffix&utm_medium=referral&utm_campaign=enterprise)
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
## Links
|
|
@@ -202,6 +202,16 @@ See the [CHANGELOG.md](CHANGELOG.md) file for details.
|
|
|
202
202
|
|
|
203
203
|
## License
|
|
204
204
|
|
|
205
|
-
Copyright (c) 2009-
|
|
205
|
+
Copyright (c) 2009-2022 Simone Carletti. This is Free Software distributed under the MIT license.
|
|
206
206
|
|
|
207
207
|
The [Public Suffix List source](https://publicsuffix.org/list/) is subject to the terms of the Mozilla Public License, v. 2.0.
|
|
208
|
+
|
|
209
|
+
## Definitions
|
|
210
|
+
|
|
211
|
+
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.
|
|
212
|
+
|
|
213
|
+
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.
|
|
214
|
+
|
|
215
|
+
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.
|
|
216
|
+
|
|
217
|
+
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/Rakefile
CHANGED
data/SECURITY.md
CHANGED
|
@@ -16,7 +16,7 @@ Older major versions are no longer supported.
|
|
|
16
16
|
|
|
17
17
|
To make a report, please email weppos@weppos.net.
|
|
18
18
|
|
|
19
|
-
Please consider encrypting your report with GPG using the key (
|
|
19
|
+
Please consider encrypting your report with GPG using the key [0x420da82a989398df](https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x420da82a989398df).
|
|
20
20
|
|
|
21
21
|
```
|
|
22
22
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
|
@@ -99,3 +99,6 @@ q59MIs/Fb3SgaO+zN2FZTYp6dyRJHbeEz55JdOu6F+6ihZYH
|
|
|
99
99
|
```
|
|
100
100
|
|
|
101
101
|
|
|
102
|
+
## Tracking Security Updates
|
|
103
|
+
|
|
104
|
+
Information about security vulnerabilities are published in the [Security Advisories](https://github.com/weppos/publicsuffix-ruby/security/advisories) page.
|