govuk_app_config 9.8.1 → 9.8.2

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: 70a81e12baed33cfb74efa6e7e9d726e940b729a96e958ccc9a2d438b2644838
4
- data.tar.gz: a05cc465261efc295e9be979381bf98af50c1e5dba32a8a159e4f59667126315
3
+ metadata.gz: 5a349225515e547a17b98fdeccff77f3ed83c8b877186e683b82a4c70e7dee16
4
+ data.tar.gz: fefce175f60a2be6ee9bcba77e0164a7d311893dc49dcfd7645794be735b7f2e
5
5
  SHA512:
6
- metadata.gz: 92f9f03a3e5d82b9fdad3da8b7cda40af25f98e8c37685e13b1a101d1362e70a33daf29e253d59548248faada85eb1e7cce929f88a8e889e7a4b88167bbdb7a2
7
- data.tar.gz: f6c681d57522e0b2ab434c58ac11f5880c33fe099a8ddf092bb5678045c4a6bed45cee0a464ef1e00fc18bd2ed31b9b6a8d6e96e5f68ea9e0710658fa5f6f407
6
+ metadata.gz: 2971e35ad62205b4b6d6589c24dac49f0070caa6b5df5be3a014750ffbb160df4073c2fd987b5725eb4cd6061ca517982f4a8c804e0bde4a5e710f5dede33d86
7
+ data.tar.gz: 7b734c3239cc3d8c481e1e8832c4eaf86c426edabd3fde26146544ef418cf52c0e2eafbe08386559c28d462d9a4197f675695f76cb0a4b89012725bd19a0a7bd
@@ -11,6 +11,11 @@ on:
11
11
  type: string
12
12
 
13
13
  jobs:
14
+ snyk-security:
15
+ name: SNYK security analysis
16
+ uses: alphagov/govuk-infrastructure/.github/workflows/snyk-security.yml@main
17
+ secrets: inherit
18
+
14
19
  codeql-sast:
15
20
  name: CodeQL SAST scan
16
21
  uses: alphagov/govuk-infrastructure/.github/workflows/codeql-analysis.yml@main
@@ -0,0 +1,10 @@
1
+ api_version: 1
2
+ auto_merge:
3
+ - dependency: rubocop-govuk
4
+ allowed_semver_bumps:
5
+ - patch
6
+ - minor
7
+ - dependency: plek
8
+ allowed_semver_bumps:
9
+ - patch
10
+ - minor
data/.rubocop.yml CHANGED
@@ -1,3 +1,5 @@
1
1
  inherit_gem:
2
2
  rubocop-govuk:
3
3
  - config/default.yml
