Faraday conflicts in google_drive and google-api-client

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-22 12:58:15

问题


I'd like to be able to use both the google-api-client gem to do service to service authentication and the google_drive api to access spreadsheets. Unfortunately, these gems seem to conflict due to requiring different versions of Faraday in their dependencies. Anyone know how to solve this?

Error if google_drive is required first:

specification.rb:1637:in `raise_if_conflicts': Unable to activate google-api-client-0.4.4, because faraday-0.8.1 conflicts with faraday (~> 0.7.0) (Gem::LoadError)

Error if google/api_client comes first:

specification.rb:1637:in `raise_if_conflicts': Unable to activate oauth2-0.7.1, because faraday-0.7.6 conflicts with faraday (~> 0.8) (Gem::LoadError)

回答1:


Give me an day or so and I'll update the google-api-client gem to use the more recent version of Faraday.

That said, you shouldn't need a separate gem to use Google Drive, and any gem designed to add syntactic sugar to a discovery based Google API should really be using the official gem as a base.



来源:https://stackoverflow.com/questions/11090145/faraday-conflicts-in-google-drive-and-google-api-client

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!