Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hooks around of execution #295

Merged
merged 4 commits into from
May 24, 2021
Merged

Hooks around of execution #295

merged 4 commits into from
May 24, 2021

Conversation

mrkn
Copy link
Contributor

@mrkn mrkn commented May 24, 2021

The following four events are implemented in this pull request.

  • pre_execute -- occurred before every code execution
  • pre_run_cell -- occurred before every non-silent code execution
  • post_execute -- occurred after every code execution
  • post_run_cell -- occurred after every non-silent code execution

pre_execute and post_execute events do not take any argument. pre_run_cell event takes one argument, that is an IRuby::ExecutionInfo object. post_run_cell event takes one argument, that is the result of the code execution.

mrkn added 4 commits May 24, 2021 11:52
This commit also adds a new session adapter for testing.
The following four events are implemented in this commit.

- `pre_execute` -- occurred before every code execution
- `pre_run_cell` -- occurred before every non-silent code execution
- `post_execute` -- occurred after every code execution
- `post_run_cell` -- occurred after every non-silent code execution

`pre_execute` and `post_execute` events do not take any argument.
`pre_run_cell` event takes one argument, that is an `IRuby::ExecutionInfo`
object.  `post_run_cell` event takes one argument, that is the result of
the code execution.
@mrkn mrkn force-pushed the hooks_around_of_execution branch from 3a55824 to b526e4e Compare May 24, 2021 13:39
@mrkn mrkn merged commit 095acbd into master May 24, 2021
@mrkn mrkn deleted the hooks_around_of_execution branch May 24, 2021 13:44
@mrkn mrkn mentioned this pull request May 24, 2021
netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this pull request May 29, 2021
0.7.0 (2021-05-28)

Enhancements
* The default backend is changed to IRB (@mrkn)
* Add IRuby::Kernel#switch_backend! method (@mrkn)

Bug Fixes
* Fix the handling of image/svg+xml
  SciRuby/iruby#300,
  SciRuby/iruby#301 (@kojix2)

0.6.1 (2021-05-26)

Bug Fixes
* Follow the messages and hooks orders during execute_request processing
  (@mrkn)

0.6.0 (2021-05-25)

Bug Fixes
* Fix the handling of application/javascript
  SciRuby/iruby#292,
  SciRuby/iruby#294 (@kylekyle, @mrkn)

Enhancements
* Add the initialized event in IRuby::Kernel class
  SciRuby/iruby#168,
  SciRuby/iruby#296 (@Yuki-Inoue, @mrkn)
* Add the following four events SciRuby/iruby#295
  (@mrkn):
  - pre-execute -- occurs before every code execution
  - pre-run-cell -- occurs before every non-silent code execution
  - post-execute -- occurs after every code execution
  - post-run-cell -- occurs after every non-silent code execution
* Replace Bond with IRB in PlainBackend
  SciRuby/iruby#276,
  SciRuby/iruby#297 (@cfis, @mrkn)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant