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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e7281de94bb3b8ad471321c08e8eb827af6569ddefcd22dce31ae19302252762
4
- data.tar.gz: 2d7b0d73a80eff775af154d79e6e85f52dc75440cb2601c106dbd2042110c04a
3
+ metadata.gz: f2d0325b5faace54f44d8ab23f7d52e474a718246cdcbb8ffb3c28bd1ed0bd3a
4
+ data.tar.gz: bb248f3c9bdd810dd1634221d909e788b720a01f370cb7076cdda4438bf9d853
5
5
  SHA512:
6
- metadata.gz: 56a02fd4221ec8d62348ceb96db5591e8691f9a7b7badf0f6c2172cfd2c3f17ea49841ba746dc2074b5e3ee4494618e9314136195d66f0ce7a5772fe7b501419
7
- data.tar.gz: 56e2a25b6422b38722009c0d5d96d8a1d45e8adb2fe126d636ee96c4dbd014a36985d9b848bddf5ea2f253ed05bd4200fb99b8040af52dc013dc260f053482ce
6
+ metadata.gz: 0fe04c0c61e73448c7280657fdf2b7c2cebfba20f5daed26c61c4879e1745085c9e7e9e7f1bbeb3ac41429bb64f182bf7fac928505f40025f7829979640adcaf
7
+ data.tar.gz: 4ef4febaa3316ddcd61d8350972e9cf2ca33271f549e39f6f03e3036123c2a539039095edb87bed9b893d0b1959417a1f4ae9e9147b41bfd2637a569b1e96f4b
@@ -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@d5f787ce339eb0767271bc01d922e85644c2c8ab # v1.280.0
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|
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "9.23.0".freeze
2
+ VERSION = "9.23.1".freeze
3
3
  end
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.0
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.3
424
+ rubygems_version: 4.0.4
425
425
  specification_version: 4
426
426
  summary: Base configuration for GOV.UK applications
427
427
  test_files: []