From f03d2a947a1c01dadb792a1f4745cb6e32a752d3 Mon Sep 17 00:00:00 2001 From: Geremia Taglialatela Date: Wed, 23 Oct 2024 14:55:38 +0200 Subject: [PATCH] Test against Action Pack 8.0 --- .github/workflows/ci.yaml | 9 +- Gemfile | 2 +- Gemfile.lock | 121 ++++++++-------- gemfiles/rails_61/Gemfile | 3 + gemfiles/rails_61/Gemfile.lock | 5 +- gemfiles/rails_70/Gemfile | 3 + gemfiles/rails_70/Gemfile.lock | 5 +- gemfiles/rails_71/Gemfile | 3 + gemfiles/rails_71/Gemfile.lock | 5 +- gemfiles/rails_72/Gemfile | 19 +++ gemfiles/rails_72/Gemfile.lock | 244 +++++++++++++++++++++++++++++++++ 11 files changed, 351 insertions(+), 68 deletions(-) create mode 100644 gemfiles/rails_72/Gemfile create mode 100644 gemfiles/rails_72/Gemfile.lock diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9a49e31d..91f4ff65 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -24,19 +24,24 @@ jobs: - rails_70 - rails_71 - rails_72 + - rails_80 exclude: - ruby: "3.0" rails: rails_72 + - ruby: "3.0" + rails: rails_80 + - ruby: "3.1" + rails: rails_80 steps: - uses: actions/checkout@v4 - name: Configure bundler (default) run: | echo "BUNDLE_GEMFILE=Gemfile" >> "$GITHUB_ENV" - if: matrix.rails == 'rails_72' + if: matrix.rails == 'rails_80' - name: Configure bundler (alternative) run: | echo "BUNDLE_GEMFILE=gemfiles/${{ matrix.rails }}/Gemfile" >> "$GITHUB_ENV" - if: matrix.rails != 'rails_72' + if: matrix.rails != 'rails_80' - uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby }} diff --git a/Gemfile b/Gemfile index b07845cc..accc5b41 100644 --- a/Gemfile +++ b/Gemfile @@ -4,7 +4,7 @@ source 'https://rubygems.org' gemspec path: '.' group :development do - gem 'rails', '~> 7.2.0' + gem 'rails', '~> 8.0.0.rc1' gem 'mocha' gem 'minitest' diff --git a/Gemfile.lock b/Gemfile.lock index 87feed7f..dd822307 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -10,67 +10,67 @@ PATH GEM remote: https://rubygems.org/ specs: - actioncable (7.2.1.1) - actionpack (= 7.2.1.1) - activesupport (= 7.2.1.1) + actioncable (8.0.0.rc1) + actionpack (= 8.0.0.rc1) + activesupport (= 8.0.0.rc1) nio4r (~> 2.0) websocket-driver (>= 0.6.1) zeitwerk (~> 2.6) - actionmailbox (7.2.1.1) - actionpack (= 7.2.1.1) - activejob (= 7.2.1.1) - activerecord (= 7.2.1.1) - activestorage (= 7.2.1.1) - activesupport (= 7.2.1.1) + actionmailbox (8.0.0.rc1) + actionpack (= 8.0.0.rc1) + activejob (= 8.0.0.rc1) + activerecord (= 8.0.0.rc1) + activestorage (= 8.0.0.rc1) + activesupport (= 8.0.0.rc1) mail (>= 2.8.0) - actionmailer (7.2.1.1) - actionpack (= 7.2.1.1) - actionview (= 7.2.1.1) - activejob (= 7.2.1.1) - activesupport (= 7.2.1.1) + actionmailer (8.0.0.rc1) + actionpack (= 8.0.0.rc1) + actionview (= 8.0.0.rc1) + activejob (= 8.0.0.rc1) + activesupport (= 8.0.0.rc1) mail (>= 2.8.0) rails-dom-testing (~> 2.2) - actionpack (7.2.1.1) - actionview (= 7.2.1.1) - activesupport (= 7.2.1.1) + actionpack (8.0.0.rc1) + actionview (= 8.0.0.rc1) + activesupport (= 8.0.0.rc1) nokogiri (>= 1.8.5) - racc - rack (>= 2.2.4, < 3.2) + rack (>= 2.2.4) rack-session (>= 1.0.1) rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) useragent (~> 0.16) - actiontext (7.2.1.1) - actionpack (= 7.2.1.1) - activerecord (= 7.2.1.1) - activestorage (= 7.2.1.1) - activesupport (= 7.2.1.1) + actiontext (8.0.0.rc1) + actionpack (= 8.0.0.rc1) + activerecord (= 8.0.0.rc1) + activestorage (= 8.0.0.rc1) + activesupport (= 8.0.0.rc1) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.2.1.1) - activesupport (= 7.2.1.1) + actionview (8.0.0.rc1) + activesupport (= 8.0.0.rc1) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activejob (7.2.1.1) - activesupport (= 7.2.1.1) + activejob (8.0.0.rc1) + activesupport (= 8.0.0.rc1) globalid (>= 0.3.6) - activemodel (7.2.1.1) - activesupport (= 7.2.1.1) - activerecord (7.2.1.1) - activemodel (= 7.2.1.1) - activesupport (= 7.2.1.1) + activemodel (8.0.0.rc1) + activesupport (= 8.0.0.rc1) + activerecord (8.0.0.rc1) + activemodel (= 8.0.0.rc1) + activesupport (= 8.0.0.rc1) timeout (>= 0.4.0) - activestorage (7.2.1.1) - actionpack (= 7.2.1.1) - activejob (= 7.2.1.1) - activerecord (= 7.2.1.1) - activesupport (= 7.2.1.1) + activestorage (8.0.0.rc1) + actionpack (= 8.0.0.rc1) + activejob (= 8.0.0.rc1) + activerecord (= 8.0.0.rc1) + activesupport (= 8.0.0.rc1) marcel (~> 1.0) - activesupport (7.2.1.1) + activesupport (8.0.0.rc1) base64 + benchmark (>= 0.3) bigdecimal concurrent-ruby (~> 1.0, >= 1.3.1) connection_pool (>= 2.2.5) @@ -80,9 +80,11 @@ GEM minitest (>= 5.1) securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) + uri (>= 0.13.1) ansi (1.5.0) ast (2.4.2) base64 (0.2.0) + benchmark (0.3.0) bigdecimal (3.1.8) builder (3.3.0) concurrent-ruby (1.3.4) @@ -123,9 +125,9 @@ GEM builder minitest (>= 5.0) ruby-progressbar - mocha (2.4.5) + mocha (2.5.0) ruby2_keywords (>= 0.0.5) - net-imap (0.4.17) + net-imap (0.5.0) date net-protocol net-pop (0.1.2) @@ -161,20 +163,20 @@ GEM rackup (2.1.0) rack (>= 3) webrick (~> 1.8) - rails (7.2.1.1) - actioncable (= 7.2.1.1) - actionmailbox (= 7.2.1.1) - actionmailer (= 7.2.1.1) - actionpack (= 7.2.1.1) - actiontext (= 7.2.1.1) - actionview (= 7.2.1.1) - activejob (= 7.2.1.1) - activemodel (= 7.2.1.1) - activerecord (= 7.2.1.1) - activestorage (= 7.2.1.1) - activesupport (= 7.2.1.1) + rails (8.0.0.rc1) + actioncable (= 8.0.0.rc1) + actionmailbox (= 8.0.0.rc1) + actionmailer (= 8.0.0.rc1) + actionpack (= 8.0.0.rc1) + actiontext (= 8.0.0.rc1) + actionview (= 8.0.0.rc1) + activejob (= 8.0.0.rc1) + activemodel (= 8.0.0.rc1) + activerecord (= 8.0.0.rc1) + activestorage (= 8.0.0.rc1) + activesupport (= 8.0.0.rc1) bundler (>= 1.15.0) - railties (= 7.2.1.1) + railties (= 8.0.0.rc1) rails-controller-testing (1.0.5) actionpack (>= 5.0.1.rc1) actionview (>= 5.0.1.rc1) @@ -186,9 +188,9 @@ GEM rails-html-sanitizer (1.6.0) loofah (~> 2.21) nokogiri (~> 1.14) - railties (7.2.1.1) - actionpack (= 7.2.1.1) - activesupport (= 7.2.1.1) + railties (8.0.0.rc1) + actionpack (= 8.0.0.rc1) + activesupport (= 8.0.0.rc1) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) @@ -243,6 +245,7 @@ GEM tzinfo (2.0.6) concurrent-ruby (~> 1.0) unicode-display_width (2.6.0) + uri (0.13.1) useragent (0.16.10) warning (1.4.0) webrick (1.8.2) @@ -263,7 +266,7 @@ DEPENDENCIES minitest minitest-reporters mocha - rails (~> 7.2.0) + rails (~> 8.0.0.rc1) rails-controller-testing rubocop rubocop-minitest @@ -275,4 +278,4 @@ DEPENDENCIES zeitwerk (~> 2.6.18) BUNDLED WITH - 2.5.21 + 2.5.22 diff --git a/gemfiles/rails_61/Gemfile b/gemfiles/rails_61/Gemfile index d4a2d5f3..75ebb03b 100644 --- a/gemfiles/rails_61/Gemfile +++ b/gemfiles/rails_61/Gemfile @@ -14,6 +14,9 @@ group :development do gem 'simplecov-cobertura' gem 'warning' + # FIXME: relax this dependency when Ruby 3.0 support will be dropped + gem 'net-imap', '~> 0.4.17' + # FIXME: relax this dependency when Ruby 3.1 support will be dropped gem "zeitwerk", "~> 2.6.18" end diff --git a/gemfiles/rails_61/Gemfile.lock b/gemfiles/rails_61/Gemfile.lock index ca5edfa2..62fdcca9 100644 --- a/gemfiles/rails_61/Gemfile.lock +++ b/gemfiles/rails_61/Gemfile.lock @@ -101,7 +101,7 @@ GEM builder minitest (>= 5.0) ruby-progressbar - mocha (2.4.5) + mocha (2.5.0) ruby2_keywords (>= 0.0.5) net-imap (0.4.17) date @@ -205,6 +205,7 @@ DEPENDENCIES minitest minitest-reporters mocha + net-imap (~> 0.4.17) rails (~> 6.1.0) rails-controller-testing simplecov @@ -213,4 +214,4 @@ DEPENDENCIES zeitwerk (~> 2.6.18) BUNDLED WITH - 2.5.21 + 2.5.22 diff --git a/gemfiles/rails_70/Gemfile b/gemfiles/rails_70/Gemfile index 18e1665f..08414f81 100644 --- a/gemfiles/rails_70/Gemfile +++ b/gemfiles/rails_70/Gemfile @@ -14,6 +14,9 @@ group :development do gem 'simplecov-cobertura' gem 'warning' + # FIXME: relax this dependency when Ruby 3.0 support will be dropped + gem 'net-imap', '~> 0.4.17' + # FIXME: relax this dependency when Ruby 3.1 support will be dropped gem "zeitwerk", "~> 2.6.18" end diff --git a/gemfiles/rails_70/Gemfile.lock b/gemfiles/rails_70/Gemfile.lock index b51b49c2..433149de 100644 --- a/gemfiles/rails_70/Gemfile.lock +++ b/gemfiles/rails_70/Gemfile.lock @@ -107,7 +107,7 @@ GEM builder minitest (>= 5.0) ruby-progressbar - mocha (2.4.5) + mocha (2.5.0) ruby2_keywords (>= 0.0.5) net-imap (0.4.17) date @@ -204,6 +204,7 @@ DEPENDENCIES minitest minitest-reporters mocha + net-imap (~> 0.4.17) rails (~> 7.0.0) rails-controller-testing simplecov @@ -212,4 +213,4 @@ DEPENDENCIES zeitwerk (~> 2.6.18) BUNDLED WITH - 2.5.21 + 2.5.22 diff --git a/gemfiles/rails_71/Gemfile b/gemfiles/rails_71/Gemfile index e7d32f9d..d4ec6421 100644 --- a/gemfiles/rails_71/Gemfile +++ b/gemfiles/rails_71/Gemfile @@ -14,6 +14,9 @@ group :development do gem 'simplecov-cobertura' gem 'warning' + # FIXME: relax this dependency when Ruby 3.0 support will be dropped + gem 'net-imap', '~> 0.4.17' + # FIXME: relax this dependency when Ruby 3.1 support will be dropped gem "zeitwerk", "~> 2.6.18" end diff --git a/gemfiles/rails_71/Gemfile.lock b/gemfiles/rails_71/Gemfile.lock index 52ed9a20..463f8f58 100644 --- a/gemfiles/rails_71/Gemfile.lock +++ b/gemfiles/rails_71/Gemfile.lock @@ -123,7 +123,7 @@ GEM builder minitest (>= 5.0) ruby-progressbar - mocha (2.4.5) + mocha (2.5.0) ruby2_keywords (>= 0.0.5) mutex_m (0.2.0) net-imap (0.4.17) @@ -235,6 +235,7 @@ DEPENDENCIES minitest minitest-reporters mocha + net-imap (~> 0.4.17) rails (~> 7.1.0) rails-controller-testing simplecov @@ -243,4 +244,4 @@ DEPENDENCIES zeitwerk (~> 2.6.18) BUNDLED WITH - 2.5.21 + 2.5.22 diff --git a/gemfiles/rails_72/Gemfile b/gemfiles/rails_72/Gemfile new file mode 100644 index 00000000..c3ebdbf4 --- /dev/null +++ b/gemfiles/rails_72/Gemfile @@ -0,0 +1,19 @@ +# frozen_string_literal: true +source 'https://rubygems.org' + +gemspec path: '../..' + +group :development do + gem 'rails', '~> 7.2.0' + + gem 'mocha' + gem 'minitest' + gem 'minitest-reporters' + gem 'rails-controller-testing' + gem 'simplecov', require: false + gem 'simplecov-cobertura' + gem 'warning' + + # FIXME: relax this dependency when Ruby 3.1 support will be dropped + gem "zeitwerk", "~> 2.6.18" +end diff --git a/gemfiles/rails_72/Gemfile.lock b/gemfiles/rails_72/Gemfile.lock new file mode 100644 index 00000000..c74d783e --- /dev/null +++ b/gemfiles/rails_72/Gemfile.lock @@ -0,0 +1,244 @@ +PATH + remote: ../.. + specs: + inherited_resources (2.0.1) + actionpack (>= 6.0) + has_scope (>= 0.6) + railties (>= 6.0) + responders (>= 2) + +GEM + remote: https://rubygems.org/ + specs: + actioncable (7.2.1.1) + actionpack (= 7.2.1.1) + activesupport (= 7.2.1.1) + nio4r (~> 2.0) + websocket-driver (>= 0.6.1) + zeitwerk (~> 2.6) + actionmailbox (7.2.1.1) + actionpack (= 7.2.1.1) + activejob (= 7.2.1.1) + activerecord (= 7.2.1.1) + activestorage (= 7.2.1.1) + activesupport (= 7.2.1.1) + mail (>= 2.8.0) + actionmailer (7.2.1.1) + actionpack (= 7.2.1.1) + actionview (= 7.2.1.1) + activejob (= 7.2.1.1) + activesupport (= 7.2.1.1) + mail (>= 2.8.0) + rails-dom-testing (~> 2.2) + actionpack (7.2.1.1) + actionview (= 7.2.1.1) + activesupport (= 7.2.1.1) + nokogiri (>= 1.8.5) + racc + rack (>= 2.2.4, < 3.2) + rack-session (>= 1.0.1) + rack-test (>= 0.6.3) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + useragent (~> 0.16) + actiontext (7.2.1.1) + actionpack (= 7.2.1.1) + activerecord (= 7.2.1.1) + activestorage (= 7.2.1.1) + activesupport (= 7.2.1.1) + globalid (>= 0.6.0) + nokogiri (>= 1.8.5) + actionview (7.2.1.1) + activesupport (= 7.2.1.1) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activejob (7.2.1.1) + activesupport (= 7.2.1.1) + globalid (>= 0.3.6) + activemodel (7.2.1.1) + activesupport (= 7.2.1.1) + activerecord (7.2.1.1) + activemodel (= 7.2.1.1) + activesupport (= 7.2.1.1) + timeout (>= 0.4.0) + activestorage (7.2.1.1) + actionpack (= 7.2.1.1) + activejob (= 7.2.1.1) + activerecord (= 7.2.1.1) + activesupport (= 7.2.1.1) + marcel (~> 1.0) + activesupport (7.2.1.1) + base64 + bigdecimal + concurrent-ruby (~> 1.0, >= 1.3.1) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + logger (>= 1.4.2) + minitest (>= 5.1) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) + ansi (1.5.0) + base64 (0.2.0) + bigdecimal (3.1.8) + builder (3.3.0) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) + crass (1.0.6) + date (3.3.4) + docile (1.4.1) + drb (2.2.1) + erubi (1.13.0) + globalid (1.2.1) + activesupport (>= 6.1) + has_scope (0.8.2) + actionpack (>= 5.2) + activesupport (>= 5.2) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + io-console (0.7.2) + irb (1.14.1) + rdoc (>= 4.0.0) + reline (>= 0.4.2) + logger (1.6.1) + loofah (2.22.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mail (2.8.1) + mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp + marcel (1.0.4) + mini_mime (1.1.5) + mini_portile2 (2.8.7) + minitest (5.25.1) + minitest-reporters (1.7.1) + ansi + builder + minitest (>= 5.0) + ruby-progressbar + mocha (2.5.0) + ruby2_keywords (>= 0.0.5) + net-imap (0.5.0) + date + net-protocol + net-pop (0.1.2) + net-protocol + net-protocol (0.2.2) + timeout + net-smtp (0.5.0) + net-protocol + nio4r (2.7.3) + nokogiri (1.16.7) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + nokogiri (1.16.7-aarch64-linux) + racc (~> 1.4) + nokogiri (1.16.7-arm64-darwin) + racc (~> 1.4) + nokogiri (1.16.7-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.16.7-x86_64-linux) + racc (~> 1.4) + psych (5.1.2) + stringio + racc (1.8.1) + rack (3.1.8) + rack-session (2.0.0) + rack (>= 3.0.0) + rack-test (2.1.0) + rack (>= 1.3) + rackup (2.1.0) + rack (>= 3) + webrick (~> 1.8) + rails (7.2.1.1) + actioncable (= 7.2.1.1) + actionmailbox (= 7.2.1.1) + actionmailer (= 7.2.1.1) + actionpack (= 7.2.1.1) + actiontext (= 7.2.1.1) + actionview (= 7.2.1.1) + activejob (= 7.2.1.1) + activemodel (= 7.2.1.1) + activerecord (= 7.2.1.1) + activestorage (= 7.2.1.1) + activesupport (= 7.2.1.1) + bundler (>= 1.15.0) + railties (= 7.2.1.1) + rails-controller-testing (1.0.5) + actionpack (>= 5.0.1.rc1) + actionview (>= 5.0.1.rc1) + activesupport (>= 5.0.1.rc1) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.2.1.1) + actionpack (= 7.2.1.1) + activesupport (= 7.2.1.1) + irb (~> 1.13) + rackup (>= 1.0.0) + rake (>= 12.2) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) + rake (13.2.1) + rdoc (6.7.0) + psych (>= 4.0.0) + reline (0.5.10) + io-console (~> 0.5) + responders (3.1.1) + actionpack (>= 5.2) + railties (>= 5.2) + rexml (3.3.8) + ruby-progressbar (1.13.0) + ruby2_keywords (0.0.5) + securerandom (0.3.1) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-cobertura (2.1.0) + rexml + simplecov (~> 0.19) + simplecov-html (0.13.1) + simplecov_json_formatter (0.1.4) + stringio (3.1.1) + thor (1.3.2) + timeout (0.4.1) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + useragent (0.16.10) + warning (1.4.0) + webrick (1.8.2) + websocket-driver (0.7.6) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.5) + zeitwerk (2.6.18) + +PLATFORMS + aarch64-linux + arm64-darwin + ruby + x86_64-darwin + x86_64-linux + +DEPENDENCIES + inherited_resources! + minitest + minitest-reporters + mocha + rails (~> 7.2.0) + rails-controller-testing + simplecov + simplecov-cobertura + warning + zeitwerk (~> 2.6.18) + +BUNDLED WITH + 2.5.22