Skip to content

Conversation

@meineerde
Copy link

In 497da58, you added a top-level return in case we are running on JRuby. This top-level return however is only supported since Ruby 2.4 (following https://bugs.ruby-lang.org/issues/4840)

Accordingly, trying to require the gem in Ruby 2.3 or earlier fails with the following error message:

lib/sorted_set.rb: lib/sorted_set.rb:5: Invalid return (SyntaxError)

This pull requests updates the declared minimum Ruby version to 2.4 so that the top-level return is guaranteed to be supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant