govuk_app_config 4.10.1 → 4.11.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: 49d2ba8d4a28f3bcbe72bebb31f5516123964e8142dcf93a08c69f7efecc8d30
4
- data.tar.gz: 061e91536be46ef802a5c6379dfa5a465e04cdb7657faa18371cecd439484a24
3
+ metadata.gz: 3860b6855cbcf400a78ac81032a4db049ee483a6c60614eab68e19f9340331e2
4
+ data.tar.gz: 8151cbc7c4be367f57c8dbaafdc5755beb09e410f474d8a9830f1f3fc3e89382
5
5
  SHA512:
6
- metadata.gz: 4d526f99f686189933127e1e440f0153682a6147f6b21f1d44003fb1c7de129c151cffb6b8145ff3560af5963e80cae48d97c0b0d3c551b64948ea6eda0fc547
7
- data.tar.gz: 5791cd78d85920e76bc58ae734ceadd50b636fccb2e16fb91952bd00e15ed45e3aaccc191e9947626721c43326c535b8f05655b3c2e20ddde2b3ebd992ef04f6
6
+ metadata.gz: c2af9398cbf1d148e39f4d48b315bb7c10443f05737713c50f933ad4e3c3f69e4e45c5d19f79cfeb1a55f102e2477702cd77edd04a7d3ba654053d8b0caf7149
7
+ data.tar.gz: 553747a1e310ab22a5ccf2cc8da122dafc8fd46402262edefdf2bd2e897f510fdc976198f505f57b8657c256621d40b3d49931ec0f0822abc877eda94fcda41a
@@ -4,9 +4,7 @@ updates:
4
4
  directory: "/"
5
5
  schedule:
6
6
  interval: daily
