Skip to content

Commit

Permalink
Prevent sqlite3 2.0 except for Rails edge
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebarrie committed Apr 22, 2024
1 parent ff317e0 commit 7d290bf
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ gem "capybara"
gem "debug"
gem "mocha"
gem "puma"
if defined?(@rails_gem_requirement) && @rails_gem_requirement
if @rails_gem_requirement
# causes Dependabot to ignore the next line and update the next gem "rails"
rails = "rails"
gem rails, @rails_gem_requirement
Expand All @@ -20,5 +20,11 @@ gem "rubocop"
gem "rubocop-shopify"
gem "selenium-webdriver"
gem "sprockets-rails"
gem "sqlite3"
if @sqlite3_requirement
# causes Dependabot to ignore the next line and update the next gem "sqlite3"
sqlite3 = "sqlite3"
gem sqlite3, @sqlite3_requirement
else
gem "sqlite3"
end
gem "yard"
1 change: 1 addition & 0 deletions gemfiles/rails_6_0.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

@rails_gem_requirement = "~> 6.0.0"
@sqlite3_requirement = "~> 1.4"

eval_gemfile "../Gemfile"
1 change: 1 addition & 0 deletions gemfiles/rails_6_1.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

@rails_gem_requirement = "~> 6.1.0"
@sqlite3_requirement = "~> 1.4"

eval_gemfile "../Gemfile"
1 change: 1 addition & 0 deletions gemfiles/rails_7_0.gemfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

@rails_gem_requirement = "~> 7.0.4"
@sqlite3_requirement = "~> 1.4"

eval_gemfile "../Gemfile"

0 comments on commit 7d290bf

Please sign in to comment.