domain_name 0.6.20240107 → 0.6.20260829

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: 712047d02b4fa86805be0e9e3cf64e0725d8e7bc7396a8cc02eaee0fb47cc1c4
4
- data.tar.gz: 24661d27286d2533fd25b733c4e72364eb99e1fee2ef7643d811479f7b6c7345
3
+ metadata.gz: 54139ca97fb756008247f18c15859ada1bb8d1c811b2c62be3b25054f22ce310
4
+ data.tar.gz: 5434e4081bf12f7465a2506727865b37c26b953a5e4a898691a2c7cf2cdf689d
5
5
  SHA512:
6
- metadata.gz: 1184c28247f223ff9e9faa143cf3063d17dcc16cae63df8b4d2436bec516c32d037d1e8fd90314297064f5bb650f2e355daafa91d388d7120b39016f024a4478
7
- data.tar.gz: 118da88bb79a0a7471e8d3d7edc42d29aa6f58af9791ea2894aef602d1d4bbc8c6d923576c47deb5ea6656928747ea5553c6d0544dd7371506f20eb53d96ff42
6
+ metadata.gz: 25b010eff5d4ba841cf3b3e793d7f4f939d407322692cceaa37122bc8ca3b969574c5be48187e88bfebf0c29cdfd878b3b4ae7b1cba5c61b33c2e38c2e141324
7
+ data.tar.gz: 990b2cfb8da17cae6937f04d98c8a34fbfa3415dd4a46d3f57de0862f3c8ad12eeed6602123053138ff940f629a8c3bcc729818883fb64f568d8e72b845acad7
@@ -0,0 +1,28 @@
1
+ queue_rules:
2
+ - name: dependency-updates
3
+ batch_size: 5
4
+ batch_max_wait_time: 10 min
5
+ checks_timeout: auto
6
+ merge_method: merge-batch
7
+ queue_conditions:
8
+ - base = master
9
+ - author ~= ^(dependabot|renovate)\[bot\]$
10
+ - label != dependencies:major
11
+ - -draft
12
+ - -conflict
13
+ - "#approved-reviews-by >= 1"
14
+ - check-success = Test
15
+ merge_conditions:
16
+ - "#approved-reviews-by >= 1"
17
+ - check-success = Test
18
+
19
+ merge_protections_settings:
20
+ auto_merge_conditions:
21
+ - base = master
22
+ - author ~= ^(dependabot|renovate)\[bot\]$
23
+ - label != dependencies:major
24
+ - -draft
25
+ - -conflict
26
+ - "#approved-reviews-by >= 1"
27
+ - check-success = Test
28
+ reporting_method: check-runs
@@ -0,0 +1,38 @@
1
+ {
2
+ $schema: "https://docs.renovatebot.com/renovate-schema.json",
3
+ extends: [
4
+ "config:recommended",
5
+ "helpers:pinGitHubActionDigests",
6
+ ":dependencyDashboard",
7
+ ":semanticCommitsDisabled",
8
+ ],
9
+ labels: ["dependencies"],
10
+ timezone: "Asia/Tokyo",
11
+ schedule: ["after 9am on friday", "before 6pm on friday"],
12
+ rebaseWhen: "behind-base-branch",
13
+ lockFileMaintenance: {
14
+ enabled: true,
15
+ labels: ["dependencies"],
16
+ schedule: ["after 9am on friday", "before 6pm on friday"],
17
+ },
18
+ vulnerabilityAlerts: {
19
+ enabled: true,
20
+ labels: ["dependencies", "security"],
21
+ },
22
+ packageRules: [
23
+ {
24
+ matchUpdateTypes: ["major"],
25
+ addLabels: ["dependencies:major"],
26
+ },
27
+ {
28
+ matchManagers: ["github-actions"],
29
+ groupName: "github actions",
30
+ minimumReleaseAge: "7 days",
31
+ },
32
+ {
33
+ matchDepTypes: ["devDependencies"],
34
+ groupName: "development dependencies",
35
+ minimumReleaseAge: "3 days",
36
+ },
37
+ ],
38
+ }
@@ -4,11 +4,16 @@ on:
4
4
  push:
5
5
  branches:
6
6
  - master
7
+ tags:
8
+ - "v*"
7
9
  pull_request:
8
10
 
11
+ permissions:
12
+ contents: read
13
+
9
14
  jobs:
10
15
  ruby-versions:
11
- uses: ruby/actions/.github/workflows/ruby_versions.yml@master
16
+ uses: ruby/actions/.github/workflows/ruby_versions.yml@674947565a7afd0edfc4d301c1f0ef65e30f18f5 # master
12
17
  with:
13
18
  engine: cruby
14
19
  min_version: 2.7
@@ -27,15 +32,39 @@ jobs:
27
32
  continue-on-error: ${{matrix.ruby == 'head' || matrix.ruby == 'jruby'}}
28
33
 
29
34
  steps:
35
+ - name: Harden Runner
36
+ uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
37
+ with:
38
+ egress-policy: audit
39
+
30
40
  - name: Check out
