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

#291 - slice function will not crash if keep_key is not in the hash #292

Closed
wants to merge 4 commits into from

Conversation

brettcave
Copy link

If slice([:some_key]) is called on a hash that doesn't contain some_key, an error will be raised and the application will crash.

This PR allows keep_keys to be specified that are not in the original hash.

@colby
Copy link

colby commented Oct 11, 2014

Nice work @brettcave, confirmed to work in my env. @svenfuchs and @carlosantoniodasilva, can you please review and merge.

@jmara
Copy link

jmara commented Oct 17, 2014

Good job @brettcave, worked in my env, too. cheers

@brettcave
Copy link
Author

Glad to hear @colby / @jmara

@carlosantoniodasilva
Copy link
Member

I just merged #289 which implements this same fix. Thanks for your work on that.

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

4 participants