Skip to content

Incorrect minimum Ruby version #41

@nsmmrs

Description

@nsmmrs

After upgrading from 0.2.1 to 0.2.2, I started getting this error when running (unrelated) rake tasks:

rake aborted!
SyntaxError: /app/bundle/ruby/2.7.0/gems/singed-0.2.2/lib/singed/kernel_ext.rb:2: syntax error, unexpected ')', expecting local variable or method
...interval: 1000, io: $stdout, &)
...                              ^
/app/bundle/ruby/2.7.0/gems/singed-0.2.2/lib/singed/kernel_ext.rb:4: syntax error, unexpected ')'
    result = fg.record(&)
                        ^
/app/bundle/ruby/2.7.0/gems/singed-0.2.2/lib/singed/kernel_ext.rb:17: syntax error, unexpected `end', expecting end-of-input

This is because the "bare ampersand" block-forwarding was added in Ruby 3.1, but I'm still on 2.7.

I see this was due to a Standardrb auto-fix; not sure if standardrb lets you specify a desired level of backwards-compatibility or not.

As I'm not sure what's involved in updating a Rubygems release, I've neglected to make any commits, but I hope this is helpful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions