govuk_app_config 6.0.0 → 6.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee3c6597f85f20d601fea02cc8412c6d8440866e0b151d186e10c7d0d7eb52fa
4
- data.tar.gz: c1b783944841d1b4a9d6dd4941cb3dbfc68d361215927c78c0931d73a1d851e7
3
+ metadata.gz: 59fb9ea4411ba3ec2be3af84e9888920a6ca07547bfcd199d00b9c921a461639
4
+ data.tar.gz: aeaea12af9e8ca7612d39c002bd5d5658e5683477f667b5a9419bd1f9529feb2
5
5
  SHA512:
6
- metadata.gz: 98aa6b485b645c630e0b6d25474096e73be88817aef0e65b7767e3740c2da4feb95d69cd4491fb7762949f232a3f73f7105bfd4b05a2cc73c8cd14076851259d
7
- data.tar.gz: db5e291133010b1ddb6c5041a4eaa68fb24bc76920a6f821b1710a66a4e285b97e199cde1371c2d91bdc411708c0a0d0d40d0559e4413c16afa34db4cd4d1af1
6
+ metadata.gz: c46413f09bb129baefa17951e539b8304faaa85c6eae9c7be8fd410677f322c67b65b091b01918555d450518692dd12348b8212cb039dbae6cd429959f8b818b
7
+ data.tar.gz: 5bafc15ab122c9088039093ed786420dc080bd7f20265157e536e0388133d44707c4146bd8d619a0926f13883ce8c314371f0985e4ce7087d1998e8d413dc59a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 6.0.1
2
+
3
+ * Add support for configuring timeouts for puma-based applications
4
+
1
5
  ## 6.0.0
2
6
 
3
7
  * BREAKING: Drop support for Ruby 2.7
@@ -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 = "6.0.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: 6.0.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-03-29 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