Skip to content

Commit 24b8183

Browse files
committed
Unrestrict sqlite3
A (non-documented?) test prerequisite is something like ``` for f in gemfiles/*.gemfile; do BUNDLE_GEMFILE=`pwd`/"$f" bundle; done ``` If sqlite3 is restricted to `~> 1.4.0`, then (e.g.) ``` BUNDLE_GEMFILE=`pwd`/gemfiles/rails_7_0_rspec_lt_3_10.gemfile bundle ``` fails with ``` current directory: ~/.rbenv/versions/3.2.5/lib/ruby/gems/3.2.0/gems/sqlite3-1.4.4/ext/sqlite3 make DESTDIR\= sitearchdir\=./.gem.20240923-65099-u4rqxb sitelibdir\=./.gem.20240923-65099-u4rqxb compiling aggregator.c compiling backup.c compiling database.c database.c:4:5: warning: '_MSC_VER' is not defined, evaluates to 0 [-Wundef] #if _MSC_VER ... ``` To use a newer sqlite3 improves this. To use no sqlite3 at all might also work.
1 parent 02ab80d commit 24b8183

6 files changed

+6
-6
lines changed

gemfiles/rails_6_0_rspec_gte_3_10.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gem "jdbc-sqlite3", platform: :jruby
1919
gem "net-ftp"
2020
gem "combustion"
2121
gem "rails", "~> 6.0.0"
22-
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
22+
gem "sqlite3", platform: [:ruby, :mswin, :mingw]
2323
gem "rspec", "3.12.0"
2424
gem "rspec-core", "3.12.0"
2525
gem "rspec-expectations", "3.12.3"

gemfiles/rails_6_0_rspec_lt_3_10.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gem "jdbc-sqlite3", platform: :jruby
1919
gem "net-ftp"
2020
gem "combustion"
2121
gem "rails", "~> 6.0.0"
22-
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
22+
gem "sqlite3", platform: [:ruby, :mswin, :mingw]
2323
gem "rspec", "~> 3.9.0"
2424
gem "rspec-rails"
2525

gemfiles/rails_6_1_rspec_gte_3_10.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gem "jdbc-sqlite3", platform: :jruby
1919
gem "net-ftp"
2020
gem "combustion"
2121
gem "rails", "~> 6.1.0"
22-
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
22+
gem "sqlite3", platform: [:ruby, :mswin, :mingw]
2323
gem "rspec", "3.12.0"
2424
gem "rspec-core", "3.12.0"
2525
gem "rspec-expectations", "3.12.3"

gemfiles/rails_6_1_rspec_lt_3_10.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gem "jdbc-sqlite3", platform: :jruby
1919
gem "net-ftp"
2020
gem "combustion"
2121
gem "rails", "~> 6.1.0"
22-
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
22+
gem "sqlite3", platform: [:ruby, :mswin, :mingw]
2323
gem "rspec", "~> 3.9.0"
2424
gem "rspec-rails"
2525

gemfiles/rails_7_0_rspec_gte_3_10.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gem "jdbc-sqlite3", platform: :jruby
1919
gem "net-ftp"
2020
gem "combustion"
2121
gem "rails", "~> 7.0.0"
22-
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
22+
gem "sqlite3", platform: [:ruby, :mswin, :mingw]
2323
gem "rspec", "3.12.0"
2424
gem "rspec-core", "3.12.0"
2525
gem "rspec-expectations", "3.12.3"

gemfiles/rails_7_0_rspec_lt_3_10.gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ gem "jdbc-sqlite3", platform: :jruby
1919
gem "net-ftp"
2020
gem "combustion"
2121
gem "rails", "~> 7.0.0"
22-
gem "sqlite3", "~> 1.4.0", platform: [:ruby, :mswin, :mingw]
22+
gem "sqlite3", platform: [:ruby, :mswin, :mingw]
2323
gem "rspec", "~> 3.9.0"
2424
gem "rspec-rails"
2525

0 commit comments

Comments
 (0)