在 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)
有任何想法吗?