关于使用Bundler运行多个版本的Foundation these instructions之后,我能够创建一个依赖于3.2.5
的新项目
这是我的Gemfile:
source "https://rubygems.org"
gem "zurb-foundation", "3.2.5"
gem "compass"
然后我运行了bundle exec compass create . -r zurb-foundation --using foundation
并创建了我的Gemfile.lock文件:
GEM
remote: https://rubygems.org/
specs:
chunky_png (1.2.7)
compass (0.12.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
sass (~> 3.1)
fssm (0.2.9)
modular-scale (1.0.6)
compass (>= 0.12.1)
sass (>= 3.2.0)
sassy-math (>= 1.5)
rake (10.0.3)
sass (3.2.5)
sassy-math (1.5)
compass (~> 0.11)
zurb-foundation (3.2.5)
compass (>= 0.12.2)
modular-scale (= 1.0.6)
rake
sass (>= 3.2.0)
PLATFORMS
ruby
DEPENDENCIES
compass
zurb-foundation (= 3.2.5)
但是 - 在尝试编译(使用Codekit)之后,我得到以下内容:
Compass was unable to compile one or more files in the project:
error app.scss (Line 1 of _settings.scss: File to import not found or unreadable: foundation/common/ratios.
Load paths:
/Users/chester/Sites/f3.2.5test/sass
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/blueprint/stylesheets
/Library/Ruby/Gems/1.8/gems/compass-0.12.2/frameworks/compass/stylesheets
/Library/Ruby/Gems/1.8/gems/zurb-foundation-4.0.5/scss
Compass::SpriteImporter)
overwrite app.css
(This action was triggered by a change to _settings.scss)
从它的外观来看,仍然试图从4.0.5
获得一些东西。就像旁注一样,我在尝试升级Foundation时收到了这个:
sudo gem update zurb-foundation
Updating installed gems
Updating zurb-foundation
Fetching: zurb-foundation-4.0.5.gem (100%)
Successfully installed zurb-foundation-4.0.5
Installing RDoc documentation for zurb-foundation-4.0.5
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/rdoc.rb:280: warning: conflicting chdir during another chdir block
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/rdoc.rb:287: warning: conflicting chdir during another chdir block
Installing ri documentation for zurb-foundation-4.0.5
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/rdoc.rb:280: warning: conflicting chdir during another chdir block
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/rdoc/rdoc.rb:287: warning: conflicting chdir during another chdir block
Done installing documentation for zurb-foundation after 0 seconds
Gems updated: zurb-foundation
但实际文件看起来安装得很好gem list
bundler (1.3.2)
chunky_png (1.2.7)
compass (0.12.2)
fssm (0.2.10, 0.2.9)
modular-scale (1.0.6)
rake (10.0.3)
rubygems-update (2.0.2, 1.8.24)
sass (3.2.7, 3.2.5)
sassy-math (1.5)
zurb-foundation (4.0.5, 3.2.5, 3.2.4)
我可以很好地创建/使用F4项目,但出于某种原因,任何F3项目看起来仍然引用F4(并提出那些不可读的错误)。任何帮助将不胜感激。谢谢!
这似乎是一个Codekit问题 - 因为使用标准bundle exec compass watch
似乎工作正常。开发人员没有回答我对此所做的问题 - 所以“有”能够获得这项工作的任何人都会让我的一天分享他们的见解。感谢。