4
+ Style/Lambda:
5
+ Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 9.8.2
2
+
3
+ * Fix Ruby 3.3 compatibility ([#343](https://github.com/alphagov/govuk_app_config/pull/343))
4
+
1
5
  # 9.8.1
2
6
 
3
7
  * Revert "Add GOVUK domains to script src CSP" ([#336](https://github.com/alphagov/govuk_app_config/pull/336))
data/README.md CHANGED
@@ -96,9 +96,9 @@ and occurs at the time of a data sync, then it will be excluded even if the cust
96
96
 
97
97
  ```ruby
98
98
  GovukError.configure do |config|
99
- config.before_send = lambda do |event, hint|
99
+ config.before_send = ->(event, hint) {
100
100
  hint[:exception].is_a?(ErrorWeWantToIgnore) ? nil : event
101
- end
101
+ }
102
102
  end
103
103
  ```
104
104
 
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.add_dependency "logstasher", "~> 2.1"
24
24
  spec.add_dependency "opentelemetry-exporter-otlp", ">= 0.25", "< 0.27"
25
- spec.add_dependency "opentelemetry-instrumentation-all", ">= 0.39.1", "< 0.55.0"
25
+ spec.add_dependency "opentelemetry-instrumentation-all", ">= 0.39.1", "< 0.57.0"
26
26
  spec.add_dependency "opentelemetry-sdk", "~> 1.2"
27
27
  spec.add_dependency "plek", ">= 4", "< 6"
28
28
  spec.add_dependency "prometheus_exporter", "~> 2.0"
@@ -39,6 +39,6 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "rake", "~> 13.0"
40
40
  spec.add_development_dependency "rspec", "~> 3.10"
41
41
  spec.add_development_dependency "rspec-its", "~> 1.3"
42
- spec.add_development_dependency "rubocop-govuk", "4.12.0"
42
+ spec.add_development_dependency "rubocop-govuk", "4.13.0"
43
43
  spec.add_development_dependency "webmock"
44
44
  end
@@ -72,9 +72,7 @@ module GovukError
72
72
  ]
73
73
  # Need to invoke an arbitrary `before_send=` in order to trigger the
74
74
  # `before_send_callbacks` behaviour
75
- self.before_send = lambda { |error_or_event, _hint|
76
- error_or_event
77
- }
75
+ self.before_send = ->(error_or_event, _hint) { error_or_event }
78
76
  end
79
77
 
80
78
  def before_send=(closure)
@@ -85,7 +83,7 @@ module GovukError
85
83
  protected
86
84
 
87
85
  def ignore_excluded_exceptions_in_data_sync
88
- lambda { |event, hint|
86
+ ->(event, hint) {
89
87
  data_sync_ignored_error = data_sync_excluded_exceptions.any? do |exception_to_ignore|
90
88
  exception_to_ignore = Object.const_get(exception_to_ignore) unless exception_to_ignore.is_a?(Module)
91
89
  exception_chain = Sentry::Utils::ExceptionCauseChain.exception_to_array(hint[:exception])
@@ -101,7 +99,7 @@ module GovukError
101
99
  end
102
100
 
103
101
  def increment_govuk_statsd_counters
104
- lambda { |event, hint|
102
+ ->(event, hint) {
105
103
  if hint[:exception]
106
104
  GovukStatsd.increment("errors_occurred")
107
105
  GovukStatsd.increment("error_types.#{hint[:exception].class.name.split('::').last.underscore}")
@@ -111,14 +109,14 @@ module GovukError
111
109
  end
112
110
 
113
111
  def run_before_send_callbacks
114
- lambda do |event, hint|
112
+ ->(event, hint) {
115
113
  result = event
116
114
  @before_send_callbacks.each do |callback|
117
115
  result = callback.call(event, hint)
118
116
  break if result.nil?
119
117
  end
120
118
  result
121
- end
119
+ }
122
120
  end
123
121
  end
124
122
  end
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "9.8.1".freeze
2
+ VERSION = "9.8.2".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.8.1
4
+ version: 9.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-21 00:00:00.000000000 Z
11
+ date: 2024-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstasher
@@ -53,7 +53,7 @@ dependencies:
53
53
  version: 0.39.1
54
54
  - - "<"
55
55
  - !ruby/object:Gem::Version
56
- version: 0.55.0
56
+ version: 0.57.0
57
57
  type: :runtime
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
@@ -63,7 +63,7 @@ dependencies:
63
63
  version: 0.39.1
64
64
  - - "<"
65
65
  - !ruby/object:Gem::Version
66
- version: 0.55.0
66
+ version: 0.57.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: opentelemetry-sdk
69
69
  requirement: !ruby/object:Gem::Requirement
@@ -292,14 +292,14 @@ dependencies:
292
292
  requirements:
293
293
  - - '='
294
294
  - !ruby/object:Gem::Version
295
- version: 4.12.0
295
+ version: 4.13.0
296
296
  type: :development
297
297
  prerelease: false
298
298
  version_requirements: !ruby/object:Gem::Requirement
299
299
  requirements:
300
300
  - - '='
301
301
  - !ruby/object:Gem::Version
302
- version: 4.12.0
302
+ version: 4.13.0
303
303
  - !ruby/object:Gem::Dependency
304
304
  name: webmock
305
305
  requirement: !ruby/object:Gem::Requirement
@@ -324,6 +324,7 @@ files:
324
324
  - ".github/dependabot.yml"
325
325
  - ".github/workflows/ci.yml"
326
326
  - ".gitignore"
327
+ - ".govuk_dependabot_merger.yml"
327
328
  - ".rspec"
328
329
  - ".rubocop.yml"
329
330
  - ".ruby-version"
@@ -375,7 +376,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
375
376
  - !ruby/object:Gem::Version
376
377
  version: '0'
377
378
  requirements: []
378
- rubygems_version: 3.5.2
379
+ rubygems_version: 3.5.5
379
380
  signing_key:
380
381
  specification_version: 4
381
382
  summary: Base configuration for GOV.UK applications