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
ようです。標準を使用すると問題なく動作するようです。開発者は、私がこれについて行った問題に返信していません。そのため、この作業を「完了」できた他の人は、私の洞察を共有するために私の日を作るでしょう. ありがとう。