-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
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
Using Hash#slice forces ruby 2.5+ #83
Comments
Thanks for raising this, I think we would definitely want to remove the use of slice in the code. Would one you be open to preparing a simple patch? cc @albb0920 @hkmaly I'd be happy to merge and release a patch update. However I wonder if there are other reasons the code wouldn't work prior to Ruby 2.5. Alternatively I'd be happy to add a note to the readme specifying this library now only works with Ruby 2.5 or above |
Ruby 2.3 has long been EoL-ed, I don't think time should be spent on making EoL-ed ruby work. Time should be spent instead on refreshing the code and make it work well with ruby 3.0 |
Hmmm ... ok, it didn't get through tests, maybe I don't understand the code as much as I though. |
If it's as simple a fix as #84 to support 2.3, then I am all for it. However, I am also fine adding a note that this only works with 2.5 and above especially given that 2.3 was EOL in 2019 |
The slice method was added in ruby 2.5+. On ruby 2.3 it causes this error:
If that's deliberate, ok, but I would expect explicit mention on README. If it's not (and seems it's only slice in whole code), you may want to re-think 13e9791
The text was updated successfully, but these errors were encountered: