From 8690583cf4088d0ad4ec228362237e631550c028 Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Thu, 5 Sep 2024 08:23:33 -0700 Subject: [PATCH] fix line length and ci setup --- .github/workflows/actions.yml | 4 ++-- lib/i18n_data/file_data_provider.rb | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 454f9d2..a53435f 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -14,11 +14,11 @@ jobs: include: - ruby: '3.0' # keep in sync with rubocop.yml and gemspec task: 'rubocop' - name: ${{ matrix.ruby }} rake + name: ${{ matrix.ruby }} rake ${{ matrix.task }} steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} bundler-cache: true # runs 'bundle install' and caches installed gems automatically - - run: bundle exec rake + - run: bundle exec rake ${{ matrix.task }} diff --git a/lib/i18n_data/file_data_provider.rb b/lib/i18n_data/file_data_provider.rb index ffe0426..43433e0 100644 --- a/lib/i18n_data/file_data_provider.rb +++ b/lib/i18n_data/file_data_provider.rb @@ -14,7 +14,10 @@ def codes(type, language_code) end def write_cache(provider) - languages = provider.codes(:languages, 'EN').keys + ['zh_CN', 'zh_TW', 'zh_HK', 'bn_IN', 'pt_BR', 'sr@latin', 'nb_NO'] + languages = provider.codes( + :languages, + 'EN' + ).keys + ['zh_CN', 'zh_TW', 'zh_HK', 'bn_IN', 'pt_BR', 'sr@latin', 'nb_NO'] languages.map do |language_code| [:languages, :countries].each do |type| data = provider.send(:codes, type, language_code)