govuk_app_config 9.18.1 → 9.19.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: 48620823a8f0c5b244dd30823d024d113b3cee2e35b49923e1d6247456ee8806
4
- data.tar.gz: b1f6fbf236186b236230cc1afe808b664f0aaee3f5d2677dde4523b73aafb619
3
+ metadata.gz: 8e91e734c44912cad4f990501a96e2565db40a72ee7f0a8501a5a2fa3c8ad7c1
4
+ data.tar.gz: 826f2fa2a0963d099e85443a4e421b53fe241897f63de81074d2e10f014a7a4c
5
5
  SHA512:
6
- metadata.gz: ad47786c9405ca8631dbf63b5dd677682eed725d76ab8342631d91e8a18cceea05a25b9442db376e1f79ef8a5d695f67e978bca0efa2c1840bc1959c50d11d68
7
- data.tar.gz: b6df586ad64694fa2049da9d0e9ca326f174ac737b1bb3162be3efc7ebcc2f8355dc46d309b3509fa9d3e01826205a0221df4ed244c9096fb9200bfc300b7bfd
6
+ metadata.gz: 751c72ff16e15fad2ac84bcf707ca9c55b3ac80f6feaa7dafc53dce22cead4da7aab66a43e1e99315013490c8b1438077ca600c359fdbf7b4cf311921eec122f
7
+ data.tar.gz: 5d459b079a33f17d5c85e93ffa4eda4c23cca768a4633be44f2bee5012fc83d214af9feeddd47299b4124f02640a37ffbce4761da2c4f93f991ad2ac97292fbb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 9.19.1
2
+
3
+ * Add translations for Kurdish Sorani and Tigrinyan
4
+
5
+ # 9.19.0
6
+
7
+ * Add `GovukHealthcheck.EmergencyBannerRedis` healthcheck
8
+
1
9
  # 9.18.1
2
10
 
3
11
  * Properly export `GovukEnvironment.current` feature
data/docs/healthchecks.md CHANGED
@@ -29,7 +29,9 @@ Built-in checks you can use include:
29
29
 
30
30
  - `GovukHealthcheck::RailsCache` - checks that the Rails cache store, such as Memcached, is acessible by writing and reading back a cache entry called "healthcheck-cache".
31
31
 
32
- - `GovukHealthcheck::Redis` - checks that the app can connect to Redis by writing and reading back a cache entry called "healthcheck-cache".
32
+ - `GovukHealthcheck::Redis` - checks that the app can connect to Redis by writing and reading back a cache entry called "healthcheck-<random_hex>".
33
+
34
+ - `GovukHealthcheck::EmergencyBannerRedis` - checks that the app can connect to the Redis instance which has the emergency banner config by writing and reading back a cache entry called "healthcheck-emergency-banner-<random_hex>".
33
35
 
34
36
  - `GovukHealthcheck::Mongoid` - checks that the app has a connection to its Mongo database via Mongoid.
35
37
 
@@ -39,7 +39,7 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "rake", "~> 13.0"
40
40
  spec.add_development_dependency "rspec", "~> 3.10"
41
41
  spec.add_development_dependency "rspec-its", "~> 2.0"
42
- spec.add_development_dependency "rubocop-govuk", "5.1.18"
42
+ spec.add_development_dependency "rubocop-govuk", "5.1.19"
43
43
  spec.add_development_dependency "simplecov"
44
44
  spec.add_development_dependency "webmock"
45
45
  end
@@ -0,0 +1,28 @@
1
+ require "securerandom"
2
+
3
+ module GovukHealthcheck
4
+ class EmergencyBannerRedis
5
+ def name
6
+ :emergency_banner_redis_connectivity
7
+ end
8
+
9
+ def status
10
+ client = ::Redis.new(
11
+ url: ENV["EMERGENCY_BANNER_REDIS_URL"],
12
+ reconnect_attempts: [0, 0.25], # Purposefully short since this is a healthcheck
13
+ )
14
+
15
+ key = "healthcheck-emergency-banner-#{SecureRandom.hex}"
16
+
17
+ client.set(key, "val")
18
+ client.get(key)
19
+ client.del(key)
20
+
21
+ client.close
22
+
23
+ GovukHealthcheck::OK
24
+ rescue StandardError
25
+ GovukHealthcheck::CRITICAL
26
+ end
27
+ end
28
+ end
@@ -1,5 +1,6 @@
1
1
  require "govuk_app_config/govuk_healthcheck/checkup"
2
2
  require "govuk_app_config/govuk_healthcheck/active_record"
3
+ require "govuk_app_config/govuk_healthcheck/emergency_banner_redis"
3
4
  require "govuk_app_config/govuk_healthcheck/mongoid"
