0

在 gem 中,我指定了spec.add_dependency "active_support",但是当我将我的 gem 添加到 Rails 4 项目bundle时,我得到一个奇怪的错误:

$ bundle
Fetching gem metadata from https://rubygems.org/.........
Fetching gem metadata from https://rubygems.org/..
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    my_gem (>= 0.0.5) ruby depends on
      activesupport (= 3.0.0) ruby

    rails (= 4.0.0) ruby depends on
      activesupport (4.0.0)

有任何想法吗?

4

1 回答 1

0

原来我不得不把它改成spec.add_dependency "activesupport"没有下划线。大概有旧名称的宝石,但只能达到 3.0.0。

于 2013-09-11T20:33:47.593 回答