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.
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.
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.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] https://github.com/matthewrudy/memoist/issues/85