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

Warning: You are setting a key that conflicts with a built-in method Hashie::Mash #87

Open
sshaw opened this issue Jul 23, 2017 · 1 comment

Comments

@sshaw
Copy link

sshaw commented Jul 23, 2017

Not sure why I'm getting this using what appears to be the appropriate API method:

irb [2.2.3] (export-pull-requests)$ cl = BitBucket.new
=> #<BitBucket::Client:0x007fa1754bc198 @adapter=:net_http, @client_id=nil, @client_secret=nil, @new_access_token=nil, @oauth_token=nil, @oauth_secret=nil, @endpoint="https://bitbucket.org/api", @mime_type=:json, @user_agent="BitBucket Ruby Gem 0.1.7", @connection_options={}, @repo="2048.el", @user="zck", @login="sshaw_", @password="hsomob1999", @basic_auth=nil>
irb [2.2.3] (export-pull-requests)$ cl.repos.pull_request.list("zck", "2048.el")
W, [2017-07-23T10:14:24.583659 #31632]  WARN -- : You are setting a key that conflicts with a built-in method Hashie::Mash#merge defined at /Users/sshaw/.rvm/gems/ruby-2.2.3/gems/hashie-3.5.5/lib/hashie/mash.rb:202. This can cause unexpected behavior when accessing the key via as a property. You can still access the key via the #[] method.
....
@ibrahima
Copy link

ibrahima commented May 1, 2018

I think something in this gem is creating an object with keys that override built in methods:

hashie/hashie#423

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

No branches or pull requests

2 participants