10000 Replace i18n-specs with I18n health action · activeadmin/activeadmin@699d369 · GitHub
[go: up one dir, main page]

Skip to content

Commit 699d369

Browse files
committed
Replace i18n-specs with I18n health action
1 parent 8f0a3b2 commit 699d369

File tree

9 files changed

+37
-106
lines changed

9 files changed

+37
-106
lines changed

.github/workflows/i18n-health.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: I18n health
2+
3+
on:
4+
pull_request:
5+
6+
env:
7+
RUBY_VERSION: ${{ vars.I18N_RUBY_VERSION || '3.4' }}
8+
9+
jobs:
10+
i18n_health:
11+
name: Run i18n-tasks health
12+
runs-on: ubuntu-latest
13+
env:
14+
BUNDLE_ONLY: ${{ vars.I18N_BUNDLE_ONLY || 'translations' }}
15+
steps:
16+
- uses: actions/checkout@v4
< D7AE /td>17+
- uses: tj-actions/changed-files@v45
18+
id: changed-files
19+
with:
20+
files: |
21+
.github/workflows/i18n-health.yml
22+
app
23+
config/i18n-tasks.yml
24+
config/locales/*.yml
25+
lib
26+
- uses: ruby/setup-ruby@v1
27+
if: steps.changed-files.outputs.any_changed == 'true'
28+
with:
29+
ruby-version: ${{ env.RUBY_VERSION }}
30+
bundler-cache: true
31+
- name: Run i18n-tasks health
32+
if: steps.changed-files.outputs.any_changed == 'true'
33+
run: bin/i18n-tasks health

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ group :test do
3636
gem "sqlite3", platform: :mri
3737

3838
# Translations
39-
gem "i18n-tasks"
40-
gem "i18n-spec"
4139
gem "rails-i18n" # Provides default i18n for many languages
4240
end
4341

@@ -50,4 +48,8 @@ group :rubocop do
5048
gem "rubocop-rails"
5149
end
5250

51+
group :translations do
52+
gem "i18n-tasks"
53+
end
54+
5355
gemspec path: "."

Gemfile.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -192,8 +192,6 @@ GEM
192192
reline
193193
i18n (1.14.7)
194194
concurrent-ruby (~> 1.0)
195-
i18n-spec (0.6.0)
196-
iso
197195
i18n-tasks (1.0.15)
198196
activesupport (>= 4.0.2)
199197
ast (>= 2.1.0)
@@ -219,8 +217,6 @@ GEM
219217
pp (>= 0.6.0)
220218
rdoc (>= 4.0.0)
221219
reline (>= 0.4.2)
222-
iso (0.4.0)
223-
i18n
224220
json (2.11.3)
225221
kaminari (1.2.2)
226222
activesupport (>= 4.1.0)
@@ -464,7 +460,6 @@ DEPENDENCIES
464460
devise
465461
draper
466462
formtastic (>= 5.0.0)
467-
i18n-spec
468463
i18n-tasks
469464
importmap-rails
470465
launchy

gemfiles/rails_70/Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ group :test do
3939
gem "sqlite3", "~> 1.7", platform: :mri
4040

4141
# Translations
42-
gem "i18n-tasks"
43-
gem "i18n-spec"
4442
gem "rails-i18n" # Provides default i18n for many languages
4543
end
4644

gemfiles/rails_70/Gemfile.lock

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,6 @@ GEM
8787
public_suffix (>= 2.0.2, < 7.0)
8888
arbre (2.2.0)
8989
activesupport (>= 7.0)
90-
ast (2.4.3)
9190
base64 (0.2.0)
9291
bcrypt (3.1.20)
9392
bigdecimal (3.1.9)
@@ -178,23 +177,8 @@ GEM
178177
has_scope (0.8.2)
179178
actionpack (>= 5.2)
180179
activesupport (>= 5.2)
181-
highline (3.1.2)
182-
reline
183180
i18n (1.14.7)
184181
concurrent-ruby (~> 1.0)
185-
i18n-spec (0.6.0)
186-
iso
187-
i18n-tasks (1.0.15)
188-
activesupport (>= 4.0.2)
189-
ast (>= 2.1.0)
190-
erubi
191-
highline (>= 2.0.0)
192-
i18n
193-
parser (>= 3.2.2.1)
194-
rails-i18n
195-
rainbow (>= 2.2.2, < 4.0)
196-
ruby-progressbar (~> 1.8, >= 1.8.1)
197-
terminal-table (>= 1.5.1)
198182
importmap-rails (2.1.0)
199183
actionpack (>= 6.0.0)
200184
activesupport (>= 6.0.0)
@@ -204,9 +188,6 @@ GEM
204188
has_scope (>= 0.6)
205189
railties (>= 7.0)
206190
responders (>= 2)
207-
io-console (0.8.0)
208-
iso (0.4.0)
209-
i18n
210191
kaminari (1.2.2)
211192
activesupport (>= 4.1.0)
212193
kaminari-actionview (= 1.2.2)
@@ -260,9 +241,6 @@ GEM
260241
parallel (1.27.0)
261242
parallel_tests (4.10.1)
262243
parallel
263-
parser (3.3.8.0)
264-
ast (~> 2.4.1)
265-
racc
266244
public_suffix (6.0.2)
267245
pundit (2.5.0)
268246
activesupport (>= 3.0.0)
@@ -301,15 +279,12 @@ GEM
301279
rake (>= 12.2)
302280
thor (~> 1.0)
303281
zeitwerk (~> 2.5)
304-
rainbow (3.1.1)
305282
rake (13.2.1)
306283
ransack (4.3.0)
307284
activerecord (>= 6.1.5)
308285
activesupport (>= 6.1.5)
309286
i18n
310287
regexp_parser (2.10.0)
311-
reline (0.6.1)
312-
io-console (~> 0.5)
313288
request_store (1.7.0)
314289
rack (>= 1.4)
315290
responders (3.1.1)
@@ -333,7 +308,6 @@ GEM
333308
rspec-mocks (~> 3.13)
334309
rspec-support (~> 3.13)
335310
rspec-support (3.13.3)
336-
ruby-progressbar (1.13.0)
337311
ruby2_keywords (0.0.5)
338312
simplecov (0.22.0)
339313
docile (~> 1.1)
@@ -358,15 +332,10 @@ GEM
358332
sqlite3 (1.7.3-x86_64-linux)
359333
sys-uname (1.3.1)
360334
ffi (~> 1.1)
361-
terminal-table (4.0.0)
362-
unicode-display_width (>= 1.1.1, < 4)
363335
thor (1.3.2)
364336
timeout (0.4.3)
365337
tzinfo (2.0.6)
366338
concurrent-ruby (~> 1.0)
367-
unicode-display_width (3.1.4)
368-
unicode-emoji (~> 4.0, >= 4.0.4)
369-
unicode-emoji (4.0.4)
370339
warden (1.2.9)
371340
rack (>= 2.0.9)
372341
webrick (1.9.1)
@@ -395,8 +364,6 @@ DEPENDENCIES
395364
database_cleaner-active_record
396365
devise
397366
draper
398-
i18n-spec
399-
i18n-tasks
400367
importmap-rails
401368
launchy
402369
parallel_tests (~> 4.9)

gemfiles/rails_71/Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ group :test do
3939
gem "sqlite3", platform: :mri
4040

4141
# Translations
42-
gem "i18n-tasks"
43-
gem "i18n-spec"
4442
gem "rails-i18n" # Provides default i18n for many languages
4543
end
4644

gemfiles/rails_71/Gemfile.lock

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ GEM
9999
public_suffix (>= 2.0.2, < 7.0)
100100
arbre (2.2.0)
101101 741A
activesupport (>= 7.0)
102-
ast (2.4.3)
103102
base64 (0.2.0)
104103
bcrypt (3.1.20)
105104
benchmark (0.4.0)
@@ -193,23 +192,8 @@ GEM
193192
has_scope (0.8.2)
194193
actionpack (>= 5.2)
195194
activesupport (>= 5.2)
196-
highline (3.1.2)
197-
reline
198195
i18n (1.14.7)
199196
concurrent-ruby (~> 1.0)
200-
i18n-spec (0.6.0)
201-
iso
202-
i18n-tasks (1.0.15)
203-
activesupport (>= 4.0.2)
204-
ast (>= 2.1.0)
205-
erubi
206-
highline (>= 2.0.0)
207-
i18n
208-
parser (>= 3.2.2.1)
209-
rails-i18n
210-
rainbow (>= 2.2.2, < 4.0)
211-
ruby-progressbar (~> 1.8, >= 1.8.1)
212-
terminal-table (>= 1.5.1)
213197
importmap-rails (2.1.0)
214198
actionpack (>= 6.0.0)
215199
activesupport (>= 6.0.0)
@@ -224,8 +208,6 @@ GEM
224208
pp (>= 0.6.0)
225209
rdoc (>= 4.0.0)
226210
reline (>= 0.4.2)
227-
iso (0.4.0)
228-
i18n
229211
kaminari (1.2.2)
230212
activesupport (>= 4.1.0)
231213
kaminari-actionview (= 1.2.2)
@@ -279,9 +261,6 @@ GEM
279261
parallel (1.27.0)
280262
parallel_tests (4.10.1)
281263
parallel
282-
parser (3.3.8.0)
283-
ast (~> 2.4.1)
284-
racc
285264
pp (0.6.2)
286265
prettyprint
287266
prettyprint (0.2.0)
@@ -332,7 +311,6 @@ GEM
332311
rake (>= 12.2)
333312
thor (~> 1.0, >= 1.2.2)
334313
zeitwerk (~> 2.6)
335-
rainbow (3.1.1)
336314
rake (13.2.1)
337315
ransack (4.3.0)
338316
activerecord (>= 6.1.5)
@@ -366,7 +344,6 @@ GEM
366344
rspec-mocks (~> 3.13)
367345
rspec-support (~> 3.13)
368346
rspec-support (3.13.3)
369-
ruby-progressbar (1.13.0)
370347
ruby2_keywords (0.0.5)
371348
securerandom (0.4.1)
372349
simplecov (0.22.0)
@@ -393,15 +370,10 @@ GEM
393370
stringio (3.1.7)
394371
sys-uname (1.3.1)
395372
ffi (~> 1.1)
396-
terminal-table (4.0.0)
397-
unicode-display_width (>= 1.1.1, < 4)
398373
thor (1.3.2)
399374
timeout (0.4.3)
400375
tzinfo (2.0.6)
401376
concurrent-ruby (~> 1.0)
402-
unicode-display_width (3.1.4)
403-
unicode-emoji (~> 4.0, >= 4.0.4)
404-
unicode-emoji (4.0.4)
405377
warden (1.2.9)
406378
rack (>= 2.0.9)
407379
webrick (1.9.1)
@@ -430,8 +402,6 @@ DEPENDENCIES
430402
devise
431403
draper
432404
formtastic (>= 5.0.0)
433-
i18n-spec
434-
i18n-tasks
435405
importmap-rails
436406
launchy
437407
parallel_tests (~> 4.9)

gemfiles/rails_72/Gemfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ group :test do
3939
gem "sqlite3", platform: :mri
4040

4141
# Translations
42-
gem "i18n-tasks"
43-
gem "i18n-spec"
4442
gem "rails-i18n" # Provides default i18n for many languages
4543
end
4644

gemfiles/rails_72/Gemfile.lock

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ GEM
9393
public_suffix (>= 2.0.2, < 7.0)
9494
arbre (2.2.0)
9595
activesupport (>= 7.0)
96-
ast (2.4.3)
9796
base64 (0.2.0)
9897
bcrypt (3.1.20)
9998
benchmark (0.4.0)
@@ -187,23 +186,8 @@ GEM
187186
has_scope (0.8.2)
188187
actionpack (>= 5.2)
189188
activesupport (>= 5.2)
190-
highline (3.1.2)
191-
reline
192189
i18n (1.14.7)
193190
concurrent-ruby (~> 1.0)
194-
i18n-spec (0.6.0)
195-
iso
196-
i18n-tasks (1.0.15)
197-
activesupport (>= 4.0.2)
198-
ast (>= 2.1.0)
199-
erubi
200-
highline (>= 2.0.0)
201-
i18n
202-
parser (>= 3.2.2.1)
203-
rails-i18n
204-
rainbow (>= 2.2.2, < 4.0)
205-
ruby-progressbar (~> 1.8, >= 1.8.1)
206-
terminal-table (>= 1.5.1)
207191
importmap-rails (2.1.0)
208192
actionpack (>= 6.0.0)
209193
activesupport (>= 6.0.0)
@@ -218,8 +202,6 @@ GEM
218202
pp (>= 0.6.0)
219203
rdoc (>= 4.0.0)
220204
reline (>= 0.4.2)
221-
iso (0.4.0)
222-
i18n
223205
kaminari (1.2.2)
224206
activesupport (>= 4.1.0)
225207
kaminari-actionview (= 1.2.2)
@@ -272,9 +254,6 @@ GEM
272254
parallel (1.27.0)
273255
parallel_tests (4.10.1)
274256
parallel
275-
parser (3.3.8.0)
276-
ast (~> 2.4.1)
277-
racc
278257
pp (0.6.2)
279258
prettyprint
280259
prettyprint (0.2.0)
@@ -325,7 +304,6 @@ GEM
325304
rake (>= 12.2)
326305
thor (~> 1.0, >= 1.2.2)
327306
zeitwerk (~> 2.6)
328-
rainbow (3.1.1)
329307
rake (13.2.1)
330308
ransack (4.3.0)
331309
activerecord (>= 6.1.5)
@@ -359,7 +337,6 @@ GEM
359337
rspec-mocks (~> 3.13)
360338
rspec-support (~> 3.13)
361339
rspec-support (3.13.3)
362-
ruby-progressbar (1.13.0)
363340
ruby2_keywords (0.0.5)
364341
securerandom (0.4.1)
365342
simplecov (0.22.0)
@@ -386,15 +363,10 @@ GEM
386363
stringio (3.1.7)
387364
sys-uname (1.3.1)
388365
ffi (~> 1.1)
389-
terminal-table (4.0.0)
390-
unicode-display_width (>= 1.1.1, < 4)
391366
thor (1.3.2)
392367
timeout (0.4.3)
393368
tzinfo (2.0.6)
394369
concurrent-ruby (~> 1.0)
395-
unicode-display_width (3.1.4)
396-
unicode-emoji (~> 4.0, >= 4.0.4)
397-
unicode-emoji (4.0.4)
398370
useragent (0.16.11)
399371
warden (1.2.9)
400372
rack (>= 2.0.9)
@@ -424,8 +396,6 @@ DEPENDENCIES
424396
devise
425397
draper
426398
formtastic (>= 5.0.0)
427-
i18n-spec
428-
i18n-tasks
429399
importmap-rails
430400
launchy
431401
parallel_tests (~> 4.9)

0 commit comments

Comments
 (0)
0