法拉第在google_drive和google-api-client中发生冲突 [英] Faraday conflicts in google_drive and google-api-client
问题描述
我希望能够同时使用google-api-client gem服务进行服务身份验证,并使用google_drive API访问电子表格。不幸的是,由于在它们的依赖中需要不同版本的法拉第,这些宝石似乎有冲突。任何人都知道如何解决这个问题?
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?
如果首先需要google_drive,则会出错:
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)
如果google / api_client在第一位,错误:
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)
推荐答案
给我一天左右的时间,我们会更新google-api-client gem以使用更新版本的Faraday。
Give me an day or so and I'll update the google-api-client gem to use the more recent version of Faraday.
也就是说,您不需要单独的gem即可使用Google Drive,并且任何设计用于将语法糖添加到基于Google API的发现的gem应该使用官方gem作为基础。
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.
这篇关于法拉第在google_drive和google-api-client中发生冲突的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!