govuk_app_config 9.22.3 → 9.23.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: 99614104f1947c50c0742fbe16ab8ab82e716a29b1db27ca5cf704df846adfdd
4
- data.tar.gz: de5446d0ab6539fe3f2332f7401e432828b28c24711b694e0cb99c874edb1144
3
+ metadata.gz: e7281de94bb3b8ad471321c08e8eb827af6569ddefcd22dce31ae19302252762
4
+ data.tar.gz: 2d7b0d73a80eff775af154d79e6e85f52dc75440cb2601c106dbd2042110c04a
5
5
  SHA512:
6
- metadata.gz: ed9a5942a97d8404ae30234c3b81b955cf9739f4679422e993b2915ac905d0ca3e2b840098dd53b194e61d4b8a3ef2d960468217df6891176394d5c9dda5a7ec
7
- data.tar.gz: b12f0ed5a1b683640aedfaa945f8c44acfe704343032d2fd4ffd53a1f9c34a64458876aa6f786917b4d030c59574175719be7e70da0d3b0456dcbfa67bda3455
6
+ metadata.gz: 56a02fd4221ec8d62348ceb96db5591e8691f9a7b7badf0f6c2172cfd2c3f17ea49841ba746dc2074b5e3ee4494618e9314136195d66f0ce7a5772fe7b501419
7
+ data.tar.gz: 56e2a25b6422b38722009c0d5d96d8a1d45e8adb2fe126d636ee96c4dbd014a36985d9b848bddf5ea2f253ed05bd4200fb99b8040af52dc013dc260f053482ce
@@ -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@8aeb6ff8030dd539317f8e1769a044873b56ea71 # v1.268.0
41
+ - uses: ruby/setup-ruby@d5f787ce339eb0767271bc01d922e85644c2c8ab # v1.280.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.0
2
+
3
+ * Remove StaticProxy middleware now that Static is no longer in use
4
+
1
5
  # 9.22.3
2
6
 
3
7
  * Pin dependency on connection_pool
@@ -2,12 +2,6 @@ require "plek"
2
2
 
3
3
  module GovukAppConfig
4
4
  class Railtie < Rails::Railtie
5
- initializer "govuk_app_config.configure_govuk_proxy" do |app|
6
- if ENV["GOVUK_PROXY_STATIC_ENABLED"] == "true"
7
- app.middleware.use GovukProxy::StaticProxy, backend: Plek.find("static")
8
- end
9
- end
10
-
11
5
  initializer "govuk_app_config.configure_open_telemetry" do |app|
12
6
  unless Rails.const_defined?(:Console)
13
7
  GovukOpenTelemetry.configure(app.class.module_parent_name.underscore)
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "9.22.3".freeze
2
+ VERSION = "9.23.0".freeze
3
3
  end
@@ -2,7 +2,6 @@ require "govuk_app_config/govuk_error"
2
2
  require "govuk_app_config/govuk_healthcheck"
3
3
  require "govuk_app_config/govuk_open_telemetry"
4
4
  require "govuk_app_config/govuk_prometheus_exporter"
5
- require "govuk_app_config/govuk_proxy/static_proxy"
6
5
  require "govuk_app_config/govuk_statsd"
7
6
  require "govuk_app_config/version"
8
7
 
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.22.3
4
+ version: 9.23.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
@@ -398,7 +398,6 @@ files:
398
398
  - lib/govuk_app_config/govuk_json_logging/rails_ext/action_controller/metal/instrumentation.rb
399
399
  - lib/govuk_app_config/govuk_open_telemetry.rb
400
400
  - lib/govuk_app_config/govuk_prometheus_exporter.rb
401
- - lib/govuk_app_config/govuk_proxy/static_proxy.rb
402
401
  - lib/govuk_app_config/govuk_puma.rb
403
402
  - lib/govuk_app_config/govuk_statsd.rb
404
403
  - lib/govuk_app_config/govuk_timezone.rb
@@ -422,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
422
421
  - !ruby/object:Gem::Version
423
422
  version: '0'
424
423
  requirements: []
425
- rubygems_version: 4.0.0
424
+ rubygems_version: 4.0.3
426
425
  specification_version: 4
427
426
  summary: Base configuration for GOV.UK applications
428
427
  test_files: []
@@ -1,19 +0,0 @@
1
- require "rack-proxy"
2
-
3
- module GovukProxy
4
- class StaticProxy < Rack::Proxy
5
- def perform_request(env)
6
- request = Rack::Request.new(env)
7
-
8
- # use rack proxy to forward any requests for /assets/static/*
9
- # this regex needs to match the path set for `Rails.application.config.assets.prefix` in Static
10
- # https://github.com/alphagov/static/blob/main/config/initializers/assets.rb
11
- if request.path =~ %r{^/assets/static/}
12
- env["HTTP_HOST"] = @backend.host
13
- super(env)
14
- else
15
- @app.call(env)
16
- end
17
- end
18
- end
19
- end