Skip to content

Commit

Permalink
Set the sqlite3 version to 2.1.0 or higher for Rails 8.0.
Browse files Browse the repository at this point in the history
To run CI with Rails 8.0, sqlite3 version 2.1.0 or higher is required.
  • Loading branch information
willnet committed Jan 23, 2025
1 parent 71b5862 commit bf354d3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion attr_encrypted.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@ Gem::Specification.new do |s|
s.add_development_dependency('activerecord-jdbcsqlite3-adapter')
s.add_development_dependency('jdbc-sqlite3', '< 3.8.7') # 3.8.7 is nice and broke
else
s.add_development_dependency('sqlite3', '= 1.5.4')
if ENV['ACTIVERECORD'] && Gem::Version.new(ENV['ACTIVERECORD']) >= Gem::Version.new('8.0')
s.add_development_dependency('sqlite3', '> 2.1.0')
else
s.add_development_dependency('sqlite3', '= 1.5.4')
end
end
s.add_development_dependency('dm-sqlite-adapter')
s.add_development_dependency('pry')
Expand Down

0 comments on commit bf354d3

Please sign in to comment.