-
Notifications
You must be signed in to change notification settings - Fork 313
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
Remove special case for id, type, and object_id #77
Conversation
On second thought, I don't want to deal with releasing a 1.3 since the last release was so long ago. I'd rather just release 2.0.0 |
I'm not sure I entirely agree with this...as unfortunate as it is, |
Cool with |
I'm ok with |
Closing b/c only 1.8 whines about this. There may be a workaround to silence the warning If someone's interested in making a pull, I'd be happy to review it. |
Hi guys, Sorry if I've misunderstood the comment that "only 1.8 whines about this", but running our test suite under 1.9.3 I'm seeing:
If this is the case (and I'm not being stupid - feel free to correct me if I am), does it make sense to just merge a version of this PR which just removes object_id but leaves id and type? |
@skipchris that sounds reasonable to me. If someone does want to override |
Yup, will do - just wanted to check I wasn't missing something! |
Avoids this warning on 1.9.3: /Users/mat/.rvm/gems/ruby-1.9.3-p194@.../gems/hashie-2.0.0/lib/hashie/mash.rb:80: warning: redefining `object_id' may cause serious problems
@skipchris @jch feel free to use #81 if it helps. |
:D |
Mash overrides the definitions of these core object methods to allow users to
have keys with these names. While it works at first glance, this encourages
bad code that will eventually come back and bite the user. Possible weird
behaviors include:
object_id
I won't merge this into the 1.x series since it's a breaking change, but I
plan to merge this after releasing 1.3
cc @mbleigh