Skip to content

Commit 90ea2b7

Browse files
committed
Require Rails >= 7.1
1 parent 12c18de commit 90ea2b7

File tree

5 files changed

+5
-13
lines changed

5 files changed

+5
-13
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ PATH
22
remote: .
33
specs:
44
solid_queue (0.1.2)
5-
rails (>= 7.0.3.1)
5+
rails (>= 7.1)
66

77
GEM
88
remote: https://rubygems.org/

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ $ bundle exec rake solid_queue:start
6767
This will start processing jobs in all queues using the default configuration. See [below](#configuration) to learn more about configuring Solid Queue.
6868

6969
## Requirements
70-
Besides Rails 7, Solid Queue works best with MySQL 8+ or PostgreSQL 9.5+, as they support `FOR UPDATE SKIP LOCKED`. You can use it with older versions, but in that case, you might run into lock waits if you run multiple workers for the same queue.
70+
Besides Rails 7.1, Solid Queue works best with MySQL 8+ or PostgreSQL 9.5+, as they support `FOR UPDATE SKIP LOCKED`. You can use it with older versions, but in that case, you might run into lock waits if you run multiple workers for the same queue.
7171

7272
## Configuration
7373

app/models/solid_queue/failed_execution.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
# frozen_string_literal: true
22

33
class SolidQueue::FailedExecution < SolidQueue::Execution
4-
if Gem::Version.new(Rails.version) >= Gem::Version.new("7.1")
5-
serialize :error, coder: JSON
6-
else
7-
serialize :error, JSON
8-
end
4+
serialize :error, coder: JSON
95

106
before_create :expand_error_details_from_exception
117

app/models/solid_queue/job.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ module SolidQueue
44
class Job < Record
55
include Executable
66

7-
if Gem::Version.new(Rails.version) >= Gem::Version.new("7.1")
8-
serialize :arguments, coder: JSON
9-
else
10-
serialize :arguments, JSON
11-
end
7+
serialize :arguments, coder: JSON
128

139
class << self
1410
def enqueue_all(active_jobs)

solid_queue.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
1717
Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.md"]
1818
end
1919

20-
spec.add_dependency "rails", ">= 7.0.3.1"
20+
spec.add_dependency "rails", ">= 7.1"
2121
spec.add_development_dependency "debug"
2222
spec.add_development_dependency "mocha"
2323
spec.add_development_dependency "puma"

0 commit comments

Comments
 (0)