Skip to content

Commit

Permalink
Update sqlite3 version selection
Browse files Browse the repository at this point in the history
  • Loading branch information
pilaf committed Nov 22, 2024
1 parent b6cc9be commit 5746251
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions fmrest.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ Gem::Specification.new do |spec|
spec.add_development_dependency "yard"
spec.add_development_dependency "yard-activesupport-concern"

ar_version = ENV["ACTIVE_RECORD_VERSION"] || "~> 7.0"
ar_version = ENV["ACTIVE_RECORD_VERSION"] || ">= 7.1"
sqlite3_version =
if (4.2..5.2).include?(ar_version.to_s.gsub(/[^\d.]/, "").to_f)
case ar_version.to_s.gsub(/[^\d.]/, "").to_f
when 4.2..5.2
"~> 1.3.0"
else
when 6.0..7.0
"~> 1.4.0"
when 7.1..7.2
">= 1.4.0"
else
">= 2.1"
end

spec.add_development_dependency "activerecord", ar_version
Expand Down

0 comments on commit 5746251

Please sign in to comment.