govuk_app_config 9.22.2 → 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 +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/CHANGELOG.md +8 -0
- data/govuk_app_config.gemspec +2 -1
- data/lib/govuk_app_config/railtie.rb +0 -6
- data/lib/govuk_app_config/version.rb +1 -1
- data/lib/govuk_app_config.rb +0 -1
- metadata +18 -5
- data/lib/govuk_app_config/govuk_proxy/static_proxy.rb +0 -19
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e7281de94bb3b8ad471321c08e8eb827af6569ddefcd22dce31ae19302252762
|
|
4
|
+
data.tar.gz: 2d7b0d73a80eff775af154d79e6e85f52dc75440cb2601c106dbd2042110c04a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 56a02fd4221ec8d62348ceb96db5591e8691f9a7b7badf0f6c2172cfd2c3f17ea49841ba746dc2074b5e3ee4494618e9314136195d66f0ce7a5772fe7b501419
|
|
7
|
+
data.tar.gz: 56e2a25b6422b38722009c0d5d96d8a1d45e8adb2fe126d636ee96c4dbd014a36985d9b848bddf5ea2f253ed05bd4200fb99b8040af52dc013dc260f053482ce
|
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@d5f787ce339eb0767271bc01d922e85644c2c8ab # v1.280.0
|
|
42
42
|
with:
|
|
43
43
|
ruby-version: ${{ matrix.ruby }}
|
|
44
44
|
bundler-cache: true
|
data/CHANGELOG.md
CHANGED
data/govuk_app_config.gemspec
CHANGED
|
@@ -20,9 +20,10 @@ Gem::Specification.new do |spec|
|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
21
21
|
spec.require_paths = %w[lib]
|
|
22
22
|
|
|
23
|
+
spec.add_dependency "connection_pool", "< 3"
|
|
23
24
|
spec.add_dependency "logstasher", "~> 2.1"
|
|
24
25
|
spec.add_dependency "opentelemetry-exporter-otlp", ">= 0.25", "< 0.32"
|
|
25
|
-
spec.add_dependency "opentelemetry-instrumentation-all", ">= 0.39.1", "< 0.
|
|
26
|
+
spec.add_dependency "opentelemetry-instrumentation-all", ">= 0.39.1", "< 0.90.0"
|
|
26
27
|
spec.add_dependency "opentelemetry-sdk", "~> 1.2"
|
|
27
28
|
spec.add_dependency "plek", ">= 4", "< 6"
|
|
28
29
|
spec.add_dependency "prometheus_exporter", "~> 2.3"
|
|
@@ -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)
|
data/lib/govuk_app_config.rb
CHANGED
|
@@ -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.
|
|
4
|
+
version: 9.23.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GOV.UK Dev
|
|
@@ -9,6 +9,20 @@ bindir: exe
|
|
|
9
9
|
cert_chain: []
|
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: connection_pool
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - "<"
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '3'
|
|
19
|
+
type: :runtime
|
|
20
|
+
prerelease: false
|
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
+
requirements:
|
|
23
|
+
- - "<"
|
|
24
|
+
- !ruby/object:Gem::Version
|
|
25
|
+
version: '3'
|
|
12
26
|
- !ruby/object:Gem::Dependency
|
|
13
27
|
name: logstasher
|
|
14
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -52,7 +66,7 @@ dependencies:
|
|
|
52
66
|
version: 0.39.1
|
|
53
67
|
- - "<"
|
|
54
68
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 0.
|
|
69
|
+
version: 0.90.0
|
|
56
70
|
type: :runtime
|
|
57
71
|
prerelease: false
|
|
58
72
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -62,7 +76,7 @@ dependencies:
|
|
|
62
76
|
version: 0.39.1
|
|
63
77
|
- - "<"
|
|
64
78
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: 0.
|
|
79
|
+
version: 0.90.0
|
|
66
80
|
- !ruby/object:Gem::Dependency
|
|
67
81
|
name: opentelemetry-sdk
|
|
68
82
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -384,7 +398,6 @@ files:
|
|
|
384
398
|
- lib/govuk_app_config/govuk_json_logging/rails_ext/action_controller/metal/instrumentation.rb
|
|
385
399
|
- lib/govuk_app_config/govuk_open_telemetry.rb
|
|
386
400
|
- lib/govuk_app_config/govuk_prometheus_exporter.rb
|
|
387
|
-
- lib/govuk_app_config/govuk_proxy/static_proxy.rb
|
|
388
401
|
- lib/govuk_app_config/govuk_puma.rb
|
|
389
402
|
- lib/govuk_app_config/govuk_statsd.rb
|
|
390
403
|
- lib/govuk_app_config/govuk_timezone.rb
|
|
@@ -408,7 +421,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
408
421
|
- !ruby/object:Gem::Version
|
|
409
422
|
version: '0'
|
|
410
423
|
requirements: []
|
|
411
|
-
rubygems_version: 4.0.
|
|
424
|
+
rubygems_version: 4.0.3
|
|
412
425
|
specification_version: 4
|
|
413
426
|
summary: Base configuration for GOV.UK applications
|
|
414
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
|