Skip to content

Commit c477777

Browse files
authored
Merge pull request #147 from tompng/rails8
Update ci matrix
2 parents 9bded4a + f7c15f9 commit c477777

8 files changed

Lines changed: 17 additions & 13 deletions

File tree

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ jobs:
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

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
66
gemspec
7-
gem 'sqlite3', '~> 1.4'
7+
gem 'sqlite3'
88
gem 'ar_serializer'

gemfiles/Gemfile-rails-6

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
66
gemspec path: '..'
77

8+
gem 'bigdecimal'
9+
gem 'base64'
10+
gem 'mutex_m'
11+
gem 'logger'
12+
gem 'concurrent-ruby', '1.3.4'
813
gem 'sqlite3', '~> 1.4'
914
gem 'activerecord', '~> 6.0'
1015
gem 'ar_serializer', github: 'tompng/ar_serializer'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
66
gemspec path: '..'
77

88
gem 'sqlite3', '~> 1.4'
9-
gem 'activerecord', '~> 7.0.0'
9+
gem 'activerecord', '~> 7.0'
1010
gem 'ar_serializer', github: 'tompng/ar_serializer'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
66
gemspec path: '..'
77

8-
gem 'sqlite3', '~> 1.4'
9-
gem 'activerecord', '~> 7.1.0'
8+
gem 'sqlite3'
9+
gem 'activerecord', '~> 8.0'
1010
gem 'ar_serializer', github: 'tompng/ar_serializer'

lib/ar_sync/config.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require 'ostruct'
21
module ArSync
32
config_keys = %i[
43
current_user_method

test/request_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ def self.around_action(*); end
1111

1212
class 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)

test/seed.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
require_relative 'model'
44
database_file = ActiveRecord::Base.connection.instance_eval { @config[:database] }
55
File.unlink database_file if File.exist? database_file
6-
ActiveRecord::Base.clear_all_connections!
6+
ActiveRecord::Base.connection_handler.clear_all_connections!
77
ActiveRecord::Migration::Current.class_eval do
88
create_table :users do |t|
99
t.string :name

0 commit comments

Comments
 (0)