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
Slice doesn't work using symbols #529
Labels
Comments
Also, it appears that |
Looks like a legit bug/non feature. Feel free to PR! |
Is there a spot in the codebase that would be a similar solution? I.e. overriding a Hash method. Something I could look at as an example? |
This is likely due to |
michaelherold
added
the
hacktoberfest
Issues that would be suitable for Hacktoberfest
label
Sep 30, 2020
gnomex
added a commit
to gnomex/hashie
that referenced
this issue
Oct 1, 2020
gnomex
added a commit
to gnomex/hashie
that referenced
this issue
Oct 1, 2020
gnomex
added a commit
to gnomex/hashie
that referenced
this issue
Oct 1, 2020
Closed via #531 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Hashie Team,
It appears that slice is not working. I noticed this when upgrading from ruby 2.4.5 to 2.5.8.
We had been using hashie 3.6. Upgrading to hashie 4.1 produced the same results.
Slice only seems to work with strings not symbols. Here is some test code:
output looks like this:
This works: {"test"=>"a value"}
This doesn't: {}
The text was updated successfully, but these errors were encountered: