Skip to content

Commit

Permalink
Pin sqlite3 version to 1.5.1 on Ruby < 2.5
Browse files Browse the repository at this point in the history
in extconf.rb, sqlite3 >= 1.5.2 uses Array#prepend which has been
introduced since Ruby 2.5
  • Loading branch information
amatsuda committed Aug 17, 2024
1 parent 90715e7 commit e7dc3b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ platforms :ruby do
when 'sqlite3', nil
if rails_version <= '5.0'
gem 'sqlite3', '< 1.4', require: false
elsif RUBY_VERSION < '2.5'
gem 'sqlite3', '1.5.1'
elsif (rails_version <= '8') || (RUBY_VERSION < '3')
gem 'sqlite3', '< 2', require: false
else
Expand Down

0 comments on commit e7dc3b0

Please sign in to comment.