diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f98943b..add5f7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,17 +13,40 @@ jobs: - uses: ruby/setup-ruby@v1 with: bundler-cache: true - ruby-version: "3.3.6" + ruby-version: "3.4.1" - run: bundle exec rubocop test: runs-on: ubuntu-latest strategy: matrix: - ruby: ["3.0", "3.1", "3.2", "3.3"] + ruby: + [ + { version: "3.1", gemfile: activerecord_7 }, + { version: "3.1", gemfile: activerecord_7_1 }, + { version: "3.1", gemfile: activerecord_7_2 }, + { version: "3.2", gemfile: activerecord_7 }, + { version: "3.2", gemfile: activerecord_7_1 }, + { version: "3.2", gemfile: activerecord_7_2 }, + { version: "3.2", gemfile: activerecord_8 }, + { version: "3.2", gemfile: activerecord_main }, + { version: "3.3", gemfile: activerecord_7 }, + { version: "3.3", gemfile: activerecord_7_1 }, + { version: "3.3", gemfile: activerecord_7_2 }, + { version: "3.3", gemfile: activerecord_8 }, + { version: "3.3", gemfile: activerecord_main }, + { version: "3.4", gemfile: activerecord_7 }, + { version: "3.4", gemfile: activerecord_7_1 }, + { version: "3.4", gemfile: activerecord_7_2 }, + { version: "3.4", gemfile: activerecord_8 }, + { version: "3.4", gemfile: activerecord_main }, + ] + env: + BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.ruby.gemfile }}.gemfile + BUNDLE_PATH_RELATIVE_TO_CWD: true steps: - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: bundler-cache: true - ruby-version: ${{ matrix.ruby }} + ruby-version: ${{ matrix.ruby.version }} - run: bundle exec rake test diff --git a/.rubocop.yml b/.rubocop.yml index b3fa3a9..a62ddf5 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,10 +2,16 @@ inherit_gem: boxt_rubocop: - rspec.yml +inherit_mode: + merge: + - Exclude + require: - boxt_rubocop - rubocop-rake - rubocop-rspec AllCops: - TargetRubyVersion: 3.0 + TargetRubyVersion: 3.1 + Exclude: + - gemfiles/**/* diff --git a/.ruby-version b/.ruby-version index 9c25013..47b322c 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.3.6 +3.4.1 diff --git a/Appraisals b/Appraisals new file mode 100644 index 0000000..39b987f --- /dev/null +++ b/Appraisals @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Currently doesn't work with Appraisal 2.5.0 and Ruby >= 3.1 +# customize_gemfiles do +# { +# heading: <<~HEADING +# # frozen_string_literal: true +# +# `%s` has been generated by Appraisal, do NOT modify it or `%s` directly! +# Make the changes to the "%s" block in `Appraisals` instead. +# HEADING +# } +# end + +appraise "activerecord-7" do + gem "activerecord", "~> 7.0.0" + gem "sqlite3", "~> 1.7" +end + +appraise "activerecord-7-1" do + gem "activerecord", "~> 7.1.0" + gem "sqlite3", "~> 1.7" +end + +appraise "activerecord-7-2" do + gem "activerecord", "~> 7.2.0" + gem "sqlite3", "~> 1.7" +end + +appraise "activerecord-8" do + gem "activerecord", "~> 8.0.0" + gem "sqlite3", "~> 2.0" +end + +appraise "activerecord-main" do + gem "activerecord", github: "rails/rails", branch: "main" + gem "sqlite3", "~> 2.0" +end diff --git a/Gemfile b/Gemfile index 011ce52..74727fc 100644 --- a/Gemfile +++ b/Gemfile @@ -4,9 +4,8 @@ source "https://rubygems.org" gemspec -group :development do - gem "boxt_rubocop", "2.15.0" - gem "rake", "~> 13.2" - gem "rspec", "~> 3.13" - gem "simplecov", "~> 0.22" -end +gem "appraisal", "~> 2.5" +gem "boxt_rubocop", "2.15.0" +gem "rake", "~> 13.2" +gem "rspec", "~> 3.13" +gem "simplecov", "~> 0.22" diff --git a/Gemfile.lock b/Gemfile.lock index 7763dcd..7a07ff3 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -7,31 +7,39 @@ PATH GEM remote: https://rubygems.org/ specs: - actionview (7.1.3.4) - activesupport (= 7.1.3.4) + actionview (8.0.1) + activesupport (= 8.0.1) builder (~> 3.1) erubi (~> 1.11) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - activemodel (7.1.3.4) - activesupport (= 7.1.3.4) - activerecord (7.1.3.4) - activemodel (= 7.1.3.4) - activesupport (= 7.1.3.4) + activemodel (8.0.1) + activesupport (= 8.0.1) + activerecord (8.0.1) + activemodel (= 8.0.1) + activesupport (= 8.0.1) timeout (>= 0.4.0) - activesupport (7.1.3.4) + activesupport (8.0.1) base64 + benchmark (>= 0.3) bigdecimal - concurrent-ruby (~> 1.0, >= 1.0.2) + concurrent-ruby (~> 1.0, >= 1.3.1) connection_pool (>= 2.2.5) drb i18n (>= 1.6, < 2) + logger (>= 1.4.2) minitest (>= 5.1) - mutex_m - tzinfo (~> 2.0) + securerandom (>= 0.3) + tzinfo (~> 2.0, >= 2.0.5) + uri (>= 0.13.1) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) ast (2.4.2) base64 (0.2.0) - bigdecimal (3.1.8) + benchmark (0.4.0) + bigdecimal (3.1.9) boxt_rubocop (2.15.0) rubocop (= 1.69.0) rubocop-factory_bot (= 2.26.1) @@ -45,14 +53,14 @@ GEM connection_pool (2.4.1) crass (1.0.6) diff-lcs (1.5.1) - docile (1.4.0) + docile (1.4.1) drb (2.2.1) - erubi (1.13.0) + erubi (1.13.1) faker (3.5.1) i18n (>= 1.8.11, < 2) i18n (1.14.6) concurrent-ruby (~> 1.0) - json (2.9.0) + json (2.9.1) kaminari (1.2.2) activesupport (>= 4.1.0) kaminari-actionview (= 1.2.2) @@ -66,16 +74,16 @@ GEM kaminari-core (= 1.2.2) kaminari-core (1.2.2) language_server-protocol (3.17.0.3) - loofah (2.22.0) + logger (1.6.4) + loofah (2.24.0) crass (~> 1.0.2) nokogiri (>= 1.12.0) minitest (5.25.4) - mutex_m (0.3.0) - nokogiri (1.16.6-arm64-darwin) + nokogiri (1.18.1-arm64-darwin) racc (~> 1.4) - nokogiri (1.16.6-x86_64-darwin) + nokogiri (1.18.1-x86_64-darwin) racc (~> 1.4) - nokogiri (1.16.6-x86_64-linux) + nokogiri (1.18.1-x86_64-linux-gnu) racc (~> 1.4) parallel (1.26.3) parser (3.3.6.0) @@ -87,25 +95,25 @@ GEM activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.6.0) + rails-html-sanitizer (1.6.2) loofah (~> 2.21) - nokogiri (~> 1.14) + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) rainbow (3.1.1) rake (13.2.1) - regexp_parser (2.9.3) + regexp_parser (2.10.0) rspec (3.13.0) rspec-core (~> 3.13.0) rspec-expectations (~> 3.13.0) rspec-mocks (~> 3.13.0) - rspec-core (3.13.0) + rspec-core (3.13.2) rspec-support (~> 3.13.0) - rspec-expectations (3.13.1) + rspec-expectations (3.13.3) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-mocks (3.13.1) + rspec-mocks (3.13.2) diff-lcs (>= 1.2.0, < 2.0) rspec-support (~> 3.13.0) - rspec-support (3.13.1) + rspec-support (3.13.2) rubocop (1.69.0) json (~> 2.3) language_server-protocol (>= 3.17.0) @@ -116,7 +124,7 @@ GEM rubocop-ast (>= 1.36.1, < 2.0) ruby-progressbar (~> 1.7) unicode-display_width (>= 2.4.0, < 4.0) - rubocop-ast (1.36.2) + rubocop-ast (1.37.0) parser (>= 3.3.1.0) rubocop-factory_bot (2.26.1) rubocop (~> 1.61) @@ -136,31 +144,29 @@ GEM rubocop-rspec (3.2.0) rubocop (~> 1.61) ruby-progressbar (1.13.0) + securerandom (0.4.1) simplecov (0.22.0) docile (~> 1.1) simplecov-html (~> 0.11) simplecov_json_formatter (~> 0.1) - simplecov-html (0.12.3) + simplecov-html (0.13.1) simplecov_json_formatter (0.1.4) - timeout (0.4.1) + thor (1.3.2) + timeout (0.4.3) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (3.1.2) + unicode-display_width (3.1.3) unicode-emoji (~> 4.0, >= 4.0.4) unicode-emoji (4.0.4) + uri (1.0.2) PLATFORMS - arm64-darwin-20 - arm64-darwin-21 - arm64-darwin-22 - arm64-darwin-23 - arm64-darwin-24 - x86_64-darwin-19 - x86_64-darwin-20 - x86_64-darwin-21 + arm64-darwin + x86_64-darwin x86_64-linux DEPENDENCIES + appraisal (~> 2.5) boxt_rubocop (= 2.15.0) kaminari-api-meta-data! rake (~> 13.2) @@ -168,4 +174,4 @@ DEPENDENCIES simplecov (~> 0.22) BUNDLED WITH - 2.5.22 + 2.6.2 diff --git a/gemfiles/activerecord_7.gemfile b/gemfiles/activerecord_7.gemfile new file mode 100644 index 0000000..1aefd11 --- /dev/null +++ b/gemfiles/activerecord_7.gemfile @@ -0,0 +1,13 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal", "~> 2.5" +gem "boxt_rubocop", "2.15.0" +gem "rake", "~> 13.2" +gem "rspec", "~> 3.13" +gem "simplecov", "~> 0.22" +gem "activerecord", "~> 7.0.0" +gem "sqlite3", "~> 1.7" + +gemspec path: "../" diff --git a/gemfiles/activerecord_7.gemfile.lock b/gemfiles/activerecord_7.gemfile.lock new file mode 100644 index 0000000..1a99e19 --- /dev/null +++ b/gemfiles/activerecord_7.gemfile.lock @@ -0,0 +1,170 @@ +PATH + remote: .. + specs: + kaminari-api-meta-data (2.0.0) + kaminari (~> 1.1) + +GEM + remote: https://rubygems.org/ + specs: + actionview (7.0.8.7) + activesupport (= 7.0.8.7) + builder (~> 3.1) + erubi (~> 1.4) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.1, >= 1.2.0) + activemodel (7.0.8.7) + activesupport (= 7.0.8.7) + activerecord (7.0.8.7) + activemodel (= 7.0.8.7) + activesupport (= 7.0.8.7) + activesupport (7.0.8.7) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + ast (2.4.2) + boxt_rubocop (2.15.0) + rubocop (= 1.69.0) + rubocop-factory_bot (= 2.26.1) + rubocop-faker (= 1.2.0) + rubocop-performance (= 1.23.0) + rubocop-rails (= 2.27.0) + rubocop-rake (= 0.6.0) + rubocop-rspec (= 3.2.0) + builder (3.3.0) + concurrent-ruby (1.3.4) + crass (1.0.6) + diff-lcs (1.5.1) + docile (1.4.1) + erubi (1.13.1) + faker (3.5.1) + i18n (>= 1.8.11, < 2) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + json (2.9.1) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + language_server-protocol (3.17.0.3) + loofah (2.24.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mini_portile2 (2.8.8) + minitest (5.25.4) + nokogiri (1.18.1-arm64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-linux-gnu) + racc (~> 1.4) + parallel (1.26.3) + parser (3.3.6.0) + ast (~> 2.4.1) + racc + racc (1.8.1) + rack (3.1.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.2) + loofah (~> 2.21) + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) + rainbow (3.1.1) + rake (13.2.1) + regexp_parser (2.10.0) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + rubocop (1.69.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.36.1, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.37.0) + parser (>= 3.3.1.0) + rubocop-factory_bot (2.26.1) + rubocop (~> 1.61) + rubocop-faker (1.2.0) + faker (>= 2.12.0) + rubocop (>= 1.13.0) + rubocop-performance (1.23.0) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rails (2.27.0) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.52.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rake (0.6.0) + rubocop (~> 1.0) + rubocop-rspec (3.2.0) + rubocop (~> 1.61) + ruby-progressbar (1.13.0) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.13.1) + simplecov_json_formatter (0.1.4) + sqlite3 (1.7.3) + mini_portile2 (~> 2.8.0) + thor (1.3.2) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (3.1.3) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) + +PLATFORMS + arm64-darwin-20 + arm64-darwin-21 + arm64-darwin-22 + arm64-darwin-23 + arm64-darwin-24 + x86_64-darwin-19 + x86_64-darwin-20 + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activerecord (~> 7.0.0) + appraisal (~> 2.5) + boxt_rubocop (= 2.15.0) + kaminari-api-meta-data! + rake (~> 13.2) + rspec (~> 3.13) + simplecov (~> 0.22) + sqlite3 (~> 1.7) + +BUNDLED WITH + 2.6.2 diff --git a/gemfiles/activerecord_7_1.gemfile b/gemfiles/activerecord_7_1.gemfile new file mode 100644 index 0000000..7ae5b9d --- /dev/null +++ b/gemfiles/activerecord_7_1.gemfile @@ -0,0 +1,13 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal", "~> 2.5" +gem "boxt_rubocop", "2.15.0" +gem "rake", "~> 13.2" +gem "rspec", "~> 3.13" +gem "simplecov", "~> 0.22" +gem "activerecord", "~> 7.1.0" +gem "sqlite3", "~> 1.7" + +gemspec path: "../" diff --git a/gemfiles/activerecord_7_1.gemfile.lock b/gemfiles/activerecord_7_1.gemfile.lock new file mode 100644 index 0000000..29d5a0d --- /dev/null +++ b/gemfiles/activerecord_7_1.gemfile.lock @@ -0,0 +1,188 @@ +PATH + remote: .. + specs: + kaminari-api-meta-data (2.0.0) + kaminari (~> 1.1) + +GEM + remote: https://rubygems.org/ + specs: + actionview (7.1.5.1) + activesupport (= 7.1.5.1) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activemodel (7.1.5.1) + activesupport (= 7.1.5.1) + activerecord (7.1.5.1) + activemodel (= 7.1.5.1) + activesupport (= 7.1.5.1) + timeout (>= 0.4.0) + activesupport (7.1.5.1) + base64 + benchmark (>= 0.3) + bigdecimal + concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb + i18n (>= 1.6, < 2) + logger (>= 1.4.2) + minitest (>= 5.1) + mutex_m + securerandom (>= 0.3) + tzinfo (~> 2.0) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + ast (2.4.2) + base64 (0.2.0) + benchmark (0.4.0) + bigdecimal (3.1.9) + boxt_rubocop (2.15.0) + rubocop (= 1.69.0) + rubocop-factory_bot (= 2.26.1) + rubocop-faker (= 1.2.0) + rubocop-performance (= 1.23.0) + rubocop-rails (= 2.27.0) + rubocop-rake (= 0.6.0) + rubocop-rspec (= 3.2.0) + builder (3.3.0) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) + crass (1.0.6) + diff-lcs (1.5.1) + docile (1.4.1) + drb (2.2.1) + erubi (1.13.1) + faker (3.5.1) + i18n (>= 1.8.11, < 2) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + json (2.9.1) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + language_server-protocol (3.17.0.3) + logger (1.6.4) + loofah (2.24.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mini_portile2 (2.8.8) + minitest (5.25.4) + mutex_m (0.3.0) + nokogiri (1.18.1-arm64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-linux-gnu) + racc (~> 1.4) + parallel (1.26.3) + parser (3.3.6.0) + ast (~> 2.4.1) + racc + racc (1.8.1) + rack (3.1.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.2) + loofah (~> 2.21) + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) + rainbow (3.1.1) + rake (13.2.1) + regexp_parser (2.10.0) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + rubocop (1.69.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.36.1, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.37.0) + parser (>= 3.3.1.0) + rubocop-factory_bot (2.26.1) + rubocop (~> 1.61) + rubocop-faker (1.2.0) + faker (>= 2.12.0) + rubocop (>= 1.13.0) + rubocop-performance (1.23.0) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rails (2.27.0) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.52.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rake (0.6.0) + rubocop (~> 1.0) + rubocop-rspec (3.2.0) + rubocop (~> 1.61) + ruby-progressbar (1.13.0) + securerandom (0.4.1) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.13.1) + simplecov_json_formatter (0.1.4) + sqlite3 (1.7.3) + mini_portile2 (~> 2.8.0) + thor (1.3.2) + timeout (0.4.3) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (3.1.3) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) + +PLATFORMS + arm64-darwin-20 + arm64-darwin-21 + arm64-darwin-22 + arm64-darwin-23 + arm64-darwin-24 + x86_64-darwin-19 + x86_64-darwin-20 + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activerecord (~> 7.1.0) + appraisal (~> 2.5) + boxt_rubocop (= 2.15.0) + kaminari-api-meta-data! + rake (~> 13.2) + rspec (~> 3.13) + simplecov (~> 0.22) + sqlite3 (~> 1.7) + +BUNDLED WITH + 2.6.2 diff --git a/gemfiles/activerecord_7_2.gemfile b/gemfiles/activerecord_7_2.gemfile new file mode 100644 index 0000000..2e40c3b --- /dev/null +++ b/gemfiles/activerecord_7_2.gemfile @@ -0,0 +1,13 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal", "~> 2.5" +gem "boxt_rubocop", "2.15.0" +gem "rake", "~> 13.2" +gem "rspec", "~> 3.13" +gem "simplecov", "~> 0.22" +gem "activerecord", "~> 7.2.0" +gem "sqlite3", "~> 1.7" + +gemspec path: "../" diff --git a/gemfiles/activerecord_7_2.gemfile.lock b/gemfiles/activerecord_7_2.gemfile.lock new file mode 100644 index 0000000..eca5469 --- /dev/null +++ b/gemfiles/activerecord_7_2.gemfile.lock @@ -0,0 +1,186 @@ +PATH + remote: .. + specs: + kaminari-api-meta-data (2.0.0) + kaminari (~> 1.1) + +GEM + remote: https://rubygems.org/ + specs: + actionview (7.2.2.1) + activesupport (= 7.2.2.1) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activemodel (7.2.2.1) + activesupport (= 7.2.2.1) + activerecord (7.2.2.1) + activemodel (= 7.2.2.1) + activesupport (= 7.2.2.1) + timeout (>= 0.4.0) + activesupport (7.2.2.1) + base64 + benchmark (>= 0.3) + 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) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + ast (2.4.2) + base64 (0.2.0) + benchmark (0.4.0) + bigdecimal (3.1.9) + boxt_rubocop (2.15.0) + rubocop (= 1.69.0) + rubocop-factory_bot (= 2.26.1) + rubocop-faker (= 1.2.0) + rubocop-performance (= 1.23.0) + rubocop-rails (= 2.27.0) + rubocop-rake (= 0.6.0) + rubocop-rspec (= 3.2.0) + builder (3.3.0) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) + crass (1.0.6) + diff-lcs (1.5.1) + docile (1.4.1) + drb (2.2.1) + erubi (1.13.1) + faker (3.5.1) + i18n (>= 1.8.11, < 2) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + json (2.9.1) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + language_server-protocol (3.17.0.3) + logger (1.6.4) + loofah (2.24.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mini_portile2 (2.8.8) + minitest (5.25.4) + nokogiri (1.18.1-arm64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-linux-gnu) + racc (~> 1.4) + parallel (1.26.3) + parser (3.3.6.0) + ast (~> 2.4.1) + racc + racc (1.8.1) + rack (3.1.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.2) + loofah (~> 2.21) + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) + rainbow (3.1.1) + rake (13.2.1) + regexp_parser (2.10.0) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + rubocop (1.69.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.36.1, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.37.0) + parser (>= 3.3.1.0) + rubocop-factory_bot (2.26.1) + rubocop (~> 1.61) + rubocop-faker (1.2.0) + faker (>= 2.12.0) + rubocop (>= 1.13.0) + rubocop-performance (1.23.0) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rails (2.27.0) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.52.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rake (0.6.0) + rubocop (~> 1.0) + rubocop-rspec (3.2.0) + rubocop (~> 1.61) + ruby-progressbar (1.13.0) + securerandom (0.4.1) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.13.1) + simplecov_json_formatter (0.1.4) + sqlite3 (1.7.3) + mini_portile2 (~> 2.8.0) + thor (1.3.2) + timeout (0.4.3) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (3.1.3) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) + +PLATFORMS + arm64-darwin-20 + arm64-darwin-21 + arm64-darwin-22 + arm64-darwin-23 + arm64-darwin-24 + x86_64-darwin-19 + x86_64-darwin-20 + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activerecord (~> 7.2.0) + appraisal (~> 2.5) + boxt_rubocop (= 2.15.0) + kaminari-api-meta-data! + rake (~> 13.2) + rspec (~> 3.13) + simplecov (~> 0.22) + sqlite3 (~> 1.7) + +BUNDLED WITH + 2.6.2 diff --git a/gemfiles/activerecord_8.gemfile b/gemfiles/activerecord_8.gemfile new file mode 100644 index 0000000..dcba6cf --- /dev/null +++ b/gemfiles/activerecord_8.gemfile @@ -0,0 +1,13 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal", "~> 2.5" +gem "boxt_rubocop", "2.15.0" +gem "rake", "~> 13.2" +gem "rspec", "~> 3.13" +gem "simplecov", "~> 0.22" +gem "activerecord", "~> 8.0.0" +gem "sqlite3", "~> 2.0" + +gemspec path: "../" diff --git a/gemfiles/activerecord_8.gemfile.lock b/gemfiles/activerecord_8.gemfile.lock new file mode 100644 index 0000000..b0ddbec --- /dev/null +++ b/gemfiles/activerecord_8.gemfile.lock @@ -0,0 +1,188 @@ +PATH + remote: .. + specs: + kaminari-api-meta-data (2.0.0) + kaminari (~> 1.1) + +GEM + remote: https://rubygems.org/ + specs: + actionview (8.0.1) + activesupport (= 8.0.1) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activemodel (8.0.1) + activesupport (= 8.0.1) + activerecord (8.0.1) + activemodel (= 8.0.1) + activesupport (= 8.0.1) + timeout (>= 0.4.0) + activesupport (8.0.1) + base64 + benchmark (>= 0.3) + 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) + uri (>= 0.13.1) + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + ast (2.4.2) + base64 (0.2.0) + benchmark (0.4.0) + bigdecimal (3.1.9) + boxt_rubocop (2.15.0) + rubocop (= 1.69.0) + rubocop-factory_bot (= 2.26.1) + rubocop-faker (= 1.2.0) + rubocop-performance (= 1.23.0) + rubocop-rails (= 2.27.0) + rubocop-rake (= 0.6.0) + rubocop-rspec (= 3.2.0) + builder (3.3.0) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) + crass (1.0.6) + diff-lcs (1.5.1) + docile (1.4.1) + drb (2.2.1) + erubi (1.13.1) + faker (3.5.1) + i18n (>= 1.8.11, < 2) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + json (2.9.1) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + language_server-protocol (3.17.0.3) + logger (1.6.4) + loofah (2.24.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + minitest (5.25.4) + nokogiri (1.18.1-arm64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-linux-gnu) + racc (~> 1.4) + parallel (1.26.3) + parser (3.3.6.0) + ast (~> 2.4.1) + racc + racc (1.8.1) + rack (3.1.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.2) + loofah (~> 2.21) + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) + rainbow (3.1.1) + rake (13.2.1) + regexp_parser (2.10.0) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + rubocop (1.69.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.36.1, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.37.0) + parser (>= 3.3.1.0) + rubocop-factory_bot (2.26.1) + rubocop (~> 1.61) + rubocop-faker (1.2.0) + faker (>= 2.12.0) + rubocop (>= 1.13.0) + rubocop-performance (1.23.0) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rails (2.27.0) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.52.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rake (0.6.0) + rubocop (~> 1.0) + rubocop-rspec (3.2.0) + rubocop (~> 1.61) + ruby-progressbar (1.13.0) + securerandom (0.4.1) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.13.1) + simplecov_json_formatter (0.1.4) + sqlite3 (2.5.0-arm64-darwin) + sqlite3 (2.5.0-x86_64-darwin) + sqlite3 (2.5.0-x86_64-linux-gnu) + thor (1.3.2) + timeout (0.4.3) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (3.1.3) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) + uri (1.0.2) + +PLATFORMS + arm64-darwin-20 + arm64-darwin-21 + arm64-darwin-22 + arm64-darwin-23 + arm64-darwin-24 + x86_64-darwin-19 + x86_64-darwin-20 + x86_64-darwin-21 + x86_64-linux + +DEPENDENCIES + activerecord (~> 8.0.0) + appraisal (~> 2.5) + boxt_rubocop (= 2.15.0) + kaminari-api-meta-data! + rake (~> 13.2) + rspec (~> 3.13) + simplecov (~> 0.22) + sqlite3 (~> 2.0) + +BUNDLED WITH + 2.6.2 diff --git a/gemfiles/activerecord_main.gemfile b/gemfiles/activerecord_main.gemfile new file mode 100644 index 0000000..bb6ab50 --- /dev/null +++ b/gemfiles/activerecord_main.gemfile @@ -0,0 +1,13 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "appraisal", "~> 2.5" +gem "boxt_rubocop", "2.15.0" +gem "rake", "~> 13.2" +gem "rspec", "~> 3.13" +gem "simplecov", "~> 0.22" +gem "activerecord", github: "rails/rails", branch: "main" +gem "sqlite3", "~> 2.0" + +gemspec path: "../" diff --git a/gemfiles/activerecord_main.gemfile.lock b/gemfiles/activerecord_main.gemfile.lock new file mode 100644 index 0000000..443616f --- /dev/null +++ b/gemfiles/activerecord_main.gemfile.lock @@ -0,0 +1,216 @@ +GIT + remote: https://github.com/rails/rails.git + revision: 7acfb75a6074b608c0ac629dfbae0560b3c3321e + branch: main + specs: + actionview (8.1.0.alpha) + activesupport (= 8.1.0.alpha) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activemodel (8.1.0.alpha) + activesupport (= 8.1.0.alpha) + activerecord (8.1.0.alpha) + activemodel (= 8.1.0.alpha) + activesupport (= 8.1.0.alpha) + timeout (>= 0.4.0) + activesupport (8.1.0.alpha) + base64 + benchmark (>= 0.3) + 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) + uri (>= 0.13.1) + +PATH + remote: .. + specs: + kaminari-api-meta-data (2.0.0) + kaminari (~> 1.1) + +GEM + remote: https://rubygems.org/ + specs: + appraisal (2.5.0) + bundler + rake + thor (>= 0.14.0) + ast (2.4.2) + base64 (0.2.0) + benchmark (0.4.0) + bigdecimal (3.1.9) + boxt_rubocop (2.15.0) + rubocop (= 1.69.0) + rubocop-factory_bot (= 2.26.1) + rubocop-faker (= 1.2.0) + rubocop-performance (= 1.23.0) + rubocop-rails (= 2.27.0) + rubocop-rake (= 0.6.0) + rubocop-rspec (= 3.2.0) + builder (3.3.0) + concurrent-ruby (1.3.4) + connection_pool (2.4.1) + crass (1.0.6) + diff-lcs (1.5.1) + docile (1.4.1) + drb (2.2.1) + erubi (1.13.1) + faker (3.5.1) + i18n (>= 1.8.11, < 2) + i18n (1.14.6) + concurrent-ruby (~> 1.0) + json (2.9.1) + kaminari (1.2.2) + activesupport (>= 4.1.0) + kaminari-actionview (= 1.2.2) + kaminari-activerecord (= 1.2.2) + kaminari-core (= 1.2.2) + kaminari-actionview (1.2.2) + actionview + kaminari-core (= 1.2.2) + kaminari-activerecord (1.2.2) + activerecord + kaminari-core (= 1.2.2) + kaminari-core (1.2.2) + language_server-protocol (3.17.0.3) + logger (1.6.4) + loofah (2.24.0) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mini_portile2 (2.8.8) + minitest (5.25.4) + nokogiri (1.18.1) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + nokogiri (1.18.1-aarch64-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.1-aarch64-linux-musl) + racc (~> 1.4) + nokogiri (1.18.1-arm-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.1-arm-linux-musl) + racc (~> 1.4) + nokogiri (1.18.1-arm64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-darwin) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-linux-gnu) + racc (~> 1.4) + nokogiri (1.18.1-x86_64-linux-musl) + racc (~> 1.4) + parallel (1.26.3) + parser (3.3.6.0) + ast (~> 2.4.1) + racc + racc (1.8.1) + rack (3.1.8) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest + nokogiri (>= 1.6) + rails-html-sanitizer (1.6.2) + loofah (~> 2.21) + nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0) + rainbow (3.1.1) + rake (13.2.1) + regexp_parser (2.10.0) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.2) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.13.0) + rspec-support (3.13.2) + rubocop (1.69.0) + json (~> 2.3) + language_server-protocol (>= 3.17.0) + parallel (~> 1.10) + parser (>= 3.3.0.2) + rainbow (>= 2.2.2, < 4.0) + regexp_parser (>= 2.4, < 3.0) + rubocop-ast (>= 1.36.1, < 2.0) + ruby-progressbar (~> 1.7) + unicode-display_width (>= 2.4.0, < 4.0) + rubocop-ast (1.37.0) + parser (>= 3.3.1.0) + rubocop-factory_bot (2.26.1) + rubocop (~> 1.61) + rubocop-faker (1.2.0) + faker (>= 2.12.0) + rubocop (>= 1.13.0) + rubocop-performance (1.23.0) + rubocop (>= 1.48.1, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rails (2.27.0) + activesupport (>= 4.2.0) + rack (>= 1.1) + rubocop (>= 1.52.0, < 2.0) + rubocop-ast (>= 1.31.1, < 2.0) + rubocop-rake (0.6.0) + rubocop (~> 1.0) + rubocop-rspec (3.2.0) + rubocop (~> 1.61) + ruby-progressbar (1.13.0) + securerandom (0.4.1) + simplecov (0.22.0) + docile (~> 1.1) + simplecov-html (~> 0.11) + simplecov_json_formatter (~> 0.1) + simplecov-html (0.13.1) + simplecov_json_formatter (0.1.4) + sqlite3 (2.5.0-aarch64-linux-gnu) + sqlite3 (2.5.0-aarch64-linux-musl) + sqlite3 (2.5.0-arm-linux-gnu) + sqlite3 (2.5.0-arm-linux-musl) + sqlite3 (2.5.0-arm64-darwin) + sqlite3 (2.5.0-x86-linux-gnu) + sqlite3 (2.5.0-x86-linux-musl) + sqlite3 (2.5.0-x86_64-darwin) + sqlite3 (2.5.0-x86_64-linux-gnu) + sqlite3 (2.5.0-x86_64-linux-musl) + thor (1.3.2) + timeout (0.4.3) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unicode-display_width (3.1.3) + unicode-emoji (~> 4.0, >= 4.0.4) + unicode-emoji (4.0.4) + uri (1.0.2) + +PLATFORMS + aarch64-linux-gnu + aarch64-linux-musl + arm-linux-gnu + arm-linux-musl + arm64-darwin + x86-linux-gnu + x86-linux-musl + x86_64-darwin + x86_64-linux-gnu + x86_64-linux-musl + +DEPENDENCIES + activerecord! + appraisal (~> 2.5) + boxt_rubocop (= 2.15.0) + kaminari-api-meta-data! + rake (~> 13.2) + rspec (~> 3.13) + simplecov (~> 0.22) + sqlite3 (~> 2.0) + +BUNDLED WITH + 2.6.2 diff --git a/kaminari_api_meta_data.gemspec b/kaminari_api_meta_data.gemspec index 62ab3ee..a3b983c 100644 --- a/kaminari_api_meta_data.gemspec +++ b/kaminari_api_meta_data.gemspec @@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "kaminari_api_meta_data/version" Gem::Specification.new do |spec| - spec.required_ruby_version = ">= 3.0" + spec.required_ruby_version = ">= 3.1" spec.name = "kaminari-api-meta-data" spec.version = KaminariApiMetaData::VERSION spec.authors = ["BOXT Developers"]