public_suffix 4.0.4 → 4.0.7

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: 4024f44e47147f95aacb6e0be5e0d7b9a23e3b2a4ea98c8f4f2bfd3eac65bd08
4
- data.tar.gz: 99596dd3d3d98439fed363cfb0d9d1500a7096bf744583625d4ebb8f91d7e8b2
3
+ metadata.gz: 4ea7129dc0659a87fad96459afefddaafdb4280eac62895e036ce1e2bcf14d91
4
+ data.tar.gz: a335705e6ba76d959f52b3e4acea7be1f97c472af3b05a34cd15bae9a3301582
5
5
  SHA512:
6
- metadata.gz: 127164c169e2c4cf0b7d640afab77a6fc52772501d9b09ac4c161ede20422e15c58f6a36346a46dffe104d33467915298b4538085ea427682984af914ea0448d
7
- data.tar.gz: 6fb21d08ee9c96a78c87e780ee186282aa73d9957b613043b7779dc5a350a69bbee645b267bb462cde7cdf0befbcd037514bc66c28059c6254bfc4476d1e518a
6
+ metadata.gz: 1d1a8d2f55e733e6f2ed7f7ed233cda997e55b0838b2926488c15e86586a72329ee2392af7ccc94dd3a5b04c60f3bbd0358fe38c0f4e82e0c13ae513a0dafdf4
7
+ data.tar.gz: aced9afff807ed3c71457871d68b56f7288cff8e5379da534f9deccea735ca1911074b7f300795f021e7b17a1ccf4ced27630efd3d1dd667c10a998b611fb71c
@@ -0,0 +1,8 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: bundler
4
+ directory: "/"
5
+ schedule:
6
+ interval: daily
7
+ time: "04:00"
8
+ open-pull-requests-limit: 10
@@ -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
@@ -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,6 +15,12 @@ Layout/LineLength:
14
15
  - 'test/**/*_test.rb'
15
16
  Max: 100
16
17
 
18
+ Lint/ConstantDefinitionInBlock:
19
+ Exclude:
20
+ - 'Rakefile'
21
+ - 'spec/**/*'
22
+ - 'test/**/*'
23
+
17
24
  # [codesmell]
18
25
  Metrics/AbcSize:
19
26
  Enabled: false
@@ -154,21 +161,3 @@ Style/TrivialAccessors:
154
161
  # end
155
162
  #
156
163
  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
data/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
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
+
6
31
  ## 4.0.4
7
32
 
8
33
  ### Changed
data/Gemfile CHANGED
@@ -6,10 +6,9 @@ gemspec
6
6
 
7
7
  gem "rake"
8
8
 
9
- gem "codecov", require: false
10
9
  gem "memory_profiler", require: false
11
10
  gem "minitest"
12
11
  gem "minitest-reporters"
13
12
  gem "mocha"
14
- gem "rubocop", "0.81.0", require: false
13
+ gem "rubocop", "~>0.90", require: false
15
14
  gem "yard"
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-2020 Simone Carletti <weppos@weppos.net>
1
+ Copyright (c) 2009-2022 Simone Carletti <weppos@weppos.net>
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -2,7 +2,7 @@
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://travis-ci.com/weppos/publicsuffix-ruby.svg?branch=master)](https://travis-ci.com/weppos/publicsuffix-ruby)
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
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)
7
7
 
8
8
 
@@ -202,6 +202,16 @@ See the [CHANGELOG.md](CHANGELOG.md) file for details.
202
202
 
203
203
  ## License
204
204
 
205
- Copyright (c) 2009-2020 Simone Carletti. This is Free Software distributed under the MIT license.
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
@@ -20,6 +20,7 @@ require "rubocop/rake_task"
20
20
  RuboCop::RakeTask.new
21
21
 
22
22
 
23
+ require "yard"
23
24
  require "yard/rake/yardoc_task"
24
25
 
25
26
  YARD::Rake::YardocTask.new(:yardoc) do |y|