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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0bc71cc5bd08fd8564de90311775a22d6c9b6a11bfbda2924c8782be3c265ff9
4
- data.tar.gz: 6d28205894b18a2b5ceaaed55967d8a55aaf7ab4e375979b1366cf42fbcd98c7
3
+ metadata.gz: ee3c6597f85f20d601fea02cc8412c6d8440866e0b151d186e10c7d0d7eb52fa
4
+ data.tar.gz: c1b783944841d1b4a9d6dd4941cb3dbfc68d361215927c78c0931d73a1d851e7
5
5
  SHA512:
6
- metadata.gz: 87122fbe05b408cb3578e3b983e99451f5fe0898316f31f8e87107d4a09b50f0205ea803620af3a40dc2a0459015fcb67a898359a66aa998b092a9c2d143b2cd
7
- data.tar.gz: b4fe9f24dfe1f98efd3d5988f46f147b48bf869eb3e3901634efc4ceb6089d9735588d92a4574d822c68bfe9e8c219a572d69cab971c688a864b2f4e640d2052
6
+ metadata.gz: 98aa6b485b645c630e0b6d25474096e73be88817aef0e65b7767e3740c2da4feb95d69cd4491fb7762949f232a3f73f7105bfd4b05a2cc73c8cd14076851259d
7
+ data.tar.gz: db5e291133010b1ddb6c5041a4eaa68fb24bc76920a6f821b1710a66a4e285b97e199cde1371c2d91bdc411708c0a0d0d40d0559e4413c16afa34db4cd4d1af1
@@ -6,7 +6,7 @@ jobs:
6
6
  fail-fast: false
7
7
  matrix:
8
8
  # Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
9
- ruby: [2.7, '3.0', 3.1, 3.2]
9
+ ruby: ['3.0', 3.1, 3.2]
10
10
  runs-on: ubuntu-latest
11
11
  steps:
12
12
  - uses: actions/checkout@v3
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.7.6
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
@@ -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 = ">= 2.7"
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.9.0"
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
- if File.basename($PROGRAM_NAME) == "rake" ||
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
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "5.0.0".freeze
2
+ VERSION = "6.0.0".freeze
3
3
  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: 5.0.0
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-01-26 00:00:00.000000000 Z
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.9.0
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.9.0
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: '2.7'
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.5
339
+ rubygems_version: 3.4.10
340
340
  signing_key:
341
341
  specification_version: 4
342
342
  summary: Base configuration for GOV.UK applications