diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index d38269d..73e9b38 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -13,8 +13,8 @@ jobs: strategy: fail-fast: false matrix: - ruby-version: [3.1, 3.2] - lockfile: ['Gemfile.activerecord-6.1.lock', 'Gemfile.activerecord-7.0.lock', 'Gemfile.activerecord-7.1.lock', 'Gemfile.lock'] + ruby-version: [3.2, 3.3, 3.4] + lockfile: ['Gemfile.activerecord-6.1.lock', 'Gemfile.activerecord-7.0.lock', 'Gemfile.activerecord-7.1.lock', 'Gemfile.activerecord-7.2.lock', 'Gemfile.lock'] steps: - uses: actions/checkout@v3 diff --git a/Gemfile b/Gemfile index fd7d22b..65a6277 100644 --- a/Gemfile +++ b/Gemfile @@ -22,8 +22,14 @@ lockfile "activerecord-7.1" do gem "railties", "~> 7.1.0" end -lockfile do +lockfile "activerecord-7.2" do gem "activerecord", "~> 7.2.0" + gem "rack", "~> 3.1.16" gem "railties", "~> 7.2.0" end +lockfile do + gem "activerecord", "~> 8.0.0" + gem "rack", "~> 3.2" + gem "railties", "~> 8.0.0" +end diff --git a/Gemfile.activerecord-6.1.lock b/Gemfile.activerecord-6.1.lock index 343e21f..4d96989 100644 --- a/Gemfile.activerecord-6.1.lock +++ b/Gemfile.activerecord-6.1.lock @@ -2,8 +2,8 @@ PATH remote: . specs: guardrail (3.0.4) - activerecord (>= 6.1, < 8.0) - railties (>= 6.1, < 8.0) + activerecord (>= 6.1, < 8.1) + railties (>= 6.1, < 8.1) GEM remote: https://rubygems.org/ @@ -47,13 +47,13 @@ GEM pp (>= 0.6.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - loofah (2.24.0) + loofah (2.24.1) crass (~> 1.0.2) nokogiri (>= 1.12.0) method_source (1.1.0) - mini_portile2 (2.8.8) - minitest (5.25.4) - nokogiri (1.18.3) + mini_portile2 (2.8.9) + minitest (5.25.5) + nokogiri (1.18.9) mini_portile2 (~> 2.8.2) racc (~> 1.4) pp (0.6.2) @@ -63,10 +63,10 @@ GEM date stringio racc (1.8.1) - rack (2.2.11) + rack (2.2.17) rack-test (2.2.0) rack (>= 1.3) - rails-dom-testing (2.2.0) + rails-dom-testing (2.3.0) activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) @@ -79,16 +79,16 @@ GEM method_source rake (>= 12.2) thor (~> 1.0) - rake (13.2.1) + rake (13.3.0) rdoc (6.12.0) psych (>= 4.0.0) reline (0.6.0) io-console (~> 0.5) stringio (3.1.5) - thor (1.3.2) + thor (1.4.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - zeitwerk (2.6.18) + zeitwerk (2.7.3) PLATFORMS ruby diff --git a/Gemfile.activerecord-7.0.lock b/Gemfile.activerecord-7.0.lock index 37961db..f86291b 100644 --- a/Gemfile.activerecord-7.0.lock +++ b/Gemfile.activerecord-7.0.lock @@ -2,8 +2,8 @@ PATH remote: . specs: guardrail (3.0.4) - activerecord (>= 6.1, < 8.0) - railties (>= 6.1, < 8.0) + activerecord (>= 6.1, < 8.1) + railties (>= 6.1, < 8.1) GEM remote: https://rubygems.org/ @@ -46,13 +46,13 @@ GEM pp (>= 0.6.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - loofah (2.24.0) + loofah (2.24.1) crass (~> 1.0.2) nokogiri (>= 1.12.0) method_source (1.1.0) - mini_portile2 (2.8.8) - minitest (5.25.4) - nokogiri (1.18.3) + mini_portile2 (2.8.9) + minitest (5.25.5) + nokogiri (1.18.9) mini_portile2 (~> 2.8.2) racc (~> 1.4) pp (0.6.2) @@ -62,10 +62,10 @@ GEM date stringio racc (1.8.1) - rack (2.2.11) + rack (2.2.17) rack-test (2.2.0) rack (>= 1.3) - rails-dom-testing (2.2.0) + rails-dom-testing (2.3.0) activesupport (>= 5.0.0) minitest nokogiri (>= 1.6) @@ -79,16 +79,16 @@ GEM rake (>= 12.2) thor (~> 1.0) zeitwerk (~> 2.5) - rake (13.2.1) + rake (13.3.0) rdoc (6.12.0) psych (>= 4.0.0) reline (0.6.0) io-console (~> 0.5) stringio (3.1.5) - thor (1.3.2) + thor (1.4.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - zeitwerk (2.6.18) + zeitwerk (2.7.3) PLATFORMS ruby diff --git a/Gemfile.activerecord-7.1.lock b/Gemfile.activerecord-7.1.lock index 4fc3ddc..b00f7eb 100644 --- a/Gemfile.activerecord-7.1.lock +++ b/Gemfile.activerecord-7.1.lock @@ -2,15 +2,15 @@ PATH remote: . specs: guardrail (3.0.4) - activerecord (>= 6.1, < 8.0) - railties (>= 6.1, < 8.0) + activerecord (>= 6.1, < 8.1) + railties (>= 6.1, < 8.1) GEM remote: https://rubygems.org/ specs: - actionpack (7.1.5.1) - actionview (= 7.1.5.1) - activesupport (= 7.1.5.1) + actionpack (7.1.5.2) + actionview (= 7.1.5.2) + activesupport (= 7.1.5.2) nokogiri (>= 1.8.5) racc rack (>= 2.2.4) @@ -18,19 +18,19 @@ GEM rack-test (>= 0.6.3) rails-dom-testing (~> 2.2) rails-html-sanitizer (~> 1.6) - actionview (7.1.5.1) - activesupport (= 7.1.5.1) + actionview (7.1.5.2) + activesupport (= 7.1.5.2) 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) + activemodel (7.1.5.2) + activesupport (= 7.1.5.2) + activerecord (7.1.5.2) + activemodel (= 7.1.5.2) + activesupport (= 7.1.5.2) timeout (>= 0.4.0) - activesupport (7.1.5.1) + activesupport (7.1.5.2) base64 benchmark (>= 0.3) bigdecimal @@ -43,18 +43,18 @@ GEM mutex_m securerandom (>= 0.3) tzinfo (~> 2.0) - base64 (0.2.0) - benchmark (0.4.0) - bigdecimal (3.1.9) + base64 (0.3.0) + benchmark (0.4.1) + bigdecimal (3.2.2) builder (3.3.0) concurrent-ruby (1.3.5) - connection_pool (2.5.0) + connection_pool (2.5.3) crass (1.0.6) date (3.4.1) debug (1.10.0) irb (~> 1.10) reline (>= 0.3.8) - drb (2.2.1) + drb (2.2.3) erubi (1.13.1) i18n (1.14.7) concurrent-ruby (~> 1.0) @@ -63,14 +63,14 @@ GEM pp (>= 0.6.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - logger (1.6.6) - loofah (2.24.0) + logger (1.7.0) + loofah (2.24.1) crass (~> 1.0.2) nokogiri (>= 1.12.0) - mini_portile2 (2.8.8) - minitest (5.25.4) + mini_portile2 (2.8.9) + minitest (5.25.5) mutex_m (0.3.0) - nokogiri (1.18.3) + nokogiri (1.18.9) mini_portile2 (~> 2.8.2) racc (~> 1.4) pp (0.6.2) @@ -80,41 +80,41 @@ GEM date stringio racc (1.8.1) - rack (3.1.10) - rack-session (2.1.0) + rack (3.2.0) + rack-session (2.1.1) base64 (>= 0.1.0) rack (>= 3.0.0) rack-test (2.2.0) rack (>= 1.3) rackup (2.2.1) rack (>= 3) - rails-dom-testing (2.2.0) + rails-dom-testing (2.3.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) - railties (7.1.5.1) - actionpack (= 7.1.5.1) - activesupport (= 7.1.5.1) + railties (7.1.5.2) + actionpack (= 7.1.5.2) + activesupport (= 7.1.5.2) irb rackup (>= 1.0.0) rake (>= 12.2) thor (~> 1.0, >= 1.2.2) zeitwerk (~> 2.6) - rake (13.2.1) + rake (13.3.0) rdoc (6.12.0) psych (>= 4.0.0) reline (0.6.0) io-console (~> 0.5) securerandom (0.4.1) stringio (3.1.5) - thor (1.3.2) + thor (1.4.0) timeout (0.4.3) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - zeitwerk (2.6.18) + zeitwerk (2.7.3) PLATFORMS ruby diff --git a/Gemfile.activerecord-7.2.lock b/Gemfile.activerecord-7.2.lock new file mode 100644 index 0000000..69bbeb8 --- /dev/null +++ b/Gemfile.activerecord-7.2.lock @@ -0,0 +1,130 @@ +PATH + remote: . + specs: + guardrail (3.0.4) + activerecord (>= 6.1, < 8.1) + railties (>= 6.1, < 8.1) + +GEM + remote: https://rubygems.org/ + specs: + actionpack (7.2.2.2) + actionview (= 7.2.2.2) + activesupport (= 7.2.2.2) + 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) + actionview (7.2.2.2) + activesupport (= 7.2.2.2) + builder (~> 3.1) + erubi (~> 1.11) + rails-dom-testing (~> 2.2) + rails-html-sanitizer (~> 1.6) + activemodel (7.2.2.2) + activesupport (= 7.2.2.2) + activerecord (7.2.2.2) + activemodel (= 7.2.2.2) + activesupport (= 7.2.2.2) + timeout (>= 0.4.0) + activesupport (7.2.2.2) + 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) + base64 (0.3.0) + benchmark (0.4.1) + bigdecimal (3.2.2) + builder (3.3.0) + concurrent-ruby (1.3.5) + connection_pool (2.5.3) + crass (1.0.6) + date (3.4.1) + debug (1.10.0) + irb (~> 1.10) + reline (>= 0.3.8) + drb (2.2.3) + erubi (1.13.1) + i18n (1.14.7) + concurrent-ruby (~> 1.0) + io-console (0.8.0) + irb (1.15.1) + pp (>= 0.6.0) + rdoc (>= 4.0.0) + reline (>= 0.4.2) + logger (1.7.0) + loofah (2.24.1) + crass (~> 1.0.2) + nokogiri (>= 1.12.0) + mini_portile2 (2.8.9) + minitest (5.25.5) + nokogiri (1.18.9) + mini_portile2 (~> 2.8.2) + racc (~> 1.4) + pp (0.6.2) + prettyprint + prettyprint (0.2.0) + psych (5.2.3) + date + stringio + racc (1.8.1) + rack (3.1.16) + rack-session (2.1.1) + base64 (>= 0.1.0) + rack (>= 3.0.0) + rack-test (2.2.0) + rack (>= 1.3) + rackup (2.2.1) + rack (>= 3) + rails-dom-testing (2.3.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) + railties (7.2.2.2) + actionpack (= 7.2.2.2) + activesupport (= 7.2.2.2) + irb (~> 1.13) + rackup (>= 1.0.0) + rake (>= 12.2) + thor (~> 1.0, >= 1.2.2) + zeitwerk (~> 2.6) + rake (13.3.0) + rdoc (6.12.0) + psych (>= 4.0.0) + reline (0.6.0) + io-console (~> 0.5) + securerandom (0.4.1) + stringio (3.1.5) + thor (1.4.0) + timeout (0.4.3) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + useragent (0.16.11) + zeitwerk (2.7.3) + +PLATFORMS + ruby + +DEPENDENCIES + activerecord (~> 7.2.0) + debug + guardrail! + rack (~> 3.1.16) + railties (~> 7.2.0) + +BUNDLED WITH + 2.4.19 diff --git a/Gemfile.lock b/Gemfile.lock index bb07067..3dc6dda 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,36 +2,35 @@ PATH remote: . specs: guardrail (3.0.4) - activerecord (>= 6.1, < 8.0) - railties (>= 6.1, < 8.0) + activerecord (>= 6.1, < 8.1) + railties (>= 6.1, < 8.1) GEM remote: https://rubygems.org/ specs: - actionpack (7.2.2.1) - actionview (= 7.2.2.1) - activesupport (= 7.2.2.1) + actionpack (8.0.2.1) + actionview (= 8.0.2.1) + activesupport (= 8.0.2.1) 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) - actionview (7.2.2.1) - activesupport (= 7.2.2.1) + actionview (8.0.2.1) + activesupport (= 8.0.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) + activemodel (8.0.2.1) + activesupport (= 8.0.2.1) + activerecord (8.0.2.1) + activemodel (= 8.0.2.1) + activesupport (= 8.0.2.1) timeout (>= 0.4.0) - activesupport (7.2.2.1) + activesupport (8.0.2.1) base64 benchmark (>= 0.3) bigdecimal @@ -43,18 +42,19 @@ GEM minitest (>= 5.1) securerandom (>= 0.3) tzinfo (~> 2.0, >= 2.0.5) - base64 (0.2.0) - benchmark (0.4.0) - bigdecimal (3.1.9) + uri (>= 0.13.1) + base64 (0.3.0) + benchmark (0.4.1) + bigdecimal (3.2.2) builder (3.3.0) concurrent-ruby (1.3.5) - connection_pool (2.5.0) + connection_pool (2.5.3) crass (1.0.6) date (3.4.1) debug (1.10.0) irb (~> 1.10) reline (>= 0.3.8) - drb (2.2.1) + drb (2.2.3) erubi (1.13.1) i18n (1.14.7) concurrent-ruby (~> 1.0) @@ -63,13 +63,13 @@ GEM pp (>= 0.6.0) rdoc (>= 4.0.0) reline (>= 0.4.2) - logger (1.6.6) - loofah (2.24.0) + logger (1.7.0) + loofah (2.24.1) crass (~> 1.0.2) nokogiri (>= 1.12.0) - mini_portile2 (2.8.8) - minitest (5.25.4) - nokogiri (1.18.3) + mini_portile2 (2.8.9) + minitest (5.25.5) + nokogiri (1.18.9) mini_portile2 (~> 2.8.2) racc (~> 1.4) pp (0.6.2) @@ -79,51 +79,53 @@ GEM date stringio racc (1.8.1) - rack (3.1.10) - rack-session (2.1.0) + rack (3.2.0) + rack-session (2.1.1) base64 (>= 0.1.0) rack (>= 3.0.0) rack-test (2.2.0) rack (>= 1.3) rackup (2.2.1) rack (>= 3) - rails-dom-testing (2.2.0) + rails-dom-testing (2.3.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) - railties (7.2.2.1) - actionpack (= 7.2.2.1) - activesupport (= 7.2.2.1) + railties (8.0.2.1) + actionpack (= 8.0.2.1) + activesupport (= 8.0.2.1) irb (~> 1.13) rackup (>= 1.0.0) rake (>= 12.2) thor (~> 1.0, >= 1.2.2) zeitwerk (~> 2.6) - rake (13.2.1) + rake (13.3.0) rdoc (6.12.0) psych (>= 4.0.0) reline (0.6.0) io-console (~> 0.5) securerandom (0.4.1) stringio (3.1.5) - thor (1.3.2) + thor (1.4.0) timeout (0.4.3) tzinfo (2.0.6) concurrent-ruby (~> 1.0) + uri (1.0.3) useragent (0.16.11) - zeitwerk (2.6.18) + zeitwerk (2.7.3) PLATFORMS ruby DEPENDENCIES - activerecord (~> 7.2.0) + activerecord (~> 8.0.0) debug guardrail! - railties (~> 7.2.0) + rack (~> 3.2) + railties (~> 8.0.0) BUNDLED WITH 2.4.19 diff --git a/guardrail.gemspec b/guardrail.gemspec index b78bb73..02c9304 100644 --- a/guardrail.gemspec +++ b/guardrail.gemspec @@ -17,10 +17,10 @@ Gem::Specification.new do |s| s.files = Dir["lib/**/*"] + ["LICENSE", "README.md"] s.test_files = Dir["spec/**/*"] - s.required_ruby_version = '>= 3.1' + s.required_ruby_version = '>= 3.2' - s.add_dependency "activerecord", ">= 6.1", "< 8.0" - s.add_dependency "railties", ">= 6.1", "< 8.0" + s.add_dependency "activerecord", ">= 6.1", "< 8.1" + s.add_dependency "railties", ">= 6.1", "< 8.1" s.add_development_dependency "debug" end