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

Protect send: a panic safe feature for Ruby interaction #88

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

danielpclark
Copy link
Contributor

@danielpclark danielpclark commented Feb 19, 2018

This is forked off of the eval PR. After ruby-sys is updated I'll fix the Cargo.toml file.

Provides

  • Object#protect_send -> Result<AnyObject, AnyObject>
  • Object#protect_public_send -> Result<AnyObject, AnyObject>

Methods can be called with these just like with send except instead of crashing when Ruby raises/throws an exception we can now handle the exception on the Err path.

TODO

  • Wait for ruby-sys update and update Cargo.toml

@danielpclark danielpclark changed the title Protect send Protect send: a panic safe feature for Ruby interaction Feb 19, 2018
@Antti
Copy link

Antti commented Mar 6, 2018

@danielpclark Exciting! Do you need a help with this? Are we still waiting for ruby-sys ?

@danielpclark
Copy link
Contributor Author

danielpclark commented Mar 6, 2018

Thanks, I don't need help, and yes we're waiting for ruby-sys.

In the mean time I've got all my PRs here available to use from the playground branch of my fork https://github.com/danielpclark/ruru/tree/playground . Since some of my gem releases for FasterPath depend on it I won't be deleting that branch ever.

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.

None yet

2 participants