31
- uses: actions/checkout@v4
41
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
42
+ with:
43
+ persist-credentials: false
32
44
 
33
- - name: Set up ruby and bundle
34
- uses: ruby/setup-ruby@v1
45
+ - name: Set up Ruby
46
+ uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
35
47
  with:
36
48
  ruby-version: ${{matrix.ruby}}
37
- bundler-cache: true
49
+
50
+ - name: Install dependencies
51
+ run: |
52
+ bundle install --jobs 4 --retry 3
38
53
 
39
54
  - name: Run rake
40
55
  run: |
41
56
  bundle exec rake
57
+
58
+ test-gate:
59
+ name: Test
60
+ if: always()
61
+ needs: test
62
+ runs-on: ubuntu-latest
63
+
64
+ steps:
65
+ - name: Check matrix results
66
+ env:
67
+ RESULT: ${{ needs.test.result }}
68
+ run: |
69
+ set -euo pipefail
70
+ test "$RESULT" = success
@@ -0,0 +1,74 @@
1
+ name: Publish gem to RubyGems.org
2
+
3
+ on:
4
+ workflow_run: # zizmor: ignore[dangerous-triggers]
5
+ workflows:
6
+ - CI
7
+ types:
8
+ - completed
9
+
10
+ permissions:
11
+ contents: read
12
+
13
+ jobs:
14
+ publish:
15
+ if: >-
16
+ ${{
17
+ github.event.workflow_run.conclusion == 'success' &&
18
+ github.event.workflow_run.event == 'push' &&
19
+ github.event.workflow_run.head_repository.full_name == github.repository &&
20
+ startsWith(github.event.workflow_run.head_branch, 'v') &&
21
+ github.repository == 'knu/ruby-domain_name'
22
+ }}
23
+ runs-on: ubuntu-latest
24
+
25
+ environment:
26
+ name: rubygems.org
27
+ url: https://rubygems.org/gems/domain_name
28
+
29
+ permissions:
30
+ contents: write
31
+ id-token: write
32
+
33
+ steps:
34
+ - name: Harden Runner
35
+ uses: step-security/harden-runner@05e31511f85b41b11d1cf0ef85d0992719546e2c # v2.21.0
36
+ with:
37
+ egress-policy: audit
38
+
39
+ - name: Check out release tag
40
+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
41
+ with:
42
+ fetch-depth: 0
43
+ persist-credentials: false
44
+ ref: ${{ github.event.workflow_run.head_branch }}
45
+
46
+ - name: Set up Ruby
47
+ uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0
48
+ with:
49
+ ruby-version: ruby
50
+
51
+ - name: Install dependencies
52
+ run: |
53
+ bundle install --jobs 4 --retry 3
54
+
55
+ - name: Verify release tag
56
+ env:
57
+ EXPECTED_SHA: ${{ github.event.workflow_run.head_sha }}
58
+ TAG: ${{ github.event.workflow_run.head_branch }}
59
+ run: |
60
+ set -euo pipefail
61
+ test "$(git rev-parse "${TAG}^{commit}")" = "$EXPECTED_SHA"
62
+ version="$(ruby -Ilib -e 'require "domain_name/version"; print DomainName::VERSION')"
63
+ test "v${version}" = "$TAG"
64
+
65
+ - name: Publish to RubyGems
66
+ uses: rubygems/release-gem@7f9650160c1a4e7989fdc9855807bdbd421d8b6b # v1.4.1
67
+
68
+ - name: Create GitHub release
69
+ env:
70
+ GH_TOKEN: ${{ github.token }}
71
+ TAG: ${{ github.event.workflow_run.head_branch }}
72
+ run: |
73
+ set -euo pipefail
74
+ gh release create "$TAG" --verify-tag --generate-notes
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.6.20260829](https://github.com/knu/ruby-domain_name/tree/v0.6.20260829) (2026-08-30)
4
+ [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.6.20240107...v0.6.20260829)
5
+
6
+ - Update the eTLD database to 2026-08-29 12:33:17 UTC
7
+
3
8
  ## [v0.6.20240107](https://github.com/knu/ruby-domain_name/tree/v0.6.20240107) (2024-01-09)
4
9
 
5
10
  [Full Changelog](https://github.com/knu/ruby-domain_name/compare/v0.6.20231109...v0.6.20240107)
data/README.md CHANGED
@@ -40,6 +40,19 @@ Installation
40
40
 
41
41
  gem install domain_name
42
42
 
43
+ Release
44
+ -------
45
+
46
+ Releases use `v`-prefixed version tags. Push the release commit to
47
+ `master`, wait for CI to pass, and then push the matching tag. A
48
+ successful tag CI run publishes the gem through RubyGems trusted
49
+ publishing and creates the GitHub release.
50
+
51
+ Before the first automated release, register `knu/ruby-domain_name`,
52
+ workflow `publish-gem.yml`, and environment `rubygems.org` as a trusted
53
+ publisher at
54
+ https://rubygems.org/gems/domain_name/trusted_publishers/new.
55
+
43
56
  References
44
57
  ----------
45
58