govuk_app_config 9.19.3 → 9.20.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/actionlint.yml +1 -1
- data/.github/workflows/ci.yml +3 -3
- data/CHANGELOG.md +10 -0
- data/govuk_app_config.gemspec +2 -2
- data/lib/govuk_app_config/govuk_prometheus_exporter.rb +0 -24
- data/lib/govuk_app_config/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a13ea53fbfc32b0ef45888cb292b196e33f0a4d1e1d05f0130e4e39c96544f56
|
4
|
+
data.tar.gz: fca5f12c056a65341e2f301b616e2c2972dcaf70d50ebc91aee801058cf4a27a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d34b5ea64a19ff76018b82947573203c261c8de5addce69d49c1986b85dc1a34e0104c694c2f26dc6e7758a011a3074b7cc5c4f547212bea0202db41d899309a
|
7
|
+
data.tar.gz: f6b6b74f0d5fea239855482d98a2319aab5f9c9c1251b22d68f79100a47ed4452fc97da7e795d96a615cc783a796cf90d8334c7bc3e05cbe389d233660d46282
|
@@ -6,7 +6,7 @@ jobs:
|
|
6
6
|
actionlint:
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
steps:
|
9
|
-
- uses: actions/checkout@v5
|
9
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
10
10
|
with:
|
11
11
|
show-progress: false
|
12
12
|
- uses: alphagov/govuk-infrastructure/.github/actions/actionlint@main
|
data/.github/workflows/ci.yml
CHANGED
@@ -32,13 +32,13 @@ jobs:
|
|
32
32
|
strategy:
|
33
33
|
fail-fast: false
|
34
34
|
matrix:
|
35
|
-
ruby: [3.
|
35
|
+
ruby: [3.2, 3.3, 3.4]
|
36
36
|
runs-on: ubuntu-latest
|
37
37
|
steps:
|
38
|
-
- uses: actions/checkout@v5
|
38
|
+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
39
39
|
with:
|
40
40
|
ref: ${{ inputs.ref || github.ref }}
|
41
|
-
- uses: ruby/setup-ruby@v1
|
41
|
+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.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
@@ -13,7 +13,7 @@ Gem::Specification.new do |spec|
|
|
13
13
|
spec.homepage = "https://github.com/alphagov/govuk_app_config"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
|
-
spec.required_ruby_version = ">= 3.
|
16
|
+
spec.required_ruby_version = ">= 3.2.0"
|
17
17
|
|
18
18
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
19
19
|
spec.bindir = "exe"
|
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.add_dependency "opentelemetry-instrumentation-all", ">= 0.39.1", "< 0.81.0"
|
26
26
|
spec.add_dependency "opentelemetry-sdk", "~> 1.2"
|
27
27
|
spec.add_dependency "plek", ">= 4", "< 6"
|
28
|
-
spec.add_dependency "prometheus_exporter", "~> 2.
|
28
|
+
spec.add_dependency "prometheus_exporter", "~> 2.3"
|
29
29
|
spec.add_dependency "puma", ">= 5.6", "< 7.0"
|
30
30
|
spec.add_dependency "rack-proxy", "~> 0.7"
|
31
31
|
spec.add_dependency "sentry-rails", "~> 5.3"
|
@@ -5,30 +5,6 @@ require "prometheus_exporter/middleware"
|
|
5
5
|
|
6
6
|
module GovukPrometheusExporter
|
7
7
|
class RailsMiddleware < PrometheusExporter::Middleware
|
8
|
-
#
|
9
|
-
# See https://github.com/discourse/prometheus_exporter/pull/293
|
10
|
-
#
|
11
|
-
# default_labels can be removed and fall through to the base method if
|
12
|
-
# that PR is merged / released
|
13
|
-
#
|
14
|
-
def default_labels(env, _result)
|
15
|
-
controller_instance = env["action_controller.instance"]
|
16
|
-
action = controller = nil
|
17
|
-
if controller_instance
|
18
|
-
action = controller_instance.action_name
|
19
|
-
controller = controller_instance.controller_name
|
20
|
-
elsif (cors = env["rack.cors"]) && cors.respond_to?(:preflight?) && cors.preflight?
|
21
|
-
# if the Rack CORS Middleware identifies the request as a preflight request,
|
22
|
-
# the stack doesn't get to the point where controllers/actions are defined
|
23
|
-
action = "preflight"
|
24
|
-
controller = "preflight"
|
25
|
-
end
|
26
|
-
{
|
27
|
-
action: action || "other",
|
28
|
-
controller: controller || "other",
|
29
|
-
}
|
30
|
-
end
|
31
|
-
|
32
8
|
def custom_labels(env)
|
33
9
|
env.fetch("govuk.prometheus_labels", {})
|
34
10
|
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.
|
4
|
+
version: 9.20.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
@@ -103,14 +103,14 @@ dependencies:
|
|
103
103
|
requirements:
|
104
104
|
- - "~>"
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
version: '2.
|
106
|
+
version: '2.3'
|
107
107
|
type: :runtime
|
108
108
|
prerelease: false
|
109
109
|
version_requirements: !ruby/object:Gem::Requirement
|
110
110
|
requirements:
|
111
111
|
- - "~>"
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
version: '2.
|
113
|
+
version: '2.3'
|
114
114
|
- !ruby/object:Gem::Dependency
|
115
115
|
name: puma
|
116
116
|
requirement: !ruby/object:Gem::Requirement
|
@@ -395,7 +395,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
395
395
|
requirements:
|
396
396
|
- - ">="
|
397
397
|
- !ruby/object:Gem::Version
|
398
|
-
version: 3.
|
398
|
+
version: 3.2.0
|
399
399
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
400
400
|
requirements:
|
401
401
|
- - ">="
|