当最新版本为2.1.0时,html2haml解析为2.0.0

时间:2017-03-23 21:58:26

标签: ruby-on-rails rubygems bundle haml html2haml

我正在尝试使用bundle update nokogiri

gem 'nokogiri', '~> 1.7', '>= 1.7.1'

和Bundler给了我一个错误

Bundler could not find compatible versions for gem "nokogiri":
  In Gemfile:
    nokogiri (>= 1.7.1, ~> 1.7)

    anemone was resolved to 0.7.2, which depends on
      nokogiri (>= 1.3.0)

    haml-rails was resolved to 0.9.0, which depends on
      html2haml (>= 1.0.1) was resolved to 2.0.0, which depends on
        nokogiri (~> 1.6.0)

    quickbooks-ruby (~> 0.4.2) was resolved to 0.4.6, which depends on
      nokogiri

haml-rails 0.9.0是最新版本..我希望html2haml也可以解析为2.1.0,但它没有......

有人能告诉我我在这里缺少什么吗?

1 个答案:

答案 0 :(得分:0)

尝试在gemfile中要求html2haml, '~> 2.1'。似乎要求不够智能,无法从本地安装的缓存版本升级。