Skip to content

Conversation

@casperisfine
Copy link

Recently an experimental feature has been merged in Ruby's master https://bugs.ruby-lang.org/issues/16150

In short Symbol#to_s will return a frozen string, whereas before it would always return a new mutable string.

Because of this Pry::Slop#method_missing breaks on ruby-head.

The fix is quite straightforward, I simply reworked the code a little bit to avoid mutating the string.

@casperisfine
Copy link
Author

@kyrylo may I draw your attention on this PR ? It's not particularly urgent, but I think that if it's fixed and released early, it will make the Ruby 2.7 upgrade much smoother for the general public.

@kyrylo
Copy link
Member

kyrylo commented Oct 21, 2019

Thanks. It also probably makes sense to test pry against 2.7 if Circle has it.

@kyrylo kyrylo merged commit 899684c into pry:master Oct 21, 2019
@casperisfine
Copy link
Author

It has the first 2.7 preview, but it doesn't include that change.

However you can test against ruby-head even though it's recommended to allow failures for that one.

I can open a PR when the next preview is released in a couple weeks if you'd like.

@kyrylo
Copy link
Member

kyrylo commented Oct 21, 2019

That would be great. I just don’t know how to allow failures on Circle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants