当gemspec指定悲观约束时,为什么bundler认为它需要特定版本?

时间:2013-02-04 23:28:20

标签: ruby rubygems bundler

我的gemspec显然需要active_support ~> 3.0,但是捆绑商未能bundle install说我的宝石需要active_support = 3.0。 WTF捆绑器?谁能解释一下呢?

$ gem install code_filter
Successfully installed activesupport-3.0.0
Successfully installed active_support-3.0.0
Successfully installed code_filter-0.1.1

$ gem dependency code_filter
Gem code_filter-0.1.1
  active_support (~> 3.0, runtime)

$ bundle
Fetching gem metadata from http://rubygems.org/.......
Fetching gem metadata from http://192.168.10.22/...
Fetching gem metadata from http://rubygems.org/...........
Fetching gem metadata from http://192.168.10.22/..
Bundler could not find compatible versions for gem "activesupport":
  In Gemfile:
    code_filter (= 0.1.1) ruby depends on
      activesupport (= 3.0.0) ruby

    json_builder (~> 3.1) ruby depends on
      activesupport (3.0.20)

0 个答案:

没有答案