0

我对 Rails 很bundle install陌生,在 ActiveSupport 和threetaps-client(我需要用于我的项目)之间运行时遇到了这个gem冲突。

我尝试删除 Gemfile.lock 文件并bundle install再次运行,但它再次给了我相同的错误消息。我也尝试运行bundle update它也给出了相同的结果:(

Bundler could not find compatible versions for gem "activesupport":
  In snapshot (Gemfile.lock):
    activesupport (3.2.13)

  In Gemfile:
    threetaps-client (>= 0) ruby depends on
      activesupport (~> 3.0.0) ruby

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
4

1 回答 1

0

The issue here is that you are using Rails 3.2 (and thus, activesupport 3.2). However, threetaps-client is version locked to rails/activesupport 3.0.x. The easiest solution to this would be to downgrade Rails to 3.0 in your Gemfile with:

gem "rails", "~> 3.0"

And then remove the Gemfile.lock and bundle install again. You should be good to go after that.

EDIT

I was able to get the gem to support activesupport 3.2 (I think). The tests do not pass on this branch, but they did not pass on master either. I assume this probably has to do with credentials or something. Update your Gemfile to use this repo for threetaps-client

gem "threetaps-client", git: "git@github.com:ehowe/3taps-Ruby-Client"

Insert required "your mileage may vary" warning here.

于 2013-08-09T16:27:55.557 回答