按照这些使用 Bundler 运行多个版本的 Foundation 的说明,我能够创建一个具有以下依赖项的新项目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
似乎工作得很好。开发人员尚未回复我对此提出的问题——因此“已经”能够完成这项工作的任何其他人都会让我每天分享他们的见解。谢谢。