Skip to content

Commit

Permalink
Require Ruby v3.1+
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
allard authored and rosa committed Jan 28, 2025
1 parent 2286ecd commit 44e4be2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions solid_queue.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Gem::Specification.new do |spec|
end

rails_version = ">= 7.1"
spec.required_ruby_version = '>= 3.1'
spec.add_dependency "activerecord", rails_version
spec.add_dependency "activejob", rails_version
spec.add_dependency "railties", rails_version
Expand Down

0 comments on commit 44e4be2

Please sign in to comment.