Skip to content

Commit 44e4be2

Browse files
allardrosa
authored andcommittedJan 28, 2025·
Require Ruby v3.1+
When attempting to install SQ 1.1.2 on a Ubuntu 22.04LTS system with default ruby (3.0.5) and Rails 7.1 it fails with the following error: ``` SyntaxError: /usr/lib/ruby/gems/3.0.0/gems/solid_queue-1.1.2/lib/solid_queue/processes/interruptible.rb:25: syntax error, unexpected ')' queue.pop(timeout:).tap { queue.clear } ``` Using Ruby 3.1 there's no such error. It therefore seems that the gemspec should specify Ruby 3.1 as the minimum ruby version and not just Rails 7.1.
1 parent 2286ecd commit 44e4be2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎solid_queue.gemspec

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
2323
end
2424

2525
rails_version = ">= 7.1"
26+
spec.required_ruby_version = '>= 3.1'
2627
spec.add_dependency "activerecord", rails_version
2728
spec.add_dependency "activejob", rails_version
2829
spec.add_dependency "railties", rails_version

0 commit comments

Comments
 (0)