govuk_app_config 1.11.0 → 1.11.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: 3c943fd979fbb5e966e217f83e21a5815657b5b251eee70badb6a09a35611d4b
4
- data.tar.gz: bd0f48f895a4b478cbdb9765347624f9eac4ce436946f589dfe318e64c6cece3
3
+ metadata.gz: 06427a145a23e987f54b23bd89d4b2f591ce6fafd2fa17b2ed3154e5b8eb1aa2
4
+ data.tar.gz: 4c1d54b74d7f9dbff47497247d2d810d52c998ada36a54669689194c008a427f
5
5
  SHA512:
6
- metadata.gz: 9090d96be4367e26206666daa7aa7905351e8bb29fea43ed1d373ac4e20afb0f5e290f2af8b76eccb217bcdff12f2c9fbfe269744972a418221364137600eb4c
7
- data.tar.gz: 75058dbf38294232c6a34c886dd313ca413da9f6afcf91de104deb239f972bbd2dfbe2c6efa95e1c196b70b5cf78e5094fb1e630ab0a834fe704999eed8e5a54
6
+ metadata.gz: 9af362bd45ab6d01659695e656bc1d9149fcd06ad780f05f656c6e6fef83cf9e85d2c69ae3062401a9a9229dbb3e78163abda45cb3167096c7479f230a9f2fa5
7
+ data.tar.gz: a8681fd00099c7b2cd619d0a148003123df6dc95f04f8960dae3ca1e01185c68a8e736163a19f536b62d6a8d215480abb45ca31157d0f498b40741e9a4b47787
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.11.1
2
+
3
+ * Fix crash on start due to incorrect method invocation.
4
+
1
5
  # 1.11.0
2
6
 
3
7
  * Disable X-Ray entirely if the `GOVUK_APP_CONFIG_DISABLE_XRAY`
@@ -1,7 +1,11 @@
1
1
  module GovukAppConfig
2
2
  class Railtie < Rails::Railtie
3
+ def self.enable_railtie_for?(name)
4
+ Rails.env.production? && !ENV.has_key?("GOVUK_APP_CONFIG_DISABLE_#{name.upcase}")
5
+ end
6
+
3
7
  initializer('govuk_app_config') do |app|
4
- GovukXRay.initialize(app) if enable_railtie_for?('xray')
8
+ GovukXRay.initialize(app) if self.enable_railtie_for?('xray')
5
9
  end
6
10
 
7
11
  config.before_initialize do
@@ -9,11 +13,7 @@ module GovukAppConfig
9
13
  end
10
14
 
11
15
  config.after_initialize do
12
- GovukXRay.start if enable_railtie_for?('xray')
13
- end
14
-
15
- def self.enable_railtie_for?(name)
16
- Rails.env.production? && !ENV.has_key?("GOVUK_APP_CONFIG_DISABLE_#{name.upcase}")
16
+ GovukXRay.start if self.enable_railtie_for?('xray')
17
17
  end
18
18
  end
19
19
  end
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "1.11.0"
2
+ VERSION = "1.11.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_app_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.11.0
4
+ version: 1.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev