govuk_personalisation 1.1.0 → 1.2.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: 3e91d64d967c4505c49e7dd4c4bac03e0e411e70cf43141ff1923634fc3b44e2
4
- data.tar.gz: 26a907d48f1a2cd469f6377d5c9b08b02e4ce89d5a677bdeca7465a9acb48f1f
3
+ metadata.gz: abb8861291ee798e9b7973c12272e97bd2ca9cadc94ab51257a908b0c55acf12
4
+ data.tar.gz: ee003d00cf87c68991c126aeb812402b8878b5309aa6056e831651d02d599d58
5
5
  SHA512:
6
- metadata.gz: d954dacf7180bf3656c551f36dd2e97ea69295f4efea7f558ebdc81a6300a93e44d3d455f6467fb36d642283ee6f5ac23ef54788d6b31c8562c348ffd7e48f4d
7
- data.tar.gz: 12337b09f3ba0ad13db3da6d9934165b1c51d04c55df491fa022e20441ca4075d220315437c625f0893273cc0e8f26c20df6c4b0eba5850b6c93cd7a24b023fc
6
+ metadata.gz: 91be651791ed73a42f2c76535fe181ec7dd450175e30c6cdd9922292cbc5b0ff9fa50f8b1df6b3e350e706ac7ba7f87de26f6ac3fc496bb16b1c891c70e23795
7
+ data.tar.gz: 3edf19c4494256026021cf052070cabff0f96ec16e93b0ee8cdc6cd2a1529359c8c883f94c1d28ed2ed712415325f435fd99115c3d1d1e545ceba10829d77b8b
@@ -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@v7
10
+ with:
11
+ show-progress: false
12
+ - uses: alphagov/govuk-infrastructure/.github/actions/actionlint@main
@@ -1,26 +1,30 @@
1
1
  on: [push, pull_request]
2
2
 
3
+ name: CI
4
+
3
5
  jobs:
4
6
  codeql-sast:
5
7
  name: CodeQL SAST scan
6
8
  uses: alphagov/govuk-infrastructure/.github/workflows/codeql-analysis.yml@main
9
+ with:
10
+ languages: actions, ruby
7
11
  permissions:
8
12
  security-events: write
9
13
 
10
14
  dependency-review:
11
15
  name: Dependency Review scan
12
16
  uses: alphagov/govuk-infrastructure/.github/workflows/dependency-review.yml@main
13
-
17
+
14
18
  # This matrix job runs the test suite against multiple Ruby versions
15
19
  test_matrix:
16
20
  strategy:
17
21
  fail-fast: false
18
22
  matrix:
19
- ruby: [3.1, 3.2, 3.3]
23
+ ruby: [3.3, 4.0]
20
24
  runs-on: ubuntu-latest
21
25
  steps:
22
- - uses: actions/checkout@v4
23
- - uses: ruby/setup-ruby@v1
26
+ - uses: actions/checkout@v7
27
+ - uses: ruby/setup-ruby@6e5d382445ae5590b7449d8b3bc8cb1c2c27f617 # v1.317.0
24
28
  with:
25
29
  ruby-version: ${{ matrix.ruby }}
26
30
  bundler-cache: true
@@ -0,0 +1,24 @@
1
+ name: Notify Slack of failure on main
2
+
3
+ on:
4
+ workflow_run:
5
+ workflows: [CI]
6
+ types: [completed]
7
+ branches: [main]
8
+
9
+ jobs:
10
+ on-success:
11
+ runs-on: ubuntu-latest
12
+ if: ${{ github.event.workflow_run.conclusion == 'success' }}
13
+ steps:
14
+ - run: echo 'The triggering workflow passed'
15
+ on-failure:
16
+ runs-on: ubuntu-latest
17
+ if: ${{ github.event.workflow_run.conclusion == 'failure' }}
18
+ steps:
19
+ - name: Notify Slack if failure on main
20
+ uses: alphagov/govuk-infrastructure/.github/actions/report-run-failure@main
21
+ with:
22
+ slack_webhook_url: ${{ secrets.GOVUK_SLACK_WEBHOOK_URL }}
23
+ channel: govuk-patterns-and-pages-tech
24
+ message: "Github was unable to complete the CI Actions workflow - requires further investigation."
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.5
1
+ 3.3.11
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.2.0
2
+
3
+ - Update minimum required Ruby version([#135](https://github.com/alphagov/govuk_personalisation/pull/135))
4
+
1
5
  # 1.1.0
2
6
 
3
7
  - Update Rails requirements to allow Rails 8 ([#85](https://github.com/alphagov/govuk_personalisation/pull/85))
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.description = "A gem to hold shared code which other GOV.UK apps will use to implement accounts-related functionality."
15
15
  spec.homepage = "https://github.com/alphagov/govuk_personalisation"
16
16
  spec.license = "MIT"
17
- spec.required_ruby_version = Gem::Requirement.new(">= 3.1")
17
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.3")
18
18
 
19
19
  # Specify which files should be added to the gem when it is released.
20
20
  # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
@@ -33,6 +33,6 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "pry-byebug"
34
34
  spec.add_development_dependency "rake"
35
35
  spec.add_development_dependency "rspec-rails"
36
- spec.add_development_dependency "rubocop-govuk", "5.0.2"
36
+ spec.add_development_dependency "rubocop-govuk", "5.1.20"
37
37
  spec.add_development_dependency "simplecov"
38
38
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GovukPersonalisation
4
- VERSION = "1.1.0"
4
+ VERSION = "1.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_personalisation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-11-18 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: plek
@@ -120,14 +119,14 @@ dependencies:
120
119
  requirements:
121
120
  - - '='
122
121
  - !ruby/object:Gem::Version
123
- version: 5.0.2
122
+ version: 5.1.20
124
123
  type: :development
125
124
  prerelease: false
126
125
  version_requirements: !ruby/object:Gem::Requirement
127
126
  requirements:
128
127
  - - '='
129
128
  - !ruby/object:Gem::Version
130
- version: 5.0.2
129
+ version: 5.1.20
131
130
  - !ruby/object:Gem::Dependency
132
131
  name: simplecov
133
132
  requirement: !ruby/object:Gem::Requirement
@@ -151,7 +150,9 @@ extensions: []
151
150
  extra_rdoc_files: []
152
151
  files:
153
152
  - ".github/dependabot.yml"
153
+ - ".github/workflows/actionlint.yml"
154
154
  - ".github/workflows/ci.yml"
155
+ - ".github/workflows/notify-slack-on-failure.yml"
155
156
  - ".gitignore"
156
157
  - ".govuk_dependabot_merger.yml"
157
158
  - ".rspec"
@@ -177,7 +178,6 @@ homepage: https://github.com/alphagov/govuk_personalisation
177
178
  licenses:
178
179
  - MIT
179
180
  metadata: {}
180
- post_install_message:
181
181
  rdoc_options: []
182
182
  require_paths:
183
183
  - lib
@@ -185,15 +185,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  requirements:
186
186
  - - ">="
187
187
  - !ruby/object:Gem::Version
188
- version: '3.1'
188
+ version: '3.3'
189
189
  required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  requirements:
191
191
  - - ">="
192
192
  - !ruby/object:Gem::Version
193
193
  version: '0'
194
194
  requirements: []
195
- rubygems_version: 3.5.23
196
- signing_key:
195
+ rubygems_version: 4.0.16
197
196
  specification_version: 4
198
197
  summary: A gem to hold shared code which other GOV.UK apps will use to implement accounts-related
199
198
  functionality.