govuk_app_config 5.1.0 → 6.0.1

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: 043f58b5ab2db86cab41a12db947c9a22985a0cab93a0a673a313c026f9df172
4
- data.tar.gz: 94ad0af53466f3cafcb59e967c69eafae770ed2abb4f75efca92b4f382d13044
3
+ metadata.gz: 59fb9ea4411ba3ec2be3af84e9888920a6ca07547bfcd199d00b9c921a461639
4
+ data.tar.gz: aeaea12af9e8ca7612d39c002bd5d5658e5683477f667b5a9419bd1f9529feb2
5
5
  SHA512:
6
- metadata.gz: 334c9ea1a036cf06dde586d86af5a6d3bfbc89e22ea10e329c4f043341939815cab56eb1a8ede54eab398fc44c1cce08f04736d32a21bff74909b8590fccb55f
7
- data.tar.gz: 3fad672d0d868f84ebe91db228f983b00818793b916f3ce503a28428d62fcf2568350978b235b81b6e01cbd0453628885c8d779e8f25e041bd0f773334d8df9d
6
+ metadata.gz: c46413f09bb129baefa17951e539b8304faaa85c6eae9c7be8fd410677f322c67b65b091b01918555d450518692dd12348b8212cb039dbae6cd429959f8b818b
7
+ data.tar.gz: 5bafc15ab122c9088039093ed786420dc080bd7f20265157e536e0388133d44707c4146bd8d619a0926f13883ce8c314371f0985e4ce7087d1998e8d413dc59a
@@ -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.1
2
+
3
+ * Add support for configuring timeouts for puma-based applications
4
+
5
+ ## 6.0.0
6
+
7
+ * BREAKING: Drop support for Ruby 2.7
8
+ * Register the Prometheus exporter in Sinatra middleware
9
+
1
10
  # 5.1.0
2
11
 
3
12
  * Add support to force-load the GovukPrometheusExporter by setting `GOVUK_PROMETHEUS_EXPORTER` to `force`. ([#282](https://github.com/alphagov/govuk_app_config/pull/282))
@@ -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"
@@ -40,5 +40,9 @@ module GovukPrometheusExporter
40
40
  if defined?(Rails)
41
41
  Rails.application.middleware.unshift PrometheusExporter::Middleware
42
42
  end
43
+
44
+ if defined?(Sinatra)
45
+ Sinatra.use PrometheusExporter::Middleware
46
+ end
43
47
  end
44
48
  end
@@ -9,7 +9,11 @@ module GovukPuma
9
9
  end
10
10
 
11
11
  # `worker_timeout` specifies how many seconds Puma will wait before terminating a worker.
12
- timeout = ENV.fetch("RAILS_ENV", "development") == "development" ? 3600 : 15
12
+ timeout = if ENV.fetch("RAILS_ENV", "development") == "development"
13
+ 3600
14
+ else
15
+ Integer(ENV.fetch("PUMA_TIMEOUT", 15))
16
+ end
13
17
  config.worker_timeout timeout
14
18
 
15
19
  # When changing the min/max threads for Puma, also consider changing ActiveRecord to match.
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "5.1.0".freeze
2
+ VERSION = "6.0.1".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.1.0
4
+ version: 6.0.1
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-02-20 00:00:00.000000000 Z
11
+ date: 2023-04-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstasher
@@ -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.7
339
+ rubygems_version: 3.4.10
340
340
  signing_key:
341
341
  specification_version: 4
342
342
  summary: Base configuration for GOV.UK applications