Closed K-S-A closed 3 years ago
Probably, it will be better to add backward compatibility with ruby 2.x versions.
For sure. Would the current be compatible?
For sure. Would the current be compatible?
Not yet. I'll need to make a few tweaks. E.g. replace recently introduced ...
.
@brandonhilkert , is it necessary to support ruby versions before ruby 2.5?
Ruby 2.5 EOL date: 2021-03-31 (https://www.ruby-lang.org/en/downloads/branches/)
Yes, I'd like to. What changes would have to be excluded? Although it could be a major bump, but I always find that to be extremely frustrating as a user.
I'll check PR tomorrow morning my time and will add final fixes and some test cases, if necessary.
Could you add an entry to the change log?
@brandonhilkert , I've updated CHANGES.md
. Not sure about the exact version number, though.
Let's go with 3.0.0. Seems fitting ;)
I do like 3.0.0) Done.
3.0.0
has been released. Thanks again!
(*args, **kwargs)
-delegation is unfortunately incorrect on Ruby <= 2.7.
In other words, (*args, **kwargs)
-delegation is only correct in Ruby 3+.
See https://eregon.me/blog/2021/02/13/correct-delegation-in-ruby-2-27-3.html for correct delegation compatible with Ruby 2 & 3.
For context, it also triggered an error in JRuby for our test suite @ https://github.com/DataDog/dd-trace-rb/issues/1369 which is why I ended up reporting it TruffleRuby && JRuby.
Fixed in 3.0.1
.
Thanks for the quick fix and release :) (https://github.com/brandonhilkert/sucker_punch/pull/236)
This PR adds ruby 3.0 compatibility.
Fixes: https://github.com/brandonhilkert/sucker_punch/issues/234