相同gem中的冲突依赖关系。 Bundler无法找到gem“faraday”的兼容版本

时间:2013-06-21 18:06:29

标签: gem dependencies bundler google-api-client

所以我正在运行bundle install,我收到此错误:

Bundler could not find compatible versions for gem "faraday":
  In Gemfile:
    google-api-client (= 0.5.0) ruby depends on
      faraday (~> 0.8.1) ruby

    google-api-client (= 0.5.0) ruby depends on
      faraday (0.9.0.rc5)

我看到这一点的方式是我的一个宝石,google-api-client -v 0.5.0有内部冲突的依赖关系。这怎么可能?

我尝试删除Gemfile.lock,我尝试了google-api-client的不同版本(0.5.0和0.6.0)但似乎没有任何帮助。谁知道这里发生了什么?

的Gemfile:

source 'https://code.stripe.com'
source 'https://rubygems.org'

ruby '1.9.3'
gem 'rails', '3.2.11'

gem 'pg', '0.14.1'
gem 'devise', '2.1.2'
gem 'omniauth', '1.1.1'
gem 'omniauth-linkedin', '0.0.8'
gem 'omniauth-angellist', git: 'git://github.com/codequest-eu/omniauth-angellist.git', ref: 'b970a2bc834b35980b0a81162e0d367df880a69b'
gem 'angellist_api', '1.0.2'
gem 'linkedin', '0.3.7'
gem 'system-bang', '1.0.0'
gem 'jquery-rails', '2.1.3'
gem 'unicorn', '4.3.1'
gem 'pdfkit', '0.5.2'
gem 'wkhtmltopdf-binary', '0.9.9.1'
gem 'acts-as-taggable-on', '2.3.3'
gem 'kaminari', '0.14.1'
gem 'uuidtools', '2.1.2'
gem 'google-api-client', '0.5.0'
gem 'paperclip', '3.3.1'
gem 'aws-sdk', '1.7.1'
gem 'stripe', '1.8.3'
gem 'newrelic_rpm'

group :assets do
  gem 'sass-rails', '3.2.5'
  gem 'coffee-rails', '3.2.2'
  gem 'uglifier', '1.3.0'
  gem 'compass-rails', '1.0.3'
  gem 'oily_png', '1.0.2'
  gem 'backbone-on-rails', '0.9.2.3'
end

group :development do
  gem 'thin', '1.5.0'
  gem 'rails-dev-tweaks', '0.6.1'
  gem 'rails_best_practices', '1.13.3'
  gem 'quiet_assets', '1.0.1'
  gem 'bullet', '4.3.0'
end

group :test do
  gem 'spork-rails', '3.2.0'
  gem 'rspec-rails', '2.11.0'
  gem 'email_spec', '1.4.0'
  gem 'rspec-html-matchers', '0.3.5'
  gem 'assert_difference', '0.5.0'
  gem 'timecop', '~> 0.5.4'

  gem 'capybara', '1.1.2'
  gem 'capybara-webkit', '0.13.0'
  gem 'headless', '0.3.1'
  gem 'fakeweb', '1.3.0'
  gem 'factory_girl_rails', '4.1.0'
  gem 'ci_reporter', '1.7.0'
  gem 'simplecov', '0.6.4', require: false
  gem 'simplecov-rcov', '0.2.3', require: false
  gem 'ruby-prof', '0.11.2', require: false
  gem 'therubyracer', '0.10.2', require: 'v8'

  gem 'database_cleaner', '0.9.1'
end

1 个答案:

答案 0 :(得分:2)

我发现此问题仅出现在版本google-api-client -v 0.5.0google-api-client -v 0.6.0(可能是其他版本)中。改为0.6.4解决了我的问题。

希望这会帮助其他人。