我对rails很新,我在ActiveSupport和threetaps-client(我需要用于我的项目)之间运行bundle install
时遇到了这个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.
答案 0 :(得分:0)
这里的问题是你正在使用Rails 3.2(因此,activesupport 3.2)。但是,threetaps-client的版本已锁定到rails / activesupport 3.0.x.最简单的解决方案是使用以下命令将Rails降级到3.0:
gem "rails", "~> 3.0"
然后删除Gemfile.lock
并再次捆绑安装。你应该好好去追求它。
修改强>
我能够获得gem支持activesupport 3.2(我认为)。测试不会传递给这个分支,但它们也没有传递给master。我认为这可能与凭证或其他东西有关。更新您的Gemfile
以将此回购用于threetaps-client
gem "threetaps-client", git: "git@github.com:ehowe/3taps-Ruby-Client"
在此处插入所需的“您的里程可能会有所不同”警告。