Skip to content

Conversation

@schneems
Copy link
Collaborator

@schneems schneems commented Dec 7, 2022

Ruby 3.2.0rc1 introduced SyntaxError#path in addition to the ability to monkey patch SyntaxError. That means all code inside of this syntax error is guaranteed to be on Ruby 3.2. As the contents of the preview release were unstable, we do not have to continue to support older preview releases that did not contain SyntaxError#path

Ruby 3.2.0rc1 introduced SyntaxError#path in addition to the ability to monkey patch SyntaxError. That means all code inside of this syntax error is guaranteed to be on Ruby 3.2. As the contents of the preview release were unstable, we do not have to continue to support older preview releases that did not contain SyntaxError#path
@schneems schneems force-pushed the schnems/remove-legacy-preview-paths branch from 86ba726 to 59f2304 Compare December 7, 2022 22:17
Since syntax_suggest is now integrated with Ruby as a default gem it is now a bit tougher to test. The default gem monkeypatches SyntaxError so when it's monkey patched again via the gem the result will be different.

This change moves the module into a method that can be used to prepend any class for testing so we can assert behavior against our code in isolation while integration tests assert with the full stack.
@schneems schneems force-pushed the schnems/remove-legacy-preview-paths branch from 59f2304 to d6fc460 Compare December 7, 2022 22:22
@schneems schneems marked this pull request as ready for review December 7, 2022 22:33
@schneems schneems merged commit daee74d into main Dec 7, 2022
@schneems schneems deleted the schnems/remove-legacy-preview-paths branch December 7, 2022 22:34
@hsbt
Copy link
Member

hsbt commented Dec 8, 2022

👍

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