Closed rdhenry closed 12 years ago
@rdhenry I have not tried the gem with zurb yet. What does your Gemfile look like?
@rdhenry I moved your comment to this issue and closed the other:
After "gem install responsive-sass" when I run "compass install responsive-sass" bash returns "No such framework: "responsive-sass"
I have successfully installed ZURB Foundation, following the steps provided for that framework.
@rdhenry
Gemfile example for a rails app 3.1+ :
group :assets do
gem 'sass-rails', "~> 3.2.2"
gem "compass-rails", "~> 1.0.1"
gem "responsive-sass", "~> 0.1.1"
end
Then add to your application.css.scss
@import 'responsive-sass'
Sorry for the stupid question. Do I put:
group :assets do gem 'sass-rails', "~> 3.2.2" gem "compass-rails", "~> 1.0.1" gem "responsive-sass", "~> 0.1.1" end
in the Gemfile in rubygems-bundler-1.0.2 ?
I reinstalled compass, which doesn't appear to create a Gemfile. Now when I run:
compass install responsive-sass
it returns:
/Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/shared_helpers.rb:22:in default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound) from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:213:in
default_gemfile'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:164:in root' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:123:in
load'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:114:in setup' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:119:in
require'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/gems/compass-0.12.1/bin/compass:25:in <top (required)>' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/compass:19:in
load'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/compass:19:in <main>' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/ruby_noexec_wrapper:14:in
eval'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/ruby_noexec_wrapper:14:in `
@rdhenry what type of project are you trying to get the gem to work on? Rails?
@ntreadway Sorry for the typing error. The former should read:
compass install responsive-sass
I can't make compass recognize responsive-sass as an installed framework or pattern.
try:
gem install reponsive-sass
and then using
@import "reponsive-sass"
in your .scss
also is this Rails project?
@ntreadway It's not a Rails project. I went through a Rails 3.2.5 install and installed Xcode, Homebrew, Git, RVM, & Ruby 1.9.3 based on some misguided research into this problem.
@ntreadway Here's the latest:
$ gem install reponsive-sass ERROR: Could not find a valid gem 'reponsive-sass' (>= 0) in any repository ERROR: Possible alternatives: responsive-sass, responsive, reactive-css
@ntreadway Okay, now it's not recognizing compass. I uninstalled and reinstalled compass:
$ gem install compass Fetching: compass-0.12.1.gem (100%) Successfully installed compass-0.12.1 1 gem installed Installing ri documentation for compass-0.12.1... Installing RDoc documentation for compass-0.12.1...
$ compass -h
/Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler/shared_helpers.rb:22:in default_gemfile': Could not locate Gemfile (Bundler::GemfileNotFound) from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:213:in
default_gemfile'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:164:in root' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:123:in
load'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:114:in setup' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.4/lib/bundler.rb:119:in
require'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/gems/compass-0.12.1/bin/compass:25:in <top (required)>' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/compass:19:in
load'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/compass:19:in <main>' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/ruby_noexec_wrapper:14:in
eval'
from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/ruby_noexec_wrapper:14:in `
@rdhenry sounds like a local settings issue.
Try using:
bundle exec compass
@ntreadway I found and fixed one problem. Compass is now recognized. See this issue fix:
https://github.com/chriseppstein/compass/blob/stable/bin/compass#L24-L26
I will now try using:
bundle exec compass
@ntreadway
$ bundle exec compass Could not locate Gemfile
@ntreadway Okay, at least I'm back to the original problem:
$ gem install responsive-sass Fetching: responsive-sass-0.1.1.gem (100%) Successfully installed responsive-sass-0.1.1 1 gem installed Installing ri documentation for responsive-sass-0.1.1... Installing RDoc documentation for responsive-sass-0.1.1...
$ compass -r responsive-sass -f responsive-sass project_directory Error: invalid option: -r
@rdhenry More research into this issue is needed. Thank you for reporting. Have to get back to you on this.
@rdhenry
Here are the new instructions for installing Responsive Sass with a new Compass project.
gem install compass
gem install responsive-sass
compass create path_to_project
In your config.rb add
require "responsive-sass"
Tell Compass to watch your files
compass watch path_to_project
In your screen.scss add
@import "responsive-sass";
Again thanks for reporting.
@ntreadway WooHoo !!!
Man ... at one time I was so close!!! I even managed to "create" the config.rb w/ the "require text" using the compass create command. But idiotically expected steps 3 and 4 to magically occur on their own. Thanks, and sorry for being so dense.
@ntreadway This command:
compass create
works in Step 1. in place of the third line (compass create path_to_project), which eliminates the need for Step 2.
Sorry, I can't remember what to type to make the code boxes.
@rdhenry thanks I could not get -r to work for myself. Maybe there is a bug in Compass.
$ "compass -r responsive-sass -f responsive-sass project_directory"
RETURNS
"Error: invalid option: -r"