-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI: add activerecord v8.0, which requires Ruby 3.2 at minimum * Gemfile: allow activerecord < 8.1, which supports sqlite3 2.1 at minimum * gemspec: activerecord/railties < 8.1 * Specify the appropriate sqlite3 version in the dev group * Gemfile: simplify sqlite3 version selection
- Loading branch information
Showing
4 changed files
with
28 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rake', '>= 10.0' | ||
gem 'activerecord', ENV['AR'] ? ENV['AR'].split(",") : [">= 6.0.0", "< 8.0"] | ||
gem 'railties', ENV['AR'] ? ENV['AR'].split(",") : [">= 6.0.0", "< 8.0"] | ||
gem 'activerecord', ENV['AR'] ? ENV['AR'].split(",") : [">= 6.0.0", "< 8.1"] | ||
gem 'railties', ENV['AR'] ? ENV['AR'].split(",") : [">= 6.0.0", "< 8.1"] | ||
gem 'nokogiri', "~> 1.14" | ||
|
||
def sqlite3_version | ||
return "< 1.7" unless ENV["AR"] | ||
|
||
ar_version = ENV['AR'].split(",").last.match(/\d+\.\d+/)[0] | ||
|
||
case Gem::Version.new(ar_version) | ||
# Active Record 8.x requires sqlite3 >= 2.1 | ||
when Gem::Version.new("8.0").. then ">= 2.1" | ||
else "< 1.7" | ||
end | ||
end | ||
|
||
group :dev do | ||
gem 'sqlite3', '< 1.7' | ||
gem 'sqlite3', sqlite3_version | ||
gem 'rspec', '>= 2.99.0' | ||
gem 'jeweler' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters