2015-04-07 69 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