govuk_app_config 9.17.17 → 9.18.0

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: 191546f781cd1bc5fe7227a323ddda54d2a3f6e9aee0f9a540035592dda9a9f9
4
- data.tar.gz: 5ebc80e75784400b2bea36e81e0d1e5051796a52c87762d535b8e8200a1056fd
3
+ metadata.gz: 66fcd91cb96937dd1e1175cb3b1ce381e1ff96315a48d78fbb4ff82b10c3d445
4
+ data.tar.gz: 35bbec2bb311363df456acb40443eab276da3a5b7b5f27d9b13f737ee5f36ff0
5
5
  SHA512:
6
- metadata.gz: 1f0eb9e6a2e0814b2ce9db21ee8dfa3b13838cffafd2e01c468e8b8460e108316e0c191ac8d1dbf74635f678c0c055eafbd70e461def7125f1cab272609ec3fa
7
- data.tar.gz: 7ef792d81f1cb2d42722e7031a3d753cf31839889b54f3e0d2b5aec58789d706dd2f016eeca1c41b8b68187c23fc4dcfbd02825294cbe204b5addaa026e3d82f
6
+ metadata.gz: d2d35864851dfeb978c0b45ef1bac25516ab3772db30f79c43db62d03dffba7e750fba571355f76c99f9a623888d0006a1be465435eeeb517837d99f95f055ec
7
+ data.tar.gz: 872b3cd2ba3a58f55ba068a57d0bb512f62acb2514e2bcf90c2a63c863303764b9917f209620c6f4aa6bd61b6025634c871e264e19c3c0e0d68887773abc2e47
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.4
1
+ 3.3.6
data/CHANGELOG.md CHANGED
@@ -1,9 +1,14 @@
1
+ # 9.18.0
2
+
3
+ * Add `GovukEnvironment.current` feature
4
+
1
5
  # 9.17.17
2
6
 
3
7
  * Update dependencies
4
8
 
5
9
  # 9.17.16
6
10
 
11
+ * Update dependencies
7
12
 
8
13
  # 9.17.15
9
14
 
data/README.md CHANGED
@@ -192,6 +192,15 @@ The translations can be enabled in the frontend application by creating a file a
192
192
  GovukI18n.configure
193
193
  ```
194
194
 
195
+ ## Environment
196
+
197
+ This gem provides a canonical way of querying the current environment as a string:
198
+
199
+ ```ruby
200
+ GovukEnvironment.current
201
+ # returns "production", "staging", "integration" or "development"
202
+ ```
203
+
195
204
  ## Time zone
196
205
 
197
206
  This gem sets `config.time_zone` to `"London"` by default.
@@ -0,0 +1,5 @@
1
+ module GovukEnvironment
2
+ def self.current
3
+ ENV["GOVUK_ENVIRONMENT"] || "development"
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "9.17.17".freeze
2
+ VERSION = "9.18.0".freeze
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: 9.17.17
4
+ version: 9.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
@@ -357,6 +357,7 @@ files:
357
357
  - govuk_app_config.gemspec
358
358
  - lib/govuk_app_config.rb
359
359
  - lib/govuk_app_config/govuk_content_security_policy.rb
360
+ - lib/govuk_app_config/govuk_environment.rb
360
361
  - lib/govuk_app_config/govuk_error.rb
361
362
  - lib/govuk_app_config/govuk_error/configuration.rb
362
363
  - lib/govuk_app_config/govuk_error/govuk_data_sync.rb
@@ -398,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
398
399
  - !ruby/object:Gem::Version
399
400
  version: '0'
400
401
  requirements: []
401
- rubygems_version: 3.6.9
402
+ rubygems_version: 3.7.1
402
403
  specification_version: 4
403
404
  summary: Base configuration for GOV.UK applications
404
405
  test_files: []