File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55 strategy :
66 fail-fast : false
77 matrix :
8- ruby : [ '3.1 ', '3.2 ', '3.3 ' ]
8+ ruby : [ '3.2 ', '3.3 ', '3.4 ' ]
99 gemfiles :
1010 - gemfiles/Gemfile-rails-6
11- - gemfiles/Gemfile-rails-7-0
12- - gemfiles/Gemfile-rails-7-1
11+ - gemfiles/Gemfile-rails-7
12+ - gemfiles/Gemfile-rails-8
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -4,5 +4,5 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
44
55# Specify your gem's dependencies in ar_sync.gemspec
66gemspec
7- gem 'sqlite3' , '~> 1.4'
7+ gem 'sqlite3'
88gem 'ar_serializer'
Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
55# Specify your gem's dependencies in ar_sync.gemspec
66gemspec path: '..'
77
8+ gem 'bigdecimal'
9+ gem 'base64'
10+ gem 'mutex_m'
11+ gem 'logger'
12+ gem 'concurrent-ruby', '1.3.4'
813gem 'sqlite3', '~> 1.4'
914gem 'activerecord', '~> 6.0'
1015gem 'ar_serializer', github: 'tompng/ar_serializer'
Original file line number Diff line number Diff line change @@ -6,5 +6,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
66gemspec path: '..'
77
88gem 'sqlite3', '~> 1.4'
9- gem 'activerecord', '~> 7.0.0 '
9+ gem 'activerecord', '~> 7.0'
1010gem 'ar_serializer', github: 'tompng/ar_serializer'
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
55# Specify your gem's dependencies in ar_sync.gemspec
66gemspec path: '..'
77
8- gem 'sqlite3', '~> 1.4'
9- gem 'activerecord', '~> 7.1 .0'
8+ gem 'sqlite3'
9+ gem 'activerecord', '~> 8 .0'
1010gem 'ar_serializer', github: 'tompng/ar_serializer'
Original file line number Diff line number Diff line change 1- require 'ostruct'
21module ArSync
32 config_keys = %i[
43 current_user_method
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ def self.around_action(*); end
1111
1212class TsTest < Minitest ::Test
1313 PARAMS_TYPE = { fooId : :int , bar : { bazId : :int } }
14- class Model ActiveRecord :: Base
15- def self . after_initialize ( *) ; end
16- def self . before_destroy ( *) ; end
17- def self . after_commit ( *) ; end
14+ class Model
15+ def self . after_initialize ( *, & ) ; end
16+ def self . before_destroy ( *, & ) ; end
17+ def self . after_commit ( *, & ) ; end
1818 include ArSerializer ::Serializable
1919 include ArSync ::ModelBase
2020 def self . validate! ( foo_id , bar )
Original file line number Diff line number Diff line change 33require_relative 'model'
44database_file = ActiveRecord ::Base . connection . instance_eval { @config [ :database ] }
55File . unlink database_file if File . exist? database_file
6- ActiveRecord ::Base . clear_all_connections!
6+ ActiveRecord ::Base . connection_handler . clear_all_connections!
77ActiveRecord ::Migration ::Current . class_eval do
88 create_table :users do |t |
99 t . string :name
You can’t perform that action at this time.
0 commit comments