4
5
  require "govuk_app_config/govuk_healthcheck/rails_cache"
5
6
  require "govuk_app_config/govuk_healthcheck/redis"
@@ -0,0 +1,207 @@
1
+ ku:
2
+ date:
3
+ abbr_day_names:
4
+ - یەک شەممە
5
+ - دووشەممە
6
+ - سێ شەممە
7
+ - چوارشەممە
8
+ - پێنج شەممە
9
+ - هەینی
10
+ - شەممە
11
+ abbr_month_names:
12
+ -
13
+ - کانوونی دووەم
14
+ - شوبات
15
+ - ئازار
16
+ - نیسان
17
+ - ئایار
18
+ - حوزەیران
19
+ - تەمموز
20
+ - ئاب
21
+ - ئەیلول
22
+ - تشرینی یەکەم
23
+ - تشرینی دووەم
24
+ - کانوونی یەکەم
25
+ day_names:
26
+ - یەک شەممە
27
+ - دووشەممە
28
+ - سێ شەممە
29
+ - چوارشەممە
30
+ - پێنج شەممە
31
+ - هەینی
32
+ - شەممە
33
+ formats:
34
+ default: "%d-%m-%Y"
35
+ long: "%Y %B %e"
36
+ short: "%b %e"
37
+ month_names:
38
+ -
39
+ - کانوونی دووەم
40
+ - شوبات
41
+ - ئازار
42
+ - نیسان
43
+ - ئایار
44
+ - حوزەیران
45
+ - تەمموز
46
+ - ئاب
47
+ - ئەیلول
48
+ - تشرینی یەکەم
49
+ - تشرینی دووەم
50
+ - کانوونی یەکەم
51
+ order:
52
+ - :day
53
+ - :month
54
+ - :year
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one:
59
+ other:
60
+ about_x_months:
61
+ one:
62
+ other:
63
+ about_x_years:
64
+ one:
65
+ other:
66
+ almost_x_years:
67
+ one:
68
+ other:
69
+ half_a_minute:
70
+ less_than_x_minutes:
71
+ one: کەمتر لە یەک خوولەک
72
+ other: "کەمتر لە {count}% خوولەک"
73
+ less_than_x_seconds:
74
+ one: "کەمتر لە {count}% چرکە"
75
+ other: "کەمتر لە {count}% چرکە"
76
+ over_x_years:
77
+ one: "لەسەروو {count}% ساڵ"
78
+ other: "لەسەروو {count}% ساڵ"
79
+ x_days:
80
+ one: "%{count} ڕۆژ"
81
+ other: "ڕۆژ {count}%"
82
+ x_minutes:
83
+ one: "%{count} خوولەک"
84
+ other: "%{count} خوولەک"
85
+ x_months:
86
+ one: "مانگ {count}%"
87
+ other: "مانگ {count}%"
88
+ x_seconds:
89
+ one: "چرکە {count}%"
90
+ other: "چرکە {count}%"
91
+ x_years:
92
+ one: "ساڵ {count}%"
93
+ other: "ساڵ {count}%"
94
+ prompts:
95
+ day: ڕۆژ
96
+ hour: کاتژمێر
97
+ minute: خوولەک
98
+ month: مانگ
99
+ second: چرکە
100
+ year: ساڵ
101
+ errors:
102
+ format: "%{attribute} %{message}"
103
+ messages:
104
+ accepted:
105
+ blank:
106
+ confirmation:
107
+ empty:
108
+ equal_to:
109
+ even:
110
+ exclusion:
111
+ greater_than:
112
+ greater_than_or_equal_to:
113
+ in:
114
+ inclusion:
115
+ invalid:
116
+ less_than:
117
+ less_than_or_equal_to:
118
+ model_invalid:
119
+ not_a_number:
120
+ not_an_integer:
121
+ odd:
122
+ other_than:
123
+ password_too_long:
124
+ present:
125
+ required:
126
+ taken:
127
+ too_long:
128
+ one:
129
+ other:
130
+ too_short:
131
+ one:
132
+ other:
133
+ wrong_length:
134
+ one:
135
+ other:
136
+ template:
137
+ body:
138
+ header:
139
+ one:
140
+ other:
141
+ helpers:
142
+ select:
143
+ prompt:
144
+ submit:
145
+ create:
146
+ submit:
147
+ update:
148
+ number:
149
+ currency:
150
+ format:
151
+ delimiter:
152
+ format:
153
+ precision:
154
+ separator:
155
+ significant:
156
+ strip_insignificant_zeros:
157
+ unit:
158
+ human:
159
+ decimal_units:
160
+ format:
161
+ units:
162
+ billion:
163
+ million:
164
+ quadrillion:
165
+ thousand:
166
+ trillion:
167
+ unit:
168
+ format:
169
+ delimiter:
170
+ precision:
171
+ separator:
172
+ significant:
173
+ strip_insignificant_zeros:
174
+ storage_units:
175
+ format:
176
+ units:
177
+ byte:
178
+ one:
179
+ other:
180
+ eb:
181
+ gb:
182
+ kb:
183
+ mb:
184
+ pb:
185
+ tb:
186
+ zb:
187
+ percentage:
188
+ format:
189
+ delimiter:
190
+ format:
191
+ separator:
192
+ precision:
193
+ format:
194
+ delimiter:
195
+ separator:
196
+ support:
197
+ array:
198
+ last_word_connector: و
199
+ two_words_connector: و
200
+ words_connector: ،
201
+ time:
202
+ am: بەیانی
203
+ formats:
204
+ default: "%a %d %b %Y %H:%M:%S %Z"
205
+ long: "%d %B %Y %H:%M"
206
+ short: "%d %b %H:%M"
207
+ pm: دوانیوەڕۆ
@@ -0,0 +1,207 @@
1
+ ku:
2
+ date:
3
+ abbr_day_names:
4
+ - ሰንበት
5
+ - ሶኒ
6
+ - ሰሉስ
7
+ - ረቡዕ
8
+ - ሓሙስ
9
+ - ዓርቢ
10
+ - ቀዳም
11
+ abbr_month_names:
12
+ -
13
+ - ጥሪ
14
+ - ለካቲት
15
+ - መጋቢት
16
+ - ሚያዝያ
17
+ - ግንቦት
18
+ - ሰነ
19
+ - ሓምለ
20
+ - ነሓሰ
21
+ - መስከረም
22
+ - ጥቅምቲ
23
+ - ሕዳር
24
+ - ታሕሳስ
25
+ day_names:
26
+ - ሰንበት
27
+ - ሶኒ
28
+ - ሰሉስ
29
+ - ረቡዕ
30
+ - ሓሙስ
31
+ - ዓርቢ
32
+ - ቀዳም
33
+ formats:
34
+ default: "%m-%d-%Y"
35
+ long: "%B %e %Y"
36
+ short: "%b %e"
37
+ month_names:
38
+ -
39
+ - ጥሪ
40
+ - ለካቲት
41
+ - መጋቢት
42
+ - ሚያዝያ
43
+ - ግንቦት
44
+ - ሰነ
45
+ - ሓምለ
46
+ - ነሓሰ
47
+ - መስከረም
48
+ - ጥቅምቲ
49
+ - ሕዳር
50
+ - ታሕሳስ
51
+ order:
52
+ - :day
53
+ - :month
54
+ - :year
55
+ datetime:
56
+ distance_in_words:
57
+ about_x_hours:
58
+ one:
59
+ other:
60
+ about_x_months:
61
+ one:
62
+ other:
63
+ about_x_years:
64
+ one:
65
+ other:
66
+ almost_x_years:
67
+ one:
68
+ other:
69
+ half_a_minute:
70
+ less_than_x_minutes:
71
+ one: ትሕቲ ሓደ ደቒቕ
72
+ other: "ትሕቲ %{count} ደቓይቕ"
73
+ less_than_x_seconds:
74
+ one: "ትሕቲ %{count} ካልኢት"
75
+ other: "ትሕቲ %{count} ካልኢት"
76
+ over_x_years:
77
+ one: "ልዕሊ %{count} ዓመት"
78
+ other: "ልዕሊ %{count} ዓመታት"
79
+ x_days:
80
+ one: "%{count} መዓልቲ"
81
+ other: "%{count} መዓልታት"
82
+ x_minutes:
83
+ one: "%{count} ደቒቕ"
84
+ other: "%{count} ደቓይቕ"
85
+ x_months:
86
+ one: "%{count} ወርሒ"
87
+ other: "%{count} ኣዋርሕ"
88
+ x_seconds:
89
+ one: "%{count} ካልኢት"
90
+ other: "%{count} ካልኢት"
91
+ x_years:
92
+ one: "%{count} ዓመት"
93
+ other: "%{count} ዓመታት"
94
+ prompts:
95
+ day: መዓልቲ
96
+ hour: ሰዓት
97
+ minute: ደቒቕ
98
+ month: ወርሒ
99
+ second: ካልኢት
100
+ year: ዓመት
101
+ errors:
102
+ format: "%{attribute} %{message}"
103
+ messages:
104
+ accepted:
105
+ blank:
106
+ confirmation:
107
+ empty:
108
+ equal_to:
109
+ even:
110
+ exclusion:
111
+ greater_than:
112
+ greater_than_or_equal_to:
113
+ in:
114
+ inclusion:
115
+ invalid:
116
+ less_than:
117
+ less_than_or_equal_to:
118
+ model_invalid:
119
+ not_a_number:
120
+ not_an_integer:
121
+ odd:
122
+ other_than:
123
+ password_too_long:
124
+ present:
125
+ required:
126
+ taken:
127
+ too_long:
128
+ one:
129
+ other:
130
+ too_short:
131
+ one:
132
+ other:
133
+ wrong_length:
134
+ one:
135
+ other:
136
+ template:
137
+ body:
138
+ header:
139
+ one:
140
+ other:
141
+ helpers:
142
+ select:
143
+ prompt:
144
+ submit:
145
+ create:
146
+ submit:
147
+ update:
148
+ number:
149
+ currency:
150
+ format:
151
+ delimiter:
152
+ format:
153
+ precision:
154
+ separator:
155
+ significant:
156
+ strip_insignificant_zeros:
157
+ unit:
158
+ human:
159
+ decimal_units:
160
+ format:
161
+ units:
162
+ billion:
163
+ million:
164
+ quadrillion:
165
+ thousand:
166
+ trillion:
167
+ unit:
168
+ format:
169
+ delimiter:
170
+ precision:
171
+ separator:
172
+ significant:
173
+ strip_insignificant_zeros:
174
+ storage_units:
175
+ format:
176
+ units:
177
+ byte:
178
+ one:
179
+ other:
180
+ eb:
181
+ gb:
182
+ kb:
183
+ mb:
184
+ pb:
185
+ tb:
186
+ zb:
187
+ percentage:
188
+ format:
189
+ delimiter:
190
+ format:
191
+ separator:
192
+ precision:
193
+ format:
194
+ delimiter:
195
+ separator:
196
+ support:
197
+ array:
198
+ last_word_connector: ን
199
+ two_words_connector: ን
200
+ words_connector: ፡
201
+ time:
202
+ am: ቅድሚ ቀትሪ
203
+ formats:
204
+ default: "%a %d %b %Y %H:%M:%S %Z"
205
+ long: "%B %d %Y %H:%M"
206
+ short: "%d %b %H:%M"
207
+ pm: ድሕሪ ቀትሪ
@@ -1,3 +1,3 @@
1
1
  module GovukAppConfig
