Skip to content

Commit c618427

Browse files
authored
Merge pull request #71 from grosser/grosser/fix
fix line length and ci setup
2 parents c757a75 + 8690583 commit c618427

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/actions.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@ jobs:
1414
include:
1515
- ruby: '3.0' # keep in sync with rubocop.yml and gemspec
1616
task: 'rubocop'
17-
name: ${{ matrix.ruby }} rake
17+
name: ${{ matrix.ruby }} rake ${{ matrix.task }}
1818
steps:
1919
- uses: actions/checkout@v2
2020
- uses: ruby/setup-ruby@v1
2121
with:
2222
ruby-version: ${{ matrix.ruby }}
2323
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
24-
- run: bundle exec rake
24+
- run: bundle exec rake ${{ matrix.task }}

lib/i18n_data/file_data_provider.rb

+4-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ def codes(type, language_code)
1414
end
1515

1616
def write_cache(provider)
17-
languages = provider.codes(:languages, 'EN').keys + ['zh_CN', 'zh_TW', 'zh_HK', 'bn_IN', 'pt_BR', 'sr@latin', 'nb_NO']
17+
languages = provider.codes(
18+
:languages,
19+
'EN'
20+
).keys + ['zh_CN', 'zh_TW', 'zh_HK', 'bn_IN', 'pt_BR', 'sr@latin', 'nb_NO']
1821
languages.map do |language_code|
1922
[:languages, :countries].each do |type|
2023
data = provider.send(:codes, type, language_code)

0 commit comments

Comments
 (0)