-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix regression introduced by frozen symbol fix
There was a recent change [1] made to how punctuation is escaped to address an issue introduced by a proposal in Ruby 2.7 (which is to change the behaviour of `Symbol#to_s` so that it returns a frozen string) [2]. This ended up breaking support for calling the `memoize` method with a punctuated string [3], e.g. ```ruby class Dog extend Memoist def woof? true end memoize 'woof?' end ``` I have added an additional test which should prevent further regressions from being introduced. [1] a893ce6 [2] https://bugs.ruby-lang.org/issues/16150 [3] #85
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters