govuk_app_config 9.23.0 → 9.23.1
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 +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/lib/govuk_app_config/railtie.rb +19 -0
- data/lib/govuk_app_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f2d0325b5faace54f44d8ab23f7d52e474a718246cdcbb8ffb3c28bd1ed0bd3a
|
|
4
|
+
data.tar.gz: bb248f3c9bdd810dd1634221d909e788b720a01f370cb7076cdda4438bf9d853
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0fe04c0c61e73448c7280657fdf2b7c2cebfba20f5daed26c61c4879e1745085c9e7e9e7f1bbeb3ac41429bb64f182bf7fac928505f40025f7829979640adcaf
|
|
7
|
+
data.tar.gz: 4ef4febaa3316ddcd61d8350972e9cf2ca33271f549e39f6f03e3036123c2a539039095edb87bed9b893d0b1959417a1f4ae9e9147b41bfd2637a569b1e96f4b
|
data/.github/workflows/ci.yml
CHANGED
|
@@ -38,7 +38,7 @@ jobs:
|
|
|
38
38
|
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
|
|
39
39
|
with:
|
|
40
40
|
ref: ${{ inputs.ref || github.ref }}
|
|
41
|
-
- uses: ruby/setup-ruby@
|
|
41
|
+
- uses: ruby/setup-ruby@4fc31e1c823882afd7ef55985266a526c589de90 # v1.282.0
|
|
42
42
|
with:
|
|
43
43
|
ruby-version: ${{ matrix.ruby }}
|
|
44
44
|
bundler-cache: true
|
data/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
# 9.23.1
|
|
2
|
+
|
|
3
|
+
* Restore compatibility with Rails 8.1+ by fixing the boot cycle and ensuring structured logging is enabled. This allows Rails 8.1 apps to upgrade to the latest govuk_app_config.
|
|
4
|
+
|
|
1
5
|
# 9.23.0
|
|
2
6
|
|
|
3
7
|
* Remove StaticProxy middleware now that Static is no longer in use
|
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
require "plek"
|
|
2
2
|
|
|
3
|
+
# Workaround for Logstasher initializer conflict under Rails 8.1
|
|
4
|
+
begin
|
|
5
|
+
require "logstasher/railtie"
|
|
6
|
+
|
|
7
|
+
# Only apply this workaround for Rails 8.1+ where the boot cycle issue exists.
|
|
8
|
+
# This prevents any potential regressions for apps on older Rails versions.
|
|
9
|
+
if defined?(LogStasher::Railtie) && Gem::Version.new(Rails::VERSION::STRING) >= Gem::Version.new("8.1")
|
|
10
|
+
# Remove duplicate initializers that cause cyclic dependency
|
|
11
|
+
LogStasher::Railtie.initializers.delete_if { |i| i.name == :logstasher }
|
|
12
|
+
|
|
13
|
+
# Replace with a single clean initializer that actually sets up LogStasher
|
|
14
|
+
LogStasher::Railtie.initializer(:logstasher_govuk_fix, after: :load_config_initializers) do |app|
|
|
15
|
+
LogStasher.setup(app) if app.config.logstasher.enabled
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
rescue LoadError, NameError
|
|
19
|
+
# Skip if Logstasher not present
|
|
20
|
+
end
|
|
21
|
+
|
|
3
22
|
module GovukAppConfig
|
|
4
23
|
class Railtie < Rails::Railtie
|
|
5
24
|
initializer "govuk_app_config.configure_open_telemetry" do |app|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: govuk_app_config
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.23.
|
|
4
|
+
version: 9.23.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
@@ -421,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
421
421
|
- !ruby/object:Gem::Version
|
|
422
422
|
version: '0'
|
|
423
423
|
requirements: []
|
|
424
|
-
rubygems_version: 4.0.
|
|
424
|
+
rubygems_version: 4.0.4
|
|
425
425
|
specification_version: 4
|
|
426
426
|
summary: Base configuration for GOV.UK applications
|
|
427
427
|
test_files: []
|