Skip to content

Commit

Permalink
only install trilogy and trilogy adapter if AR is >= 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zmariscal committed Feb 4, 2024
1 parent fabc47f commit 4fb4c4f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ jobs:
bundle exec rake test:spatialite
bundle exec rake test:sqlite3
- name: Run trilogy tests
if: ${{ matrix.env.AR_VERSION >= '6.0' && matrix.ruby != 'jruby' }}
if: ${{ matrix.env.AR_VERSION >= '7.0' && matrix.ruby != 'jruby' }}
run: bundle exec rake test:trilogy
lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ platforms :ruby do
gem "sqlite3", "~> #{sqlite3_version}"
# seamless_database_pool requires Ruby ~> 2.0
gem "seamless_database_pool", "~> 1.0.20" if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.0.0')
gem "trilogy" if version >= 6.0
if version >= 6.0 && version <= 7.0
gem "trilogy" if version >= 7.0
if version <= 7.0
gem "activerecord-trilogy-adapter"
end
end
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/6.0.gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true

gem 'activerecord', '~> 6.0.0'
gem 'composite_primary_keys'
gem 'composite_primary_keys', '~> 12.0'
2 changes: 1 addition & 1 deletion gemfiles/6.1.gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# frozen_string_literal: true

gem 'activerecord', '~> 6.1.0'
gem 'composite_primary_keys'
gem 'composite_primary_keys', '~> 13.0'

0 comments on commit 4fb4c4f

Please sign in to comment.