Skip to content

Commit

Permalink
Support rails versions greater than 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lgebhardt committed Sep 17, 2019
1 parent bf3a943 commit d9222d3
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,20 @@ end

version = ENV['RAILS_VERSION'] || 'default'

platforms :ruby do
if version.start_with?('4.2', '5.0')
gem 'sqlite3', '~> 1.3.13'
else
gem 'sqlite3', '~> 1.4'
end
end

case version
when 'master'
gem 'railties', { git: 'https://github.com/rails/rails.git' }
gem 'arel', { git: 'https://github.com/rails/arel.git' }
when 'default'
gem 'railties', '>= 6.0'
when '6.0.0'
platforms :ruby do
gem 'sqlite3', '~> 1.4'
end

gem 'railties', "~> #{version}"
else
platforms :ruby do
gem 'sqlite3', '1.3.13'
end

gem 'railties', "~> #{version}"
end

0 comments on commit d9222d3

Please sign in to comment.