matthewrudy / memoist

ActiveSupport::Memoizable with a few enhancements
MIT License
920 stars 99 forks source link

Add ruby 3 compatibility. #94

Open bsa7 opened 2 years ago

bsa7 commented 2 years ago

After the release of Ruby 3, the division into positional and named arguments has changed. Because of this, memoization of some functions became impossible.

This pull request addresses the compatibility issue and also adds coverage for some cases.

pboling commented 3 months ago

FYI: Added this alert to the new memoist repo

[!IMPORTANT]

Recommendation

Consider using MemoWise instead, as it is maintained, fully tested, provides thread safety guarantees, and is much, much faster.

Other Alternatives

In case you need a tool with this feature set that is currently maintained, check out:

[!TIP]
Seriously though, read the important note above.

[!WARNING]
If you must continue - be aware that this is unmaintained software.