bitbucket-rest-api / bitbucket

BitBucket API gem - bitbucket_rest_api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

sshaw opened this issue · comments

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.
....

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

hashie/hashie#423