Skip to content

Commit

Permalink
update gemfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
seuros committed Oct 14, 2023
1 parent 4fd56e9 commit 924b13d
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
8 changes: 5 additions & 3 deletions Appraisals
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,22 @@

appraise 'activerecord-7.1' do
gem 'activerecord', '~> 7.1.0'
gem 'trilogy'
platforms :ruby do
gem 'sqlite3'
gem 'mysql2'
gem 'trilogy'
gem 'pg'
end
end

appraise 'activerecord-7.0' do
gem 'activerecord', '~> 7.0.0'
gem 'trilogy'
gem "activerecord-trilogy-adapter"
platforms :ruby do
gem 'sqlite3'
gem 'mysql2'
gem 'pg'
gem "activerecord-trilogy-adapter"
end
platforms :jruby do
gem "activerecord-jdbcmysql-adapter"
Expand All @@ -27,11 +28,12 @@ end

appraise 'activerecord-6.1' do
gem 'activerecord', '~> 6.1.0'
gem 'trilogy'
gem "activerecord-trilogy-adapter"
platforms :ruby do
gem 'sqlite3'
gem 'mysql2'
gem 'pg'
gem "activerecord-trilogy-adapter"
end
platforms :jruby do
gem "activerecord-jdbcmysql-adapter"
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/activerecord_6.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
source "https://rubygems.org"

gem "activerecord", "~> 6.1.0"
gem "trilogy"
gem "activerecord-trilogy-adapter"

platforms :ruby do
gem "sqlite3"
gem "mysql2"
gem "pg"
gem "activerecord-trilogy-adapter"
end

platforms :jruby do
Expand Down
3 changes: 2 additions & 1 deletion gemfiles/activerecord_7.0.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
source "https://rubygems.org"

gem "activerecord", "~> 7.0.0"
gem "trilogy"
gem "activerecord-trilogy-adapter"

platforms :ruby do
gem "sqlite3"
gem "mysql2"
gem "pg"
gem "activerecord-trilogy-adapter"
end

platforms :jruby do
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/activerecord_7.1.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
source "https://rubygems.org"

gem "activerecord", "~> 7.1.0"
gem "trilogy"

platforms :ruby do
gem "sqlite3"
gem "mysql2"
gem "trilogy"
gem "pg"
end

Expand Down
6 changes: 1 addition & 5 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@
ActiveRecord::Base.establish_connection

def env_db
@env_db ||= if ActiveRecord::Base.respond_to?(:connection_db_config)
ActiveRecord::Base.connection_db_config.adapter
else
ActiveRecord::Base.connection_config[:adapter]
end.to_sym
@env_db ||= ActiveRecord::Base.connection_db_config.adapter.to_sym
end

ActiveRecord::Migration.verbose = false
Expand Down

0 comments on commit 924b13d

Please sign in to comment.