ip2k / google-api-ruby-client

Automatically exported from code.google.com/p/google-api-ruby-client
Apache License 2.0
0 stars 0 forks source link

Already initialized constants KeyMap, DEFAULT_SEP in ree-1.8.7 #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a new rails app
2. Put google-api-client in the Gemfile
3. Bundle install
4. Run rails c

What is the expected output? What do you see instead?
Expected: no warnings
Actual: The following warnings appear:
/faraday-0.8.4/lib/faraday/utils.rb:21: warning: already initialized constant 
KeyMap
/faraday-0.8.4/lib/faraday/utils.rb:182: warning: already initialized constant 
DEFAULT_SEP

What version of the product are you using? On what operating system?
google-api-client 0.4.5, Mac OSX 10.7, ree-1.8.7-2012.02

Please provide any additional information below.
It seems that faraday/utils.rb is getting required more than once. This doesn't 
happen under ruby-1.9.3-p194, but it our rails app is not on 1.9.3 yet

Original issue reported on code.google.com by richard....@gmail.com on 4 Sep 2012 at 10:10

GoogleCodeExporter commented 9 years ago
It looks like the problem may be in signet rather than google-api-ruby-client. 
I was able to get rid of the warnings by commenting out line 17 (require 
'faraday/utils') in lib/signet/oauth_x/client.rb since faraday/utils is already 
required in faraday. I've made a pull request on the signet project with this 
change.

Original comment by richard....@gmail.com on 5 Sep 2012 at 1:34

GoogleCodeExporter commented 9 years ago
Bug filed on the wrong project, closing.

Original comment by bobaman@google.com on 5 Sep 2012 at 11:49