2
- VERSION = "9.18.1".freeze
2
+ VERSION = "9.19.1".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.18.1
4
+ version: 9.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
@@ -291,14 +291,14 @@ dependencies:
291
291
  requirements:
292
292
  - - '='
293
293
  - !ruby/object:Gem::Version
294
- version: 5.1.18
294
+ version: 5.1.19
295
295
  type: :development
296
296
  prerelease: false
297
297
  version_requirements: !ruby/object:Gem::Requirement
298
298
  requirements:
299
299
  - - '='
300
300
  - !ruby/object:Gem::Version
301
- version: 5.1.18
301
+ version: 5.1.19
302
302
  - !ruby/object:Gem::Dependency
303
303
  name: simplecov
304
304
  requirement: !ruby/object:Gem::Requirement
@@ -364,13 +364,16 @@ files:
364
364
  - lib/govuk_app_config/govuk_healthcheck.rb
365
365
  - lib/govuk_app_config/govuk_healthcheck/active_record.rb
366
366
  - lib/govuk_app_config/govuk_healthcheck/checkup.rb
367
+ - lib/govuk_app_config/govuk_healthcheck/emergency_banner_redis.rb
367
368
  - lib/govuk_app_config/govuk_healthcheck/mongoid.rb
368
369
  - lib/govuk_app_config/govuk_healthcheck/rails_cache.rb
369
370
  - lib/govuk_app_config/govuk_healthcheck/redis.rb
370
371
  - lib/govuk_app_config/govuk_healthcheck/sidekiq_redis.rb
371
372
  - lib/govuk_app_config/govuk_i18n.rb
372
373
  - lib/govuk_app_config/govuk_i18n/docs/example.yml
374
+ - lib/govuk_app_config/govuk_i18n/ku.yml
373
375
  - lib/govuk_app_config/govuk_i18n/ky.yml
376
+ - lib/govuk_app_config/govuk_i18n/ti.yml
374
377
  - lib/govuk_app_config/govuk_json_logging.rb
375
378
  - lib/govuk_app_config/govuk_json_logging/rails_ext/action_controller/metal/instrumentation.rb
376
379
  - lib/govuk_app_config/govuk_open_telemetry.rb