Skip to content

Commit

Permalink
Pin sqlite for Ruby 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeer committed Jan 4, 2024
1 parent b850ff0 commit 4ca3384
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/engine_cart/tasks/engine_cart.rake
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,15 @@ namespace :engine_cart do
text.gsub(/^gem ["']sqlite3["']$/, 'gem "sqlite3", "~> 1.3.0"')
end)
end

if RUBY_VERSION < '3.0'
# Hack for https://github.com/cbeer/engine_cart/issues/125
gemfile = File.join(EngineCart.destination, 'Gemfile')
IO.write(gemfile, File.open(gemfile) do |f|
text = f.read
text.gsub(/^gem ["']sqlite3["']$/, 'gem "sqlite3", "< 1.7"')
end)
end
end
end

Expand Down

0 comments on commit 4ca3384

Please sign in to comment.