Skip to content
This repository was archived by the owner on Mar 12, 2023. It is now read-only.

Refactor REPL manager #78

Merged
merged 13 commits into from
Dec 1, 2020
Merged

Refactor REPL manager #78

merged 13 commits into from
Dec 1, 2020

Conversation

0x2c7
Copy link
Owner

@0x2c7 0x2c7 commented Nov 29, 2020

0x2c7 added 13 commits November 27, 2020 20:47
Monkey-patching Pry class directly to inject Jard's specific objects are
bad. It may affect other plugins, prevent Jard and pry to co-exist, and
make Jard hard to maintain forward compatibility in later verions of
Pry. Creating a proxy class to isolate all Pry-related logic seems to be
a good solution.
Pry::Commands aka Pry.config.commands is the registry that Pry uses to
store declared commands. Jard implements a lot of custom commands. If it
uses Pry::Commands, any binding.pry triggered later includes Jard's
specific commands. That leads to a forever error loop.
@0x2c7 0x2c7 merged commit 5613d82 into master Dec 1, 2020
@0x2c7 0x2c7 deleted the refactor/isolate-pry branch December 1, 2020 04:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant