[ruby/irb] Fix usage of tracer gem and add tests

(https://github.com/ruby/irb/pull/857)

The new tests are skipped when ruby below 3.1, as it was a default gem on it, and in a version we do not support.

This also move definition of `use_tracer` to module Context instead of monkey patch.

08834fbd5f
This commit is contained in:
Nuno Silva 2024-02-06 16:46:41 +00:00 committed by git
parent 26fac8f6fa
commit 300dee1fe8
6 changed files with 116 additions and 55 deletions

View file

@ -317,7 +317,6 @@ module IRB # :nodoc:
@EXTEND_COMMANDS = [
[:eval_history=, "ext/eval_history.rb"],
[:use_tracer=, "ext/tracer.rb"],
[:use_loader=, "ext/use-loader.rb"],
]