-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add --stream flag to print the event stream as it is seen
* You may now provide an `event_handler` to toplevel * `SeeingIsBelieving`, it is expected to respond to `#call` and `#return_value` `SeeingIsBelieving.call` will return the handler's `return_value`. This is to avoid breaking the toplevel interface, as the default handler aggregates the events into a result, and returns that, allowing the return value to still be a Result, as before. * Events have an `#event_name` method, which returns their class's `event_name` * Handlers no longer do this silly `#to_proc` thing, they only need a `#call` method. * `EmitJsonEventsHandler` records `exitstatus` and `has_exception?` to * facilitate the needs of `Binary` without having to stack an `UpdateResultHandler` in there. That would be mildly annoying, and potentially expensive (one reason you might stream is to avoid building up a big in-memory object) * The recorded result is no longer part of the debugging output as there is not currently an interface to provide the debugger to an event stream.
- Loading branch information
Showing
9 changed files
with
145 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters