2015-04-07 70 views
1

我有一个使用Appnexusapi gem的应用程序。现在我需要在我的应用程序中安装google-api-client gem(> = 0.8.2)来连接google adx api。但在安装google-api-client时,我得到法拉第和multi_json gem的依赖关系问题。任何人都可以为我解决这个问题。无法安装google-api-client gem最新版本以及appnexusapi gem

请找到下面的错误我得到

 Bundler could not find compatible versions for gem "multi_json": 
In Gemfile: 
    appnexusapi (>= 0) ruby depends on 
     multi_json (~> 1.0.3) ruby 

    google-api-client (= 0.8.2) ruby depends on 
     multi_json (1.10.0)

在此先感谢

回答

0

问appnexusapi的作者更新到multi_json更高版本。当你等待时,你可以尝试自己分叉,更新gemspec,然后指定你的叉子作为宝石来源。如果您能够使用最新版本的multi_json(我看不到任何测试),那么您可以发送拉请求。

+0

感谢您的回复@Gerry。但是,如果我更新appnexusapi的gemspec appnexusapi的内部方法不起作用 –

+0

不幸的是,这意味着有人必须修复这些内部方法。然而,考虑到multijson声称次要版本不应该破坏任何东西(https://github.com/intridea/multi_json#versioning),这很奇怪。这可能是Appnexusapi中的一个简单解决方案。试一试 – Gerry