diff options
author | Stan Lo <stan001212@gmail.com> | 2024-04-12 20:00:58 +0800 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2024-04-12 12:01:03 +0000 |
commit | f1d9e895b92953add4b12f477c27852cc3d0955b (patch) | |
tree | d8bc1f904208e0206966c949c0fa6f290422d99b /lib/bundler/cli.rb | |
parent | 7b8b936f4a1cd9a629c0465c287fd0ed40519ebe (diff) |
[ruby/irb] Pass statements to Context#evaluate
(https://github.com/ruby/irb/pull/920)
This has a few benefits:
- We can keep hiding the evaluation logic inside the Context level, which
has always been the convention until #824 was merged recently.
- Although not an official API, gems like `debug` and `mission_control-jobs`
patch `Context#evaluate` to wrap their own logic around it. This implicit
contract was broken after #824, and this change restores it.
In addition to the refactor, I also converted some context-level evaluation
tests into integration tests, which are more robust and easier to maintain.
https://github.com/ruby/irb/commit/b32aee4068
Diffstat (limited to 'lib/bundler/cli.rb')
0 files changed, 0 insertions, 0 deletions