From 80fe76bcee7b77919113ba30d5d9715776af24cc Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Tue, 20 Aug 2024 21:41:06 -0700 Subject: [PATCH 1/3] run with frozen strings in ci --- .github/workflows/actions.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index a20c897..1df47cf 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -19,6 +19,7 @@ jobs: name: ${{ matrix.ruby }} ${{ matrix.gemfile }} rake ${{ matrix.task }} env: BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile + RUBYOPT: "--enable-frozen-string-literal" steps: - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 From 98f1afe566ee6918350bed8149617e01a3cdb4b1 Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Tue, 20 Aug 2024 21:42:57 -0700 Subject: [PATCH 2/3] bump gems for frozen fix --- Gemfile.lock | 6 +++--- Rakefile | 4 ++-- gemfiles/rails71.gemfile.lock | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 100355e..983e89c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -31,7 +31,7 @@ GEM connection_pool (2.4.1) diff-lcs (1.3) drb (2.2.1) - forking_test_runner (1.3.0) + forking_test_runner (1.13.0) parallel_tests (>= 1.3.7) forwardable (1.3.3) i18n (1.14.5) @@ -39,8 +39,8 @@ GEM mini_portile2 (2.8.6) minitest (5.23.0) mutex_m (0.2.0) - parallel (1.21.0) - parallel_tests (2.27.0) + parallel (1.26.3) + parallel_tests (4.7.1) parallel parser (3.1.0.0) ast (~> 2.4.1) diff --git a/Rakefile b/Rakefile index 3748e6b..5629a4b 100644 --- a/Rakefile +++ b/Rakefile @@ -33,9 +33,9 @@ task :rubocop do sh "rubocop" end -desc "Bundle all" +desc "Bundle all CMD=" task :bundle_all do Dir["gemfiles/*.gemfile"].each do |gemfile| - Bundler.with_original_env { sh "BUNDLE_GEMFILE=#{gemfile} bundle" } + Bundler.with_original_env { sh "BUNDLE_GEMFILE=#{gemfile} bundle #{ENV["CMD"]}" } end end diff --git a/gemfiles/rails71.gemfile.lock b/gemfiles/rails71.gemfile.lock index a5e14e7..641c1ca 100644 --- a/gemfiles/rails71.gemfile.lock +++ b/gemfiles/rails71.gemfile.lock @@ -134,7 +134,7 @@ GEM racc (~> 1.4) nokogiri (1.16.5-x86_64-linux) racc (~> 1.4) - parallel (1.24.0) + parallel (1.26.3) parallel_tests (4.7.1) parallel parser (3.3.1.0) From 83e270e719a03b13df87c108dcb98c29b9ecabc0 Mon Sep 17 00:00:00 2001 From: Michael Grosser Date: Tue, 20 Aug 2024 22:37:45 -0700 Subject: [PATCH 3/3] fix forking_test_runner --- Gemfile.lock | 2 +- gemfiles/rails71.gemfile.lock | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 983e89c..3f5644a 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -31,7 +31,7 @@ GEM connection_pool (2.4.1) diff-lcs (1.3) drb (2.2.1) - forking_test_runner (1.13.0) + forking_test_runner (1.14.0) parallel_tests (>= 1.3.7) forwardable (1.3.3) i18n (1.14.5) diff --git a/gemfiles/rails71.gemfile.lock b/gemfiles/rails71.gemfile.lock index 641c1ca..c2864ca 100644 --- a/gemfiles/rails71.gemfile.lock +++ b/gemfiles/rails71.gemfile.lock @@ -93,7 +93,7 @@ GEM diff-lcs (1.5.1) drb (2.2.1) erubi (1.12.0) - forking_test_runner (1.13.0) + forking_test_runner (1.14.0) parallel_tests (>= 1.3.7) forwardable (1.3.3) globalid (1.2.1)