diff --git a/.github/workflows/specs_rails70.yml b/.github/workflows/specs_rails70.yml index dec344c..12d6a93 100644 --- a/.github/workflows/specs_rails70.yml +++ b/.github/workflows/specs_rails70.yml @@ -15,7 +15,7 @@ jobs: strategy: matrix: - ruby: ['2.7', '3.0'] + ruby: ['3.0', '3.1', '3.2'] gemfile: ['rails70_activeadmin'] env: diff --git a/.overcommit.yml b/.overcommit.yml new file mode 100644 index 0000000..d015a31 --- /dev/null +++ b/.overcommit.yml @@ -0,0 +1,13 @@ +CommitMsg: + CapitalizedSubject: + enabled: false + + MessageFormat: + enabled: true + pattern: "^(fixup! ){0,1}(fix|feat|build|chore|ci|docs|style|refactor|perf|test)[!]{0,1}: .+$" + expected_pattern_message: ": " + sample_message: "chore: add Overcommit config" + + TextWidth: + enabled: true + max_subject_width: 72 diff --git a/extra/README.md b/extra/README.md index 1489d2f..a92af4a 100644 --- a/extra/README.md +++ b/extra/README.md @@ -1,5 +1,7 @@ # Development +Overcommit can be used to ensure that Conventional commits are good. + ## Releases ```sh diff --git a/gemfiles/rails52_activeadmin20.gemfile b/gemfiles/rails52_activeadmin20.gemfile deleted file mode 100644 index c0af10f..0000000 --- a/gemfiles/rails52_activeadmin20.gemfile +++ /dev/null @@ -1,26 +0,0 @@ -# This file was generated by Appraisal - -source "https://rubygems.org" - -gem "activeadmin", "~> 2.0.0" -gem "rails", "~> 5.2.0" - -group :development, :test do - gem "puma" - gem "sassc" - gem "sqlite3" - gem "capybara" - gem "cuprite" - gem "rspec_junit_formatter" - gem "rspec-rails" - gem "rspec-retry" - gem "fasterer" - gem "rubocop" - gem "rubocop-packaging" - gem "rubocop-performance" - gem "rubocop-rails" - gem "rubocop-rspec" - gem "pry-rails" -end - -gemspec path: "../" diff --git a/gemfiles/rails52_activeadmin20.gemfile.lock b/gemfiles/rails52_activeadmin20.gemfile.lock deleted file mode 100644 index 7b1ff9d..0000000 --- a/gemfiles/rails52_activeadmin20.gemfile.lock +++ /dev/null @@ -1,311 +0,0 @@ -PATH - remote: .. - specs: - activeadmin_quill_editor (1.0.0) - activeadmin (>= 2.0, < 4) - -GEM - remote: https://rubygems.org/ - specs: - actioncable (5.2.7) - actionpack (= 5.2.7) - nio4r (~> 2.0) - websocket-driver (>= 0.6.1) - actionmailer (5.2.7) - actionpack (= 5.2.7) - actionview (= 5.2.7) - activejob (= 5.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (5.2.7) - actionview (= 5.2.7) - activesupport (= 5.2.7) - rack (~> 2.0, >= 2.0.8) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.2.7) - activesupport (= 5.2.7) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activeadmin (2.0.0) - arbre (~> 1.2, >= 1.2.1) - formtastic (~> 3.1) - formtastic_i18n (~> 0.4) - inherited_resources (~> 1.7) - jquery-rails (~> 4.2) - kaminari (~> 1.0, >= 1.0.1) - railties (>= 5.0, < 6.0) - ransack (~> 2.1, >= 2.1.1) - sass (~> 3.4) - sprockets (>= 3.0, < 4.1) - sprockets-es6 (~> 0.9, >= 0.9.2) - activejob (5.2.7) - activesupport (= 5.2.7) - globalid (>= 0.3.6) - activemodel (5.2.7) - activesupport (= 5.2.7) - activerecord (5.2.7) - activemodel (= 5.2.7) - activesupport (= 5.2.7) - arel (>= 9.0) - activestorage (5.2.7) - actionpack (= 5.2.7) - activerecord (= 5.2.7) - marcel (~> 1.0.0) - activesupport (5.2.7) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (>= 0.7, < 2) - minitest (~> 5.1) - tzinfo (~> 1.1) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - appraisal (2.4.1) - bundler - rake - thor (>= 0.14.0) - arbre (1.5.0) - activesupport (>= 3.0.0, < 7.1) - ruby2_keywords (>= 0.0.2, < 1.0) - arel (9.0.0) - ast (2.4.2) - babel-source (5.8.35) - babel-transpiler (0.7.0) - babel-source (>= 4.0, < 6) - execjs (~> 2.0) - builder (3.2.4) - capybara (3.36.0) - addressable - matrix - mini_mime (>= 0.1.3) - nokogiri (~> 1.8) - rack (>= 1.6.0) - rack-test (>= 0.6.3) - regexp_parser (>= 1.5, < 3.0) - xpath (~> 3.2) - cliver (0.3.2) - coderay (1.1.3) - colorize (0.8.1) - concurrent-ruby (1.1.10) - crass (1.0.6) - cuprite (0.13) - capybara (>= 2.1, < 4) - ferrum (~> 0.11.0) - diff-lcs (1.5.0) - erubi (1.10.0) - execjs (2.8.1) - fasterer (0.9.0) - colorize (~> 0.7) - ruby_parser (>= 3.14.1) - ferrum (0.11) - addressable (~> 2.5) - cliver (~> 0.3) - concurrent-ruby (~> 1.1) - websocket-driver (>= 0.6, < 0.8) - ffi (1.15.5) - formtastic (3.1.5) - actionpack (>= 3.2.13) - formtastic_i18n (0.7.0) - globalid (1.0.0) - activesupport (>= 5.0) - has_scope (0.8.0) - actionpack (>= 5.2) - activesupport (>= 5.2) - i18n (1.10.0) - concurrent-ruby (~> 1.0) - inherited_resources (1.13.1) - actionpack (>= 5.2, < 7.1) - has_scope (~> 0.6) - railties (>= 5.2, < 7.1) - responders (>= 2, < 4) - jquery-rails (4.4.0) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - 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) - loofah (2.15.0) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) - mini_mime (>= 0.1.1) - marcel (1.0.2) - matrix (0.4.2) - method_source (1.0.0) - mini_mime (1.1.2) - minitest (5.15.0) - nio4r (2.5.8) - nokogiri (1.13.3-x86_64-darwin) - racc (~> 1.4) - nokogiri (1.13.3-x86_64-linux) - racc (~> 1.4) - parallel (1.22.1) - parser (3.1.1.0) - ast (~> 2.4.1) - pry (0.14.1) - coderay (~> 1.1) - method_source (~> 1.0) - pry-rails (0.3.9) - pry (>= 0.10.4) - public_suffix (4.0.6) - puma (5.6.2) - nio4r (~> 2.0) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (5.2.7) - actioncable (= 5.2.7) - actionmailer (= 5.2.7) - actionpack (= 5.2.7) - actionview (= 5.2.7) - activejob (= 5.2.7) - activemodel (= 5.2.7) - activerecord (= 5.2.7) - activestorage (= 5.2.7) - activesupport (= 5.2.7) - bundler (>= 1.3.0) - railties (= 5.2.7) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (5.2.7) - actionpack (= 5.2.7) - activesupport (= 5.2.7) - method_source - rake (>= 0.8.7) - thor (>= 0.19.0, < 2.0) - rainbow (3.1.1) - rake (13.0.6) - ransack (2.5.0) - activerecord (>= 5.2.4) - activesupport (>= 5.2.4) - i18n - rb-fsevent (0.11.1) - rb-inotify (0.10.1) - ffi (~> 1.0) - regexp_parser (2.2.1) - responders (3.0.1) - actionpack (>= 5.0) - railties (>= 5.0) - rexml (3.2.5) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-rails (5.1.1) - actionpack (>= 5.2) - activesupport (>= 5.2) - railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) - rspec-retry (0.6.2) - rspec-core (> 3.3) - rspec-support (3.11.0) - rspec_junit_formatter (0.5.1) - rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.26.1) - parallel (~> 1.10) - parser (>= 3.1.0.0) - rainbow (>= 2.2.2, < 4.0) - regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.16.0, < 2.0) - ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.16.0) - parser (>= 3.1.1.0) - rubocop-packaging (0.5.1) - rubocop (>= 0.89, < 2.0) - rubocop-performance (1.13.3) - rubocop (>= 1.7.0, < 2.0) - rubocop-ast (>= 0.4.0) - rubocop-rails (2.14.2) - activesupport (>= 4.2.0) - rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.9.0) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) - ruby2_keywords (0.0.5) - ruby_parser (3.18.1) - sexp_processor (~> 4.16) - sass (3.7.4) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sassc (2.4.0) - ffi (~> 1.9) - sexp_processor (4.16.0) - sprockets (4.0.3) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-es6 (0.9.2) - babel-source (>= 5.8.11) - babel-transpiler - sprockets (>= 3.0.0) - sprockets-rails (3.4.2) - actionpack (>= 5.2) - activesupport (>= 5.2) - sprockets (>= 3.0.0) - sqlite3 (1.4.2) - thor (1.2.1) - thread_safe (0.3.6) - tzinfo (1.2.9) - thread_safe (~> 0.1) - unicode-display_width (2.1.0) - websocket-driver (0.7.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.5) - xpath (3.2.0) - nokogiri (~> 1.8) - -PLATFORMS - x86_64-darwin-21 - x86_64-linux - -DEPENDENCIES - activeadmin (~> 2.0.0) - activeadmin_quill_editor! - appraisal (~> 2.4) - capybara - cuprite - fasterer - pry-rails - puma - rails (~> 5.2.0) - rspec-rails - rspec-retry - rspec_junit_formatter - rubocop - rubocop-packaging - rubocop-performance - rubocop-rails - rubocop-rspec - sassc - sqlite3 - -BUNDLED WITH - 2.3.8 diff --git a/gemfiles/rails70_activeadmin.gemfile.lock b/gemfiles/rails70_activeadmin.gemfile.lock index a9304b3..d642e8b 100644 --- a/gemfiles/rails70_activeadmin.gemfile.lock +++ b/gemfiles/rails70_activeadmin.gemfile.lock @@ -7,92 +7,93 @@ PATH GEM remote: https://rubygems.org/ specs: - actioncable (7.0.2.3) - actionpack (= 7.0.2.3) - activesupport (= 7.0.2.3) + actioncable (7.0.7) + actionpack (= 7.0.7) + activesupport (= 7.0.7) nio4r (~> 2.0) websocket-driver (>= 0.6.1) - actionmailbox (7.0.2.3) - actionpack (= 7.0.2.3) - activejob (= 7.0.2.3) - activerecord (= 7.0.2.3) - activestorage (= 7.0.2.3) - activesupport (= 7.0.2.3) + actionmailbox (7.0.7) + actionpack (= 7.0.7) + activejob (= 7.0.7) + activerecord (= 7.0.7) + activestorage (= 7.0.7) + activesupport (= 7.0.7) mail (>= 2.7.1) net-imap net-pop net-smtp - actionmailer (7.0.2.3) - actionpack (= 7.0.2.3) - actionview (= 7.0.2.3) - activejob (= 7.0.2.3) - activesupport (= 7.0.2.3) + actionmailer (7.0.7) + actionpack (= 7.0.7) + actionview (= 7.0.7) + activejob (= 7.0.7) + activesupport (= 7.0.7) mail (~> 2.5, >= 2.5.4) net-imap net-pop net-smtp rails-dom-testing (~> 2.0) - actionpack (7.0.2.3) - actionview (= 7.0.2.3) - activesupport (= 7.0.2.3) - rack (~> 2.0, >= 2.2.0) + actionpack (7.0.7) + actionview (= 7.0.7) + activesupport (= 7.0.7) + rack (~> 2.0, >= 2.2.4) rack-test (>= 0.6.3) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.0, >= 1.2.0) - actiontext (7.0.2.3) - actionpack (= 7.0.2.3) - activerecord (= 7.0.2.3) - activestorage (= 7.0.2.3) - activesupport (= 7.0.2.3) + actiontext (7.0.7) + actionpack (= 7.0.7) + activerecord (= 7.0.7) + activestorage (= 7.0.7) + activesupport (= 7.0.7) globalid (>= 0.6.0) nokogiri (>= 1.8.5) - actionview (7.0.2.3) - activesupport (= 7.0.2.3) + actionview (7.0.7) + activesupport (= 7.0.7) builder (~> 3.1) erubi (~> 1.4) rails-dom-testing (~> 2.0) rails-html-sanitizer (~> 1.1, >= 1.2.0) - activeadmin (2.11.1) + activeadmin (3.0.0) arbre (~> 1.2, >= 1.2.1) formtastic (>= 3.1, < 5.0) formtastic_i18n (~> 0.4) inherited_resources (~> 1.7) jquery-rails (~> 4.2) kaminari (~> 1.0, >= 1.2.1) - railties (>= 6.0, < 7.1) - ransack (~> 2.1, >= 2.1.1) - activejob (7.0.2.3) - activesupport (= 7.0.2.3) + railties (>= 6.1, < 7.1) + ransack (>= 4.0, < 5) + activejob (7.0.7) + activesupport (= 7.0.7) globalid (>= 0.3.6) - activemodel (7.0.2.3) - activesupport (= 7.0.2.3) - activerecord (7.0.2.3) - activemodel (= 7.0.2.3) - activesupport (= 7.0.2.3) - activestorage (7.0.2.3) - actionpack (= 7.0.2.3) - activejob (= 7.0.2.3) - activerecord (= 7.0.2.3) - activesupport (= 7.0.2.3) + activemodel (7.0.7) + activesupport (= 7.0.7) + activerecord (7.0.7) + activemodel (= 7.0.7) + activesupport (= 7.0.7) + activestorage (7.0.7) + actionpack (= 7.0.7) + activejob (= 7.0.7) + activerecord (= 7.0.7) + activesupport (= 7.0.7) marcel (~> 1.0) mini_mime (>= 1.1.0) - activesupport (7.0.2.3) + activesupport (7.0.7) concurrent-ruby (~> 1.0, >= 1.0.2) i18n (>= 1.6, < 2) minitest (>= 5.1) tzinfo (~> 2.0) - addressable (2.8.0) - public_suffix (>= 2.0.2, < 5.0) - appraisal (2.4.1) + addressable (2.8.5) + public_suffix (>= 2.0.2, < 6.0) + appraisal (2.5.0) bundler rake thor (>= 0.14.0) - arbre (1.5.0) + arbre (1.6.0) activesupport (>= 3.0.0, < 7.1) ruby2_keywords (>= 0.0.2, < 1.0) ast (2.4.2) + base64 (0.1.1) builder (3.2.4) - capybara (3.36.0) + capybara (3.39.2) addressable matrix mini_mime (>= 0.1.3) @@ -101,46 +102,45 @@ GEM rack-test (>= 0.6.3) regexp_parser (>= 1.5, < 3.0) xpath (~> 3.2) - cliver (0.3.2) coderay (1.1.3) colorize (0.8.1) - concurrent-ruby (1.1.10) + concurrent-ruby (1.2.2) crass (1.0.6) - cuprite (0.13) - capybara (>= 2.1, < 4) - ferrum (~> 0.11.0) + cuprite (0.14.3) + capybara (~> 3.0) + ferrum (~> 0.13.0) + date (3.3.3) diff-lcs (1.5.0) - digest (3.1.0) - erubi (1.10.0) - fasterer (0.9.0) + erubi (1.12.0) + fasterer (0.10.1) colorize (~> 0.7) - ruby_parser (>= 3.14.1) - ferrum (0.11) + ruby_parser (>= 3.19.1) + ferrum (0.13) addressable (~> 2.5) - cliver (~> 0.3) concurrent-ruby (~> 1.1) + webrick (~> 1.7) websocket-driver (>= 0.6, < 0.8) ffi (1.15.5) formtastic (4.0.0) actionpack (>= 5.2.0) formtastic_i18n (0.7.0) - globalid (1.0.0) + globalid (1.1.0) activesupport (>= 5.0) - has_scope (0.8.0) + has_scope (0.8.1) actionpack (>= 5.2) activesupport (>= 5.2) - i18n (1.10.0) + i18n (1.14.1) concurrent-ruby (~> 1.0) inherited_resources (1.13.1) actionpack (>= 5.2, < 7.1) has_scope (~> 0.6) railties (>= 5.2, < 7.1) responders (>= 2, < 4) - io-wait (0.2.1) - jquery-rails (4.4.0) + jquery-rails (4.6.0) rails-dom-testing (>= 1, < 3) railties (>= 4.2.0) thor (>= 0.14, < 2.0) + json (2.6.3) kaminari (1.2.2) activesupport (>= 4.1.0) kaminari-actionview (= 1.2.2) @@ -153,161 +153,172 @@ GEM activerecord kaminari-core (= 1.2.2) kaminari-core (1.2.2) - loofah (2.15.0) + language_server-protocol (3.17.0.3) + loofah (2.21.3) crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.1) + nokogiri (>= 1.12.0) + mail (2.8.1) mini_mime (>= 0.1.1) + net-imap + net-pop + net-smtp marcel (1.0.2) matrix (0.4.2) method_source (1.0.0) - mini_mime (1.1.2) - minitest (5.15.0) - net-imap (0.2.3) - digest + mini_mime (1.1.5) + minitest (5.19.0) + net-imap (0.3.7) + date net-protocol - strscan - net-pop (0.1.1) - digest + net-pop (0.1.2) net-protocol + net-protocol (0.2.1) timeout - net-protocol (0.1.2) - io-wait - timeout - net-smtp (0.3.1) - digest + net-smtp (0.3.3) net-protocol - timeout - nio4r (2.5.8) - nokogiri (1.13.3-x86_64-darwin) + nio4r (2.5.9) + nokogiri (1.15.4-arm64-darwin) racc (~> 1.4) - nokogiri (1.13.3-x86_64-linux) + nokogiri (1.15.4-x86_64-linux) racc (~> 1.4) - parallel (1.22.1) - parser (3.1.1.0) + parallel (1.23.0) + parser (3.2.2.3) ast (~> 2.4.1) - pry (0.14.1) + racc + pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) pry-rails (0.3.9) pry (>= 0.10.4) - public_suffix (4.0.6) - puma (5.6.2) + public_suffix (5.0.3) + puma (6.3.1) nio4r (~> 2.0) - racc (1.6.0) - rack (2.2.3) - rack-test (1.1.0) - rack (>= 1.0, < 3) - rails (7.0.2.3) - actioncable (= 7.0.2.3) - actionmailbox (= 7.0.2.3) - actionmailer (= 7.0.2.3) - actionpack (= 7.0.2.3) - actiontext (= 7.0.2.3) - actionview (= 7.0.2.3) - activejob (= 7.0.2.3) - activemodel (= 7.0.2.3) - activerecord (= 7.0.2.3) - activestorage (= 7.0.2.3) - activesupport (= 7.0.2.3) + racc (1.7.1) + rack (2.2.8) + rack-test (2.1.0) + rack (>= 1.3) + rails (7.0.7) + actioncable (= 7.0.7) + actionmailbox (= 7.0.7) + actionmailer (= 7.0.7) + actionpack (= 7.0.7) + actiontext (= 7.0.7) + actionview (= 7.0.7) + activejob (= 7.0.7) + activemodel (= 7.0.7) + activerecord (= 7.0.7) + activestorage (= 7.0.7) + activesupport (= 7.0.7) bundler (>= 1.15.0) - railties (= 7.0.2.3) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) + railties (= 7.0.7) + rails-dom-testing (2.2.0) + activesupport (>= 5.0.0) + minitest nokogiri (>= 1.6) - rails-html-sanitizer (1.4.2) - loofah (~> 2.3) - railties (7.0.2.3) - actionpack (= 7.0.2.3) - activesupport (= 7.0.2.3) + rails-html-sanitizer (1.6.0) + loofah (~> 2.21) + nokogiri (~> 1.14) + railties (7.0.7) + actionpack (= 7.0.7) + activesupport (= 7.0.7) method_source rake (>= 12.2) thor (~> 1.0) zeitwerk (~> 2.5) rainbow (3.1.1) rake (13.0.6) - ransack (2.6.0) - activerecord (>= 6.0.4) - activesupport (>= 6.0.4) + ransack (4.0.0) + activerecord (>= 6.1.5) + activesupport (>= 6.1.5) i18n - regexp_parser (2.2.1) - responders (3.0.1) - actionpack (>= 5.0) - railties (>= 5.0) - rexml (3.2.5) - rspec-core (3.11.0) - rspec-support (~> 3.11.0) - rspec-expectations (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-mocks (3.11.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.11.0) - rspec-rails (5.1.1) + regexp_parser (2.8.1) + responders (3.1.0) actionpack (>= 5.2) - activesupport (>= 5.2) railties (>= 5.2) - rspec-core (~> 3.10) - rspec-expectations (~> 3.10) - rspec-mocks (~> 3.10) - rspec-support (~> 3.10) + rexml (3.2.6) + rspec-core (3.12.2) + rspec-support (~> 3.12.0) + rspec-expectations (3.12.3) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-mocks (3.12.6) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.12.0) + rspec-rails (6.0.3) + actionpack (>= 6.1) + activesupport (>= 6.1) + railties (>= 6.1) + rspec-core (~> 3.12) + rspec-expectations (~> 3.12) + rspec-mocks (~> 3.12) + rspec-support (~> 3.12) rspec-retry (0.6.2) rspec-core (> 3.3) - rspec-support (3.11.0) - rspec_junit_formatter (0.5.1) + rspec-support (3.12.1) + rspec_junit_formatter (0.6.0) rspec-core (>= 2, < 4, != 2.12.0) - rubocop (1.26.1) + rubocop (1.56.0) + base64 (~> 0.1.1) + json (~> 2.3) + language_server-protocol (>= 3.17.0) parallel (~> 1.10) - parser (>= 3.1.0.0) + parser (>= 3.2.2.3) rainbow (>= 2.2.2, < 4.0) regexp_parser (>= 1.8, < 3.0) - rexml - rubocop-ast (>= 1.16.0, < 2.0) + rexml (>= 3.2.5, < 4.0) + rubocop-ast (>= 1.28.1, < 2.0) ruby-progressbar (~> 1.7) - unicode-display_width (>= 1.4.0, < 3.0) - rubocop-ast (1.16.0) - parser (>= 3.1.1.0) - rubocop-packaging (0.5.1) - rubocop (>= 0.89, < 2.0) - rubocop-performance (1.13.3) + unicode-display_width (>= 2.4.0, < 3.0) + rubocop-ast (1.29.0) + parser (>= 3.2.1.0) + rubocop-capybara (2.18.0) + rubocop (~> 1.41) + rubocop-factory_bot (2.23.1) + rubocop (~> 1.33) + rubocop-packaging (0.5.2) + rubocop (>= 1.33, < 2.0) + rubocop-performance (1.19.0) rubocop (>= 1.7.0, < 2.0) rubocop-ast (>= 0.4.0) - rubocop-rails (2.14.2) + rubocop-rails (2.20.2) activesupport (>= 4.2.0) rack (>= 1.1) - rubocop (>= 1.7.0, < 2.0) - rubocop-rspec (2.9.0) - rubocop (~> 1.19) - ruby-progressbar (1.11.0) + rubocop (>= 1.33.0, < 2.0) + rubocop-rspec (2.23.2) + rubocop (~> 1.33) + rubocop-capybara (~> 2.17) + rubocop-factory_bot (~> 2.22) + ruby-progressbar (1.13.0) ruby2_keywords (0.0.5) - ruby_parser (3.18.1) + ruby_parser (3.20.3) sexp_processor (~> 4.16) sassc (2.4.0) ffi (~> 1.9) - sexp_processor (4.16.0) - sprockets (4.0.3) + sexp_processor (4.17.0) + sprockets (4.2.0) concurrent-ruby (~> 1.0) - rack (> 1, < 3) + rack (>= 2.2.4, < 4) sprockets-rails (3.4.2) actionpack (>= 5.2) activesupport (>= 5.2) sprockets (>= 3.0.0) - sqlite3 (1.4.2) - strscan (3.0.1) - thor (1.2.1) - timeout (0.2.0) - tzinfo (2.0.4) + sqlite3 (1.6.3-arm64-darwin) + sqlite3 (1.6.3-x86_64-linux) + thor (1.2.2) + timeout (0.4.0) + tzinfo (2.0.6) concurrent-ruby (~> 1.0) - unicode-display_width (2.1.0) - websocket-driver (0.7.5) + unicode-display_width (2.4.2) + webrick (1.8.1) + websocket-driver (0.7.6) websocket-extensions (>= 0.1.0) websocket-extensions (0.1.5) xpath (3.2.0) nokogiri (~> 1.8) - zeitwerk (2.5.4) + zeitwerk (2.6.11) PLATFORMS - x86_64-darwin-21 + arm64-darwin-22 x86_64-linux DEPENDENCIES diff --git a/spec/dummy/app/models/author.rb b/spec/dummy/app/models/author.rb index 9ac73cd..b05a0d2 100644 --- a/spec/dummy/app/models/author.rb +++ b/spec/dummy/app/models/author.rb @@ -23,4 +23,8 @@ class Author < ApplicationRecord def to_s "#{name} (#{age})" end + + def self.ransackable_attributes(auth_object = nil) + %w[age created_at email id name updated_at] + end end diff --git a/spec/dummy/app/models/post.rb b/spec/dummy/app/models/post.rb index f80363f..7003055 100644 --- a/spec/dummy/app/models/post.rb +++ b/spec/dummy/app/models/post.rb @@ -26,4 +26,12 @@ class Post < ApplicationRecord def upper_title title.upcase end + + def self.ransackable_attributes(auth_object = nil) + %w[author_id category created_at description dt id position published summary title updated_at] + end + + def self.ransackable_associations(auth_object = nil) + %w[author author_profile images_attachments images_blobs post_tags tags] + end end diff --git a/spec/dummy/app/models/post_tag.rb b/spec/dummy/app/models/post_tag.rb index fd0c184..ce79a9f 100644 --- a/spec/dummy/app/models/post_tag.rb +++ b/spec/dummy/app/models/post_tag.rb @@ -6,4 +6,8 @@ class PostTag < ApplicationRecord validates :post, presence: true validates :tag, presence: true + + def self.ransackable_attributes(auth_object = nil) + %w[created_at id post_id tag_id updated_at] + end end diff --git a/spec/dummy/app/models/profile.rb b/spec/dummy/app/models/profile.rb index 5f48ff1..beac97a 100644 --- a/spec/dummy/app/models/profile.rb +++ b/spec/dummy/app/models/profile.rb @@ -6,4 +6,8 @@ class Profile < ApplicationRecord def to_s description end + + def self.ransackable_attributes(auth_object = nil) + %w[author_id created_at description id updated_at] + end end diff --git a/spec/dummy/config/initializers/active_storage.rb b/spec/dummy/config/initializers/active_storage.rb new file mode 100644 index 0000000..1a03b5b --- /dev/null +++ b/spec/dummy/config/initializers/active_storage.rb @@ -0,0 +1,7 @@ +ActiveSupport::Reloader.to_prepare do + ActiveStorage::Attachment.class_eval do + def self.ransackable_attributes(auth_object = nil) + %w[blob_id created_at id name record_id record_type] + end + end +end