govuk_app_config 5.0.0 → 6.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +9 -0
- data/govuk_app_config.gemspec +2 -2
- data/lib/govuk_app_config/govuk_prometheus_exporter.rb +8 -1
- data/lib/govuk_app_config/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee3c6597f85f20d601fea02cc8412c6d8440866e0b151d186e10c7d0d7eb52fa
|
4
|
+
data.tar.gz: c1b783944841d1b4a9d6dd4941cb3dbfc68d361215927c78c0931d73a1d851e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 98aa6b485b645c630e0b6d25474096e73be88817aef0e65b7767e3740c2da4feb95d69cd4491fb7762949f232a3f73f7105bfd4b05a2cc73c8cd14076851259d
|
7
|
+
data.tar.gz: db5e291133010b1ddb6c5041a4eaa68fb24bc76920a6f821b1710a66a4e285b97e199cde1371c2d91bdc411708c0a0d0d40d0559e4413c16afa34db4cd4d1af1
|
data/.github/workflows/ci.yml
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.5
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
## 6.0.0
|
2
|
+
|
3
|
+
* BREAKING: Drop support for Ruby 2.7
|
4
|
+
* Register the Prometheus exporter in Sinatra middleware
|
5
|
+
|
6
|
+
# 5.1.0
|
7
|
+
|
8
|
+
* Add support to force-load the GovukPrometheusExporter by setting `GOVUK_PROMETHEUS_EXPORTER` to `force`. ([#282](https://github.com/alphagov/govuk_app_config/pull/282))
|
9
|
+
|
1
10
|
# 5.0.0
|
2
11
|
|
3
12
|
* Forbid base elements in the Content Security Policy
|
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 = ">=
|
16
|
+
spec.required_ruby_version = ">= 3.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"
|
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
|
|
37
37
|
spec.add_development_dependency "rake", "~> 13.0"
|
38
38
|
spec.add_development_dependency "rspec", "~> 3.10"
|
39
39
|
spec.add_development_dependency "rspec-its", "~> 1.3"
|
40
|
-
spec.add_development_dependency "rubocop-govuk", "4.
|
40
|
+
spec.add_development_dependency "rubocop-govuk", "4.10.0"
|
41
41
|
spec.add_development_dependency "webmock"
|
42
42
|
end
|
@@ -1,6 +1,9 @@
|
|
1
1
|
module GovukPrometheusExporter
|
2
2
|
def self.should_configure
|
3
|
-
|
3
|
+
# Allow us to force the Prometheus Exporter for persistent Rake tasks...
|
4
|
+
if ENV["GOVUK_PROMETHEUS_EXPORTER"] == "force"
|
5
|
+
true
|
6
|
+
elsif File.basename($PROGRAM_NAME) == "rake" ||
|
4
7
|
defined?(Rails) && (Rails.const_defined?("Console") || Rails.env == "test")
|
5
8
|
false
|
6
9
|
else
|
@@ -37,5 +40,9 @@ module GovukPrometheusExporter
|
|
37
40
|
if defined?(Rails)
|
38
41
|
Rails.application.middleware.unshift PrometheusExporter::Middleware
|
39
42
|
end
|
43
|
+
|
44
|
+
if defined?(Sinatra)
|
45
|
+
Sinatra.use PrometheusExporter::Middleware
|
46
|
+
end
|
40
47
|
end
|
41
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: govuk_app_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 6.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GOV.UK Dev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: logstasher
|
@@ -252,14 +252,14 @@ dependencies:
|
|
252
252
|
requirements:
|
253
253
|
- - '='
|
254
254
|
- !ruby/object:Gem::Version
|
255
|
-
version: 4.
|
255
|
+
version: 4.10.0
|
256
256
|
type: :development
|
257
257
|
prerelease: false
|
258
258
|
version_requirements: !ruby/object:Gem::Requirement
|
259
259
|
requirements:
|
260
260
|
- - '='
|
261
261
|
- !ruby/object:Gem::Version
|
262
|
-
version: 4.
|
262
|
+
version: 4.10.0
|
263
263
|
- !ruby/object:Gem::Dependency
|
264
264
|
name: webmock
|
265
265
|
requirement: !ruby/object:Gem::Requirement
|
@@ -329,14 +329,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
329
329
|
requirements:
|
330
330
|
- - ">="
|
331
331
|
- !ruby/object:Gem::Version
|
332
|
-
version: '
|
332
|
+
version: '3.0'
|
333
333
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
334
334
|
requirements:
|
335
335
|
- - ">="
|
336
336
|
- !ruby/object:Gem::Version
|
337
337
|
version: '0'
|
338
338
|
requirements: []
|
339
|
-
rubygems_version: 3.4.
|
339
|
+
rubygems_version: 3.4.10
|
340
340
|
signing_key:
|
341
341
|
specification_version: 4
|
342
342
|
summary: Base configuration for GOV.UK applications
|