7
- time: "03:00"
8
- open-pull-requests-limit: 10
9
- ignore:
10
- - dependency-name: aws-xray-sdk
11
- versions:
12
- - "> 0.10.0"
7
+ - package-ecosystem: "github-actions"
8
+ directory: "/"
9
+ schedule:
10
+ interval: daily
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ # 4.11.1
2
+
3
+ - Remove govuk_i18n plural rules file
4
+
5
+ # 4.11.0
6
+
7
+ - Update Plek support to allow version 5
8
+ - Add I18n plural rules for Welsh (cy), Maltese (mt) and Chinese (zh) since Rails-I18n has [dropped support](https://github.com/svenfuchs/rails-i18n/pull/1017) for them in 7.0.6 ([#266](https://github.com/alphagov/govuk_app_config/pull/266))
9
+
1
10
  # 4.10.1
2
11
 
3
12
  - Fix an object ownership/sharing bug where the Rails log level was erroneously being set to `WARN` when initialising Sentry.
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = %w[lib]
22
22
 
23
23
  spec.add_dependency "logstasher", "~> 2.1"
24
- spec.add_dependency "plek", "~> 4"
24
+ spec.add_dependency "plek", ">= 4", "< 6"
25
25
  spec.add_dependency "prometheus_exporter", "~> 2.0"
26
26
  spec.add_dependency "puma", ">= 5.6", "< 7.0"
27
27
  spec.add_dependency "rack-proxy", "~> 0.7"
@@ -37,6 +37,6 @@ Gem::Specification.new do |spec|
37
37
  spec.add_development_dependency "rake", "~> 13.0"
38
38
  spec.add_development_dependency "rspec", "~> 3.10"
39
39
  spec.add_development_dependency "rspec-its", "~> 1.3"
40
- spec.add_development_dependency "rubocop-govuk", "4.7.0"
40
+ spec.add_development_dependency "rubocop-govuk", "4.9.0"
41
41
  spec.add_development_dependency "webmock"
42
42
  end
@@ -4,8 +4,7 @@ module GovukAppConfig
4
4
  class Railtie < Rails::Railtie
5
5
  initializer "govuk_app_config.configure_govuk_proxy" do |app|
6
6
  if ENV["GOVUK_PROXY_STATIC_ENABLED"] == "true"
7
- static_url = Plek.new.find("static")
8
- app.middleware.use GovukProxy::StaticProxy, backend: static_url
7
+ app.middleware.use GovukProxy::StaticProxy, backend: Plek.find("static")
9
8
  end
10
9
  end
11
10
 
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "4.10.1".freeze
2
+ VERSION = "4.11.1".freeze
3
3
  end
@@ -3,7 +3,6 @@ require "govuk_app_config/govuk_statsd"
3
3
  require "govuk_app_config/govuk_error"
4
4
  require "govuk_app_config/govuk_proxy/static_proxy"
5
5
  require "govuk_app_config/govuk_healthcheck"
6
- require "govuk_app_config/govuk_i18n"
7
6
  # This require is deprecated and should be removed on next major version bump
8
7
  # and should be required by applications directly.
9
8
  require "govuk_app_config/govuk_unicorn"
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.10.1
4
+ version: 4.11.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-10-24 00:00:00.000000000 Z
11
+ date: 2022-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: logstasher
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: plek
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '6'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '4'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '6'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: prometheus_exporter
43
49
  requirement: !ruby/object:Gem::Requirement
@@ -246,14 +252,14 @@ dependencies:
246
252
  requirements:
247
253
  - - '='
248
254
  - !ruby/object:Gem::Version
249
- version: 4.7.0
255
+ version: 4.9.0
250
256
  type: :development
251
257
  prerelease: false
252
258
  version_requirements: !ruby/object:Gem::Requirement
253
259
  requirements:
254
260
  - - '='
255
261
  - !ruby/object:Gem::Version
256
- version: 4.7.0
262
+ version: 4.9.0
257
263
  - !ruby/object:Gem::Dependency
258
264
  name: webmock
259
265
  requirement: !ruby/object:Gem::Requirement
@@ -302,7 +308,6 @@ files:
302
308
  - lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
303
309
  - lib/govuk_app_config/govuk_healthcheck/redis.rb
304
310
  - lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
305
- - lib/govuk_app_config/govuk_i18n.rb
306
311
  - lib/govuk_app_config/govuk_logging.rb
307
312
  - lib/govuk_app_config/govuk_prometheus_exporter.rb
308
313
  - lib/govuk_app_config/govuk_proxy/static_proxy.rb
@@ -331,7 +336,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
331
336
  - !ruby/object:Gem::Version
332
337
  version: '0'
333
338
  requirements: []
334
- rubygems_version: 3.3.24
339
+ rubygems_version: 3.3.26
335
340
  signing_key:
336
341
  specification_version: 4
337
342
  summary: Base configuration for GOV.UK applications
@@ -1,46 +0,0 @@
1
- module GovukI18n
2
- def self.plurals
3
- {
4
- # Azerbaijani
5
- az: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
6
- # Dari - this isn't an iso code. Probably should be 'prs' as per ISO 639-3.
7
- dr: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
8
- # Latin America and Caribbean Spanish
9
- "es-419": { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
10
- # Persian
11
- fa: { i18n: { plural: { keys: %i[one other], rule: ->(n) { [0, 1].include?(n) ? :one : :other } } } },
12
- # Scottish Gaelic
13
- gd: { i18n: { plural: { keys: %i[one two few other],
14
- rule:
15
- lambda do |n|
16
- if [1, 11].include?(n)
17
- :one
18
- elsif [2, 12].include?(n)
19
- :two
20
- elsif [3, 4, 5, 6, 7, 8, 9, 10, 13, 14, 15, 16, 17, 18, 19].include?(n)
21
- :few
22
- else
23
- :other
24
- end
25
- end } } },
26
- # Armenian
27
- hy: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
28
- # Georgian
29
- ka: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
30
- # Kazakh
31
- kk: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
32
- # Punjabi Shahmukhi
33
- "pa-pk": { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
34
- # Sinhalese
35
- si: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
36
- # Turkish
37
- tr: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
38
- # Uzbek
39
- uz: { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
40
- # Chinese Hong Kong
41
- "zh-hk" => { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
42
- # Chinese Taiwan
43
- "zh-tw" => { i18n: { plural: { keys: %i[one other], rule: ->(n) { n == 1 ? :one : :other } } } },
44
- }
45
- end
46
- end