Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 当最新版本为2.1.0时,html2haml解析为2.0.0_Ruby On Rails_Rubygems_Bundle_Haml_Html2haml - Fatal编程技术网

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

Ruby on rails 当最新版本为2.1.0时,html2haml解析为2.0.0,ruby-on-rails,rubygems,bundle,haml,html2haml,Ruby On Rails,Rubygems,Bundle,Haml,Html2haml,我正在尝试用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)

我正在尝试用
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,但它没有


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

尝试在您的GEM文件中要求
html2haml,~>2.1'
。这些要求似乎不够智能,无法强制它从本地安装的缓存版本升级。

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

*更新我运行了
捆绑更新html2haml
,但没有在gemfile**更新中指定它,因为更新所有gems似乎可以获得正确的nokogiri版本,我运行了
bundle update
并记录了已更新的gems,并仔细地运行了与
haml
相关的每个gems的更新。对于我来说,我必须
bundle update
haml_lint、html2haml、roadie、,然后nokogiri.*更新我运行了
bundle update html2haml
,但没有在gemfile**update中指定它,因为更新所有gems似乎让我获得了nokogiri的正确版本,我运行了
bundle update
,并记录了已更新的gems,然后仔细地对每一个似乎与
haml
相关的文件进行更新。对我来说,我必须
捆绑更新
haml\u lint、html2haml、roadie,然后是nokogiri。