gpt4 book ai didi

ruby - Zurb Foundation + Bundler 安装依赖

转载 作者:数据小太阳 更新时间:2023-10-29 08:09:34 24 4
gpt4 key购买 nike

正在关注 these instructions为了使用 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 似乎工作得很好。开发人员还没有回复我在这个问题上提出的问题——所以任何其他“已经”能够完成这项工作的人都会让我分享他们的见解。谢谢。

最佳答案

已修复!写了一个article about it

关于ruby - Zurb Foundation + Bundler 安装依赖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15450057/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com