diff --git a/.github/workflows/ruby_event_store-active_record_test.yml b/.github/workflows/ruby_event_store-active_record_test.yml index 319d8440f5..429396e9fb 100644 --- a/.github/workflows/ruby_event_store-active_record_test.yml +++ b/.github/workflows/ruby_event_store-active_record_test.yml @@ -94,6 +94,18 @@ jobs: bundle_gemfile: Gemfile database_url: sqlite3:db.sqlite3 data_type: binary + - ruby_version: ruby-3.3 + bundle_gemfile: Gemfile.activerecord_7_0 + database_url: sqlite3:db.sqlite3 + data_type: binary + - ruby_version: ruby-3.3 + bundle_gemfile: Gemfile.activerecord_6_1 + database_url: sqlite3:db.sqlite3 + data_type: binary + - ruby_version: ruby-3.3 + bundle_gemfile: Gemfile.activerecord_6_0 + database_url: sqlite3:db.sqlite3 + data_type: binary - ruby_version: ruby-3.3 bundle_gemfile: Gemfile database_url: postgres://postgres:secret@localhost:10015/rails_event_store diff --git a/ruby_event_store-active_record/Gemfile b/ruby_event_store-active_record/Gemfile index 78297dd33d..a37997c25f 100644 --- a/ruby_event_store-active_record/Gemfile +++ b/ruby_event_store-active_record/Gemfile @@ -9,3 +9,4 @@ eval_gemfile "../support/bundler/Gemfile.database" gem "ruby_event_store", path: ".." gem "childprocess" +gem "activerecord", "~> 7.1.3" diff --git a/ruby_event_store-active_record/Gemfile.activerecord_6_0 b/ruby_event_store-active_record/Gemfile.activerecord_6_0 new file mode 100644 index 0000000000..7db3add281 --- /dev/null +++ b/ruby_event_store-active_record/Gemfile.activerecord_6_0 @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +source "https://rubygems.org" +gemspec name: "ruby_event_store-active_record" + +eval_gemfile "../support/bundler/Gemfile.shared" +eval_gemfile "../support/bundler/Gemfile.database" + +gem "ruby_event_store", path: ".." + +gem "childprocess" +gem "activerecord", "~> 6.0.5" diff --git a/ruby_event_store-active_record/Gemfile.activerecord_6_0.lock b/ruby_event_store-active_record/Gemfile.activerecord_6_0.lock new file mode 100644 index 0000000000..5797ecfac4 --- /dev/null +++ b/ruby_event_store-active_record/Gemfile.activerecord_6_0.lock @@ -0,0 +1,102 @@ +PATH + remote: .. + specs: + ruby_event_store (2.14.0) + concurrent-ruby (~> 1.0, >= 1.1.6) + +PATH + remote: . + specs: + ruby_event_store-active_record (2.14.0) + activerecord (>= 6.0) + ruby_event_store (= 2.14.0) + +GEM + remote: https://rubygems.org/ + specs: + activemodel (6.0.6.1) + activesupport (= 6.0.6.1) + activerecord (6.0.6.1) + activemodel (= 6.0.6.1) + activesupport (= 6.0.6.1) + activesupport (6.0.6.1) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 0.7, < 2) + minitest (~> 5.1) + tzinfo (~> 1.1) + zeitwerk (~> 2.2, >= 2.2.2) + ast (2.4.2) + childprocess (4.1.0) + concurrent-ruby (1.2.3) + diff-lcs (1.5.0) + i18n (1.14.5) + concurrent-ruby (~> 1.0) + minitest (5.20.0) + mutant (0.12.0) + diff-lcs (~> 1.3) + parser (~> 3.3.0) + regexp_parser (~> 2.9.0) + sorbet-runtime (~> 0.5.0) + unparser (~> 0.6.9) + mutant-minitest (0.12.0) + minitest (~> 5.11) + mutant (= 0.12.0) + mutant-rspec (0.12.0) + mutant (= 0.12.0) + rspec-core (>= 3.8.0, < 4.0.0) + mysql2 (0.5.6) + parser (3.3.1.0) + ast (~> 2.4.1) + racc + pg (1.5.6) + racc (1.7.3) + rake (13.0.6) + regexp_parser (2.9.0) + rspec (3.12.0) + rspec-core (~> 3.12.0) + rspec-expectations (~> 3.12.0) + rspec-mocks (~> 3.12.0) + 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-support (3.12.1) + sorbet-runtime (0.5.11370) + sqlite3 (1.7.0-arm64-darwin) + sqlite3 (1.7.0-x86_64-darwin) + sqlite3 (1.7.0-x86_64-linux) + thread_safe (0.3.6) + tzinfo (1.2.11) + thread_safe (~> 0.1) + unparser (0.6.13) + diff-lcs (~> 1.3) + parser (>= 3.3.0) + zeitwerk (2.6.14) + +PLATFORMS + arm64-darwin-21 + arm64-darwin-22 + arm64-darwin-23 + x86_64-darwin-22 + x86_64-linux + +DEPENDENCIES + activerecord (~> 6.0.5) + childprocess + mutant (= 0.12.0) + mutant-minitest (= 0.12.0) + mutant-rspec (= 0.12.0) + mysql2 (~> 0.5.6) + pg (~> 1.5.6) + rake (>= 10.0) + rspec (~> 3.6) + ruby_event_store! + ruby_event_store-active_record! + sqlite3 (~> 1.7) + +BUNDLED WITH + 2.5.3 diff --git a/ruby_event_store-active_record/Gemfile.activerecord_6_1 b/ruby_event_store-active_record/Gemfile.activerecord_6_1 new file mode 100644 index 0000000000..02b1eab87b --- /dev/null +++ b/ruby_event_store-active_record/Gemfile.activerecord_6_1 @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +source "https://rubygems.org" +gemspec name: "ruby_event_store-active_record" + +eval_gemfile "../support/bundler/Gemfile.shared" +eval_gemfile "../support/bundler/Gemfile.database" + +gem "ruby_event_store", path: ".." + +gem "childprocess" +gem "activerecord", "~> 6.1.6" diff --git a/ruby_event_store-active_record/Gemfile.activerecord_6_1.lock b/ruby_event_store-active_record/Gemfile.activerecord_6_1.lock new file mode 100644 index 0000000000..f83f48064c --- /dev/null +++ b/ruby_event_store-active_record/Gemfile.activerecord_6_1.lock @@ -0,0 +1,101 @@ +PATH + remote: .. + specs: + ruby_event_store (2.14.0) + concurrent-ruby (~> 1.0, >= 1.1.6) + +PATH + remote: . + specs: + ruby_event_store-active_record (2.14.0) + activerecord (>= 6.0) + ruby_event_store (= 2.14.0) + +GEM + remote: https://rubygems.org/ + specs: + activemodel (6.1.7.7) + activesupport (= 6.1.7.7) + activerecord (6.1.7.7) + activemodel (= 6.1.7.7) + activesupport (= 6.1.7.7) + activesupport (6.1.7.7) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + zeitwerk (~> 2.3) + ast (2.4.2) + childprocess (4.1.0) + concurrent-ruby (1.2.3) + diff-lcs (1.5.0) + i18n (1.14.5) + concurrent-ruby (~> 1.0) + minitest (5.20.0) + mutant (0.12.0) + diff-lcs (~> 1.3) + parser (~> 3.3.0) + regexp_parser (~> 2.9.0) + sorbet-runtime (~> 0.5.0) + unparser (~> 0.6.9) + mutant-minitest (0.12.0) + minitest (~> 5.11) + mutant (= 0.12.0) + mutant-rspec (0.12.0) + mutant (= 0.12.0) + rspec-core (>= 3.8.0, < 4.0.0) + mysql2 (0.5.6) + parser (3.3.1.0) + ast (~> 2.4.1) + racc + pg (1.5.6) + racc (1.7.3) + rake (13.0.6) + regexp_parser (2.9.0) + rspec (3.12.0) + rspec-core (~> 3.12.0) + rspec-expectations (~> 3.12.0) + rspec-mocks (~> 3.12.0) + 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-support (3.12.1) + sorbet-runtime (0.5.11370) + sqlite3 (1.7.0-arm64-darwin) + sqlite3 (1.7.0-x86_64-darwin) + sqlite3 (1.7.0-x86_64-linux) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unparser (0.6.13) + diff-lcs (~> 1.3) + parser (>= 3.3.0) + zeitwerk (2.6.14) + +PLATFORMS + arm64-darwin-21 + arm64-darwin-22 + arm64-darwin-23 + x86_64-darwin-22 + x86_64-linux + +DEPENDENCIES + activerecord (~> 6.1.6) + childprocess + mutant (= 0.12.0) + mutant-minitest (= 0.12.0) + mutant-rspec (= 0.12.0) + mysql2 (~> 0.5.6) + pg (~> 1.5.6) + rake (>= 10.0) + rspec (~> 3.6) + ruby_event_store! + ruby_event_store-active_record! + sqlite3 (~> 1.7) + +BUNDLED WITH + 2.5.3 diff --git a/ruby_event_store-active_record/Gemfile.activerecord_7_0 b/ruby_event_store-active_record/Gemfile.activerecord_7_0 new file mode 100644 index 0000000000..f6f8d4ba0e --- /dev/null +++ b/ruby_event_store-active_record/Gemfile.activerecord_7_0 @@ -0,0 +1,12 @@ +# frozen_string_literal: true + +source "https://rubygems.org" +gemspec name: "ruby_event_store-active_record" + +eval_gemfile "../support/bundler/Gemfile.shared" +eval_gemfile "../support/bundler/Gemfile.database" + +gem "ruby_event_store", path: ".." + +gem "childprocess" +gem "activerecord", "~> 7.0.7" diff --git a/ruby_event_store-active_record/Gemfile.activerecord_7_0.lock b/ruby_event_store-active_record/Gemfile.activerecord_7_0.lock new file mode 100644 index 0000000000..247db458e5 --- /dev/null +++ b/ruby_event_store-active_record/Gemfile.activerecord_7_0.lock @@ -0,0 +1,99 @@ +PATH + remote: .. + specs: + ruby_event_store (2.14.0) + concurrent-ruby (~> 1.0, >= 1.1.6) + +PATH + remote: . + specs: + ruby_event_store-active_record (2.14.0) + activerecord (>= 6.0) + ruby_event_store (= 2.14.0) + +GEM + remote: https://rubygems.org/ + specs: + activemodel (7.0.8.3) + activesupport (= 7.0.8.3) + activerecord (7.0.8.3) + activemodel (= 7.0.8.3) + activesupport (= 7.0.8.3) + activesupport (7.0.8.3) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (>= 1.6, < 2) + minitest (>= 5.1) + tzinfo (~> 2.0) + ast (2.4.2) + childprocess (4.1.0) + concurrent-ruby (1.2.3) + diff-lcs (1.5.0) + i18n (1.14.5) + concurrent-ruby (~> 1.0) + minitest (5.20.0) + mutant (0.12.0) + diff-lcs (~> 1.3) + parser (~> 3.3.0) + regexp_parser (~> 2.9.0) + sorbet-runtime (~> 0.5.0) + unparser (~> 0.6.9) + mutant-minitest (0.12.0) + minitest (~> 5.11) + mutant (= 0.12.0) + mutant-rspec (0.12.0) + mutant (= 0.12.0) + rspec-core (>= 3.8.0, < 4.0.0) + mysql2 (0.5.6) + parser (3.3.1.0) + ast (~> 2.4.1) + racc + pg (1.5.6) + racc (1.7.3) + rake (13.0.6) + regexp_parser (2.9.0) + rspec (3.12.0) + rspec-core (~> 3.12.0) + rspec-expectations (~> 3.12.0) + rspec-mocks (~> 3.12.0) + 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-support (3.12.1) + sorbet-runtime (0.5.11370) + sqlite3 (1.7.0-arm64-darwin) + sqlite3 (1.7.0-x86_64-darwin) + sqlite3 (1.7.0-x86_64-linux) + tzinfo (2.0.6) + concurrent-ruby (~> 1.0) + unparser (0.6.13) + diff-lcs (~> 1.3) + parser (>= 3.3.0) + +PLATFORMS + arm64-darwin-21 + arm64-darwin-22 + arm64-darwin-23 + x86_64-darwin-22 + x86_64-linux + +DEPENDENCIES + activerecord (~> 7.0.7) + childprocess + mutant (= 0.12.0) + mutant-minitest (= 0.12.0) + mutant-rspec (= 0.12.0) + mysql2 (~> 0.5.6) + pg (~> 1.5.6) + rake (>= 10.0) + rspec (~> 3.6) + ruby_event_store! + ruby_event_store-active_record! + sqlite3 (~> 1.7) + +BUNDLED WITH + 2.5.3 diff --git a/ruby_event_store-active_record/Gemfile.lock b/ruby_event_store-active_record/Gemfile.lock index 8d4872fbb8..da3e176a2e 100644 --- a/ruby_event_store-active_record/Gemfile.lock +++ b/ruby_event_store-active_record/Gemfile.lock @@ -14,21 +14,31 @@ PATH GEM remote: https://rubygems.org/ specs: - activemodel (7.0.8) - activesupport (= 7.0.8) - activerecord (7.0.8) - activemodel (= 7.0.8) - activesupport (= 7.0.8) - activesupport (7.0.8) + activemodel (7.1.3.3) + activesupport (= 7.1.3.3) + activerecord (7.1.3.3) + activemodel (= 7.1.3.3) + activesupport (= 7.1.3.3) + timeout (>= 0.4.0) + activesupport (7.1.3.3) + base64 + bigdecimal concurrent-ruby (~> 1.0, >= 1.0.2) + connection_pool (>= 2.2.5) + drb i18n (>= 1.6, < 2) minitest (>= 5.1) + mutex_m tzinfo (~> 2.0) ast (2.4.2) + base64 (0.2.0) + bigdecimal (3.1.8) childprocess (4.1.0) concurrent-ruby (1.2.3) + connection_pool (2.4.1) diff-lcs (1.5.0) - i18n (1.14.1) + drb (2.2.1) + i18n (1.14.5) concurrent-ruby (~> 1.0) minitest (5.20.0) mutant (0.12.0) @@ -43,6 +53,7 @@ GEM mutant-rspec (0.12.0) mutant (= 0.12.0) rspec-core (>= 3.8.0, < 4.0.0) + mutex_m (0.2.0) mysql2 (0.5.6) parser (3.3.1.0) ast (~> 2.4.1) @@ -68,6 +79,7 @@ GEM sqlite3 (1.7.0-arm64-darwin) sqlite3 (1.7.0-x86_64-darwin) sqlite3 (1.7.0-x86_64-linux) + timeout (0.4.1) tzinfo (2.0.6) concurrent-ruby (~> 1.0) unparser (0.6.13) @@ -82,6 +94,7 @@ PLATFORMS x86_64-linux DEPENDENCIES + activerecord (~> 7.1.3) childprocess mutant (= 0.12.0) mutant-minitest (= 0.12.0) diff --git a/support/ci/generate b/support/ci/generate index e5c5952246..728fc68c7f 100755 --- a/support/ci/generate +++ b/support/ci/generate @@ -59,6 +59,12 @@ class CI GEMFILE_AS_6_0 = "Gemfile.activesupport_6_0" ] + AR_GEMFILES = [ + GEMFILE_AR_7_0 = "Gemfile.activerecord_7_0", + GEMFILE_AR_6_1 = "Gemfile.activerecord_6_1", + GEMFILE_AR_6_0 = "Gemfile.activerecord_6_0" + ] + SIDEKIQ_GEMFILES = [ GEMFILE_SIDEKIQ_6_5 = "Gemfile.sidekiq_6_5", GEMFILE_SIDEKIQ_5_2 = "Gemfile.sidekiq_5_2" @@ -109,7 +115,7 @@ class CI matrix: generate( ruby_version(RUBY_VERSIONS), - bundle_gemfile(GEMFILE), + bundle_gemfile(GEMFILE, AR_GEMFILES), join( generate( database_url(SQLITE3),