We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ice_cube 0.17.0+ starts using the new "anonymous block argument" feature of Ruby 3.1+ (https://rubyreferences.github.io/rubychanges/3.1.html#anonymous-block-argument). This syntax is incompatible with Ruby 3.0 and below, but the gemspec allows installing ice_cube with any version of Ruby. It's used for example here.
If you are still on Ruby 2.7 and are trying to upgrade, 0.16.4 is the version that is dual-compatible with both ruby 2.7 and 3.0.
Feel free to close this issue, I just wanted to document this here for anyone else who runs into the same thing in the future.
The text was updated successfully, but these errors were encountered:
Lost support for ruby 2.x.x
Line of the error
/app/vendor/bundle/ruby/2.7.0/gems/ice_cube-0.17.0/lib/ice_cube/schedule.rb:163: syntax error, unexpected ')', expecting local variable or method (SyntaxError) def each_occurrence(&) ^ /app/vendor/bundle/ruby/2.7.0/gems/ice_cube-0.17.0/lib/ice_cube/schedule.rb:164: syntax error, unexpected ')' ...rate_occurrences(start_time, &).to_a ... ^ /app/vendor/bundle/ruby/2.7.0/gems/ice_cube-0.17.0/lib/ice_cube/schedule.rb:502: syntax error, unexpected `end', expecting end-of-input
Sorry, something went wrong.
No branches or pull requests
ice_cube 0.17.0+ starts using the new "anonymous block argument" feature of Ruby 3.1+ (https://rubyreferences.github.io/rubychanges/3.1.html#anonymous-block-argument). This syntax is incompatible with Ruby 3.0 and below, but the gemspec allows installing ice_cube with any version of Ruby. It's used for example here.
If you are still on Ruby 2.7 and are trying to upgrade, 0.16.4 is the version that is dual-compatible with both ruby 2.7 and 3.0.
Feel free to close this issue, I just wanted to document this here for anyone else who runs into the same thing in the future.
The text was updated successfully, but these errors were encountered: