optic14n 3.0.2 → 4.1.0

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: 9e37354d53b14c9ef352291cc0d310c8f52fc18188ffff1c82481187ea1ee89c
4
- data.tar.gz: 1ab53bf23167d914c45d12ec023b15b512553bb9b952b164a8eb9dd463ce21e1
3
+ metadata.gz: 70425423542431dafee391850228a249dbf22a99287e530547881d76bf1aae3e
4
+ data.tar.gz: e69293976ecb52f3c6d6876a594461bd7961a55fee59bcc818f3e1fdc78d6acf
5
5
  SHA512:
6
- metadata.gz: 65e495051ef9130dcadb6f419242947ea388c1d89d550619273a814b0398860135db6abea9de41ccb8b93688ca60d6e9ebfda4faf1398aeb0d3e4c7e74ba9ed2
7
- data.tar.gz: a3d31d284e6ffe4ac66f53dcb26500a6c6c783a33a37d77f78550998eda178081db2f43624caa806c1c829e4268bc78563e9d60666ffd15b8d9a3539852f04f6
6
+ metadata.gz: a22cff6e74a52abdc714023ddf555fcca3a611dfaa1a0b1f9fa6f84696d50141651b2089fb7fd23e1563f48c5bbf86dafd2d15abd479ddb1ccf4e25b0455c270
7
+ data.tar.gz: 65a40dc734aac58ffd85298e41945b9a68393d3031955602c7d88aca127eb65fb898ff3f28201f0db62d9b4ffc8c918d3ec665f87fdd1bd0ecd49476da039802
@@ -0,0 +1,12 @@
1
+ name: Lint GitHub Actions
2
+ on:
3
+ push:
4
+ paths: ['.github/**']
5
+ jobs:
6
+ actionlint:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@v6
10
+ with:
11
+ show-progress: false
12
+ - uses: alphagov/govuk-infrastructure/.github/actions/actionlint@main
@@ -1,3 +1,5 @@
1
+ name: CI
2
+
1
3
  on: [push, pull_request]
2
4
 
3
5
  jobs:
@@ -10,16 +12,16 @@ jobs:
10
12
  dependency-review:
11
13
  name: Dependency Review scan
12
14
  uses: alphagov/govuk-infrastructure/.github/workflows/dependency-review.yml@main
13
-
15
+
14
16
  # This matrix job runs the test suite against multiple Ruby versions
15
17
  test_matrix:
16
18
  strategy:
17
19
  fail-fast: false
18
20
  matrix:
19
- ruby: [3.1, 3.2, 3.3]
21
+ ruby: [3.3, 3.4]
20
22
  runs-on: ubuntu-latest
21
23
  steps:
22
- - uses: actions/checkout@v4
24
+ - uses: actions/checkout@v6
23
25
  - uses: ruby/setup-ruby@v1
24
26
  with:
25
27
  ruby-version: ${{ matrix.ruby }}
@@ -34,12 +36,3 @@ jobs:
34
36
  runs-on: ubuntu-latest
35
37
  steps:
36
38
  - run: echo "All matrix tests have passed 🚀"
37
-
38
- publish:
39
- needs: test
40
- if: ${{ github.ref == 'refs/heads/main' }}
41
- permissions:
42
- contents: write
43
- uses: alphagov/govuk-infrastructure/.github/workflows/publish-rubygem.yml@main
44
- secrets:
45
- GEM_HOST_API_KEY: ${{ secrets.ALPHAGOV_RUBYGEMS_API_KEY }}
@@ -0,0 +1,17 @@
1
+ name: Publish
2
+
3
+ on:
4
+ workflow_dispatch:
5
+ workflow_run:
6
+ workflows: [CI]
7
+ types: [completed]
8
+ branches: [main]
9
+
10
+ jobs:
11
+ publish:
12
+ if: ${{ github.ref == 'refs/heads/main' }}
13
+ permissions:
14
+ contents: write
15
+ uses: alphagov/govuk-infrastructure/.github/workflows/publish-rubygem.yml@main
16
+ secrets:
17
+ GEM_HOST_API_KEY: ${{ secrets.ALPHAGOV_RUBYGEMS_API_KEY }}
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.4
1
+ 3.3.11
data/CHANGELOG.md CHANGED
@@ -1,8 +1,16 @@
1
- # 3.0.2
1
+ # Changelog
2
2
 
3
- * Update dependencies
3
+ ## 4.1.0
4
4
 
5
- # Changelog
5
+ * Drop support for Ruby 3.2
6
+
7
+ ## 4.0.0
8
+
9
+ * BREAKING: Drop support for Ruby 3.1 [PR](https://github.com/alphagov/optic14n/pull/64)
10
+
11
+ ## 3.0.2
12
+
13
+ * Update dependencies
6
14
 
7
15
  ## 3.0.1
8
16
 
@@ -1,5 +1,3 @@
1
- require "set"
2
-
3
1
  module Optic14n
4
2
  ##
5
3
  # Canonicalizes a set of URLs
@@ -1,3 +1,3 @@
1
1
  module Optic14n
2
- VERSION = "3.0.2".freeze
2
+ VERSION = "4.1.0".freeze
3
3
  end
@@ -1,5 +1,3 @@
1
- require "set"
2
-
3
1
  namespace :opt do
4
2
  desc "Measure reduction from canonicalisation"
5
3
  task :measure, [:filename, :output_file] do |_, args|
data/optic14n.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
13
13
  spec.homepage = "https://github.com/alphagov/optic14n"
14
14
  spec.license = "MIT"
15
15
 
16
- spec.required_ruby_version = ">= 3.1.4"
16
+ spec.required_ruby_version = ">= 3.3"
17
17
 
18
18
  spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
19
19
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_development_dependency "rake"
26
26
  spec.add_development_dependency "rspec"
27
- spec.add_development_dependency "rubocop-govuk", "5.0.4"
27
+ spec.add_development_dependency "rubocop-govuk", "5.2.0"
28
28
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: optic14n
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-04 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: addressable
@@ -58,14 +57,14 @@ dependencies:
58
57
  requirements:
59
58
  - - '='
60
59
  - !ruby/object:Gem::Version
61
- version: 5.0.4
60
+ version: 5.2.0
62
61
  type: :development
63
62
  prerelease: false
64
63
  version_requirements: !ruby/object:Gem::Requirement
65
64
  requirements:
66
65
  - - '='
67
66
  - !ruby/object:Gem::Version
68
- version: 5.0.4
67
+ version: 5.2.0
69
68
  description: Canonicalises URLs.
70
69
  email:
71
70
  - govuk-dev@digital.cabinet-office.gov.uk
@@ -75,8 +74,10 @@ extra_rdoc_files: []
75
74
  files:
76
75
  - ".github/dependabot.yml"
77
76
  - ".github/pull_request_template.md"
77
+ - ".github/workflows/actionlint.yml"
78
78
  - ".github/workflows/autorelease.yml"
79
79
  - ".github/workflows/ci.yml"
80
+ - ".github/workflows/publish.yml"
80
81
  - ".gitignore"
81
82
  - ".govuk_dependabot_merger.yml"
82
83
  - ".rubocop.yml"
@@ -104,7 +105,6 @@ homepage: https://github.com/alphagov/optic14n
104
105
  licenses:
105
106
  - MIT
106
107
  metadata: {}
107
- post_install_message:
108
108
  rdoc_options: []
109
109
  require_paths:
110
110
  - lib
@@ -112,15 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
- version: 3.1.4
115
+ version: '3.3'
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
118
  - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubygems_version: 3.5.23
123
- signing_key:
122
+ rubygems_version: 4.0.9
124
123
  specification_version: 4
125
124
  summary: Specifically, HTTP URLs, for a limited purpose
126
125
  test_files: