From d9222d314133ebdaae58942b3d253f8fd5ac6cb0 Mon Sep 17 00:00:00 2001 From: Larry Gebhardt Date: Tue, 17 Sep 2019 11:50:57 -0400 Subject: [PATCH] Support rails versions greater than 6.0.0 --- Gemfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Gemfile b/Gemfile index c2acdf548..754aad900 100644 --- a/Gemfile +++ b/Gemfile @@ -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 \ No newline at end of file