From 0642ca65806c2b42fd3e3fbae10f3c68f06d5b49 Mon Sep 17 00:00:00 2001
From: megli2 <egli@puzzle.ch>
Date: Thu, 23 Jan 2025 15:38:58 +0100
Subject: [PATCH] Drop support for rails 7.0 and ruby 3.0

---
 .github/workflows/build.yml |  3 +--
 Gemfile.lock                |  2 +-
 test/dummy/Gemfile          | 10 +---------
 wagons.gemspec              |  2 +-
 4 files changed, 4 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index d4afff2..2bbff25 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -11,10 +11,9 @@ jobs:
     runs-on: ubuntu-latest
     strategy:
       matrix:
-        ruby-version: ["3.0", "3.1", "3.2"]
+        ruby-version: ["3.1", "3.2"]
         gemfile:
           - Gemfile
-          - test/ci/rails70.gemfile
           - test/ci/rails71.gemfile
         exclude:
           # Exclude Ruby 3.0 since it isn't supported with rails 7.2
diff --git a/Gemfile.lock b/Gemfile.lock
index dfa97d4..146d7a7 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -204,7 +204,7 @@ DEPENDENCIES
   net-smtp
   open4
   rails-controller-testing
-  sqlite3 (>= 1.4)
+  sqlite3 (<= 2.1)
   wagons!
 
 BUNDLED WITH
diff --git a/test/dummy/Gemfile b/test/dummy/Gemfile
index 6488933..4f5b82f 100644
--- a/test/dummy/Gemfile
+++ b/test/dummy/Gemfile
@@ -6,20 +6,12 @@ gem 'wagons', :path => File.expand_path(__FILE__).split("test#{File::SEPARATOR}d
 
 group :development, :test do
   gem 'net-smtp'
-  if RUBY_VERSION.start_with?('3.2')
-    gem 'sqlite3', '~> 2.1'
-  end
-  if RUBY_VERSION.start_with?('3.1')
-    gem 'sqlite3', '~> 2.1'
-  end
-  if RUBY_VERSION.start_with?('3.0')
-    gem 'sqlite3', '~> 1.4'
-  end
 end
 
 group :test do
   gem 'mocha', :require => false
   gem 'rails-controller-testing'
+  gem 'sqlite3', '~> 2.1'
 end
 
 # Include the wagons you want attached in Wagonfile.
diff --git a/wagons.gemspec b/wagons.gemspec
index 71a5da0..3c54edd 100644
--- a/wagons.gemspec
+++ b/wagons.gemspec
@@ -25,5 +25,5 @@ Gem::Specification.new do |s|
   s.add_dependency 'concurrent-ruby', '< 1.3.5'
 
   s.add_development_dependency 'open4'
-  s.add_development_dependency 'sqlite3', '>= 1.4'
+  s.add_development_dependency 'sqlite3', '<= 2.1'
 end