[gem][alpha] TraceSpy - TracePoint + Pattern Matching API


(Brandon Weaver) #1

Made a wrapper around TracePoint after playing with it for a while to make
it a bit easier to watch all types of different things. It's based on top
of Qo <https://github.com/baweaver/qo> to allow you to do things like:

   - Intercept when an argument is nil
   - Intercept when an argument is within a certain range
   - Intercept when a local variable is assigned to a certain value

...and a lot more, I'm just starting to discover some of the things that
can be done with this.
The API is a work in progress, and I'll likely be extending it more in the
future as I understand TracePoint more.

Enjoy!
- @baweaver