govuk_app_config 4.7.0 → 4.7.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: ca0a86d04eac2f6c9d28dac8fe8971f2d9a7b318466145bed5d314eb0ce57529
4
- data.tar.gz: f309aece319f90ddc1eeaee8ab30188121caec53e2d3f86e7236a38a54307952
3
+ metadata.gz: 4980a3e44e9119b3542865caa4e07b57078c535e0eca7f3b6fb9952cf602080a
4
+ data.tar.gz: 8bcd1e8e02392e09241501dd23936a959d883833683aa1c9087938fbe095548d
5
5
  SHA512:
6
- metadata.gz: 8e54af80454cb90fbf63f1b3b4b81ee89f7edf5adc589fb24f0fe3a16e232d6a6663d3c9d56870b6922e0907c2f8e36aa66f17942384ba2444e38158d164892a
7
- data.tar.gz: 24223d4a1aca01eec6d2dba4f5a6bfe70d09135fb4d3504a0db77624bf3b8055d6c769446f3c6b8af95e311851952dc36ae58c37a870f1b228145dcc5726a7db
6
+ metadata.gz: bd601933a5242b4e06135e36c5254b78002336cdac975726a4bde1eabb205827d797b175b5a50b52d5b0ef9536b5f74e1e9d56cda42910b8f144cea27bb5df63
7
+ data.tar.gz: 003c1505e61831f46160a768a4f990811b0513f94dce388d4cdc00242df74cf2812e3e1ff70a405d2e4d0c24d2ebb1694d0e8b6edef3d971523125cd8ceedc58
@@ -1,6 +1,11 @@
1
1
  module GovukPrometheusExporter
2
2
  def self.should_configure
3
- ENV["GOVUK_PROMETHEUS_EXPORTER"] == "true" && !(defined?(Rails) && Rails.env == "test")
3
+ if File.basename($PROGRAM_NAME) == "rake" ||
4
+ defined?(Rails) && (Rails.const_defined?("Console") || Rails.env == "test")
5
+ false
6
+ else
7
+ ENV["GOVUK_PROMETHEUS_EXPORTER"] == "true"
8
+ end
4
9
  end
5
10
 
6
11
  def self.configure
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "4.7.0".freeze
2
+ VERSION = "4.7.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: 4.7.0
4
+ version: 4.7.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: 2022-08-12 00:00:00.000000000 Z
11
+ date: 2022-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstasher