ntreadway / responsive-sass

Responsive Sass for Compass.
http://ntreadway.github.com/responsive-sass/welcome
35 stars 2 forks source link

Cannot create responsive-sass project in compass #6

Closed rdhenry closed 12 years ago

rdhenry commented 12 years ago

$ "compass -r responsive-sass -f responsive-sass project_directory"

RETURNS

"Error: invalid option: -r"

ntreadway commented 12 years ago

@rdhenry I have not tried the gem with zurb yet. What does your Gemfile look like?

ntreadway commented 12 years ago

@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.

ntreadway commented 12 years ago

@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'
rdhenry commented 12 years ago

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 ?

rdhenry commented 12 years ago

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:indefault_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:inload' 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:inrequire' 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:inload' 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:ineval' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/ruby_noexec_wrapper:14:in `

'

ntreadway commented 12 years ago

@rdhenry what type of project are you trying to get the gem to work on? Rails?

rdhenry commented 12 years ago

@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.

ntreadway commented 12 years ago

try:

 gem install reponsive-sass

and then using

 @import "reponsive-sass"

in your .scss

also is this Rails project?

rdhenry commented 12 years ago

@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.

rdhenry commented 12 years ago

@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

rdhenry commented 12 years ago

@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:indefault_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:inload' 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:inrequire' 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:inload' 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:ineval' from /Users/roberthenry/.rvm/gems/ruby-1.9.3-p194@rails325/bin/ruby_noexec_wrapper:14:in `

'

ntreadway commented 12 years ago

@rdhenry sounds like a local settings issue.

Try using:

   bundle exec compass
rdhenry commented 12 years ago

@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

rdhenry commented 12 years ago

@ntreadway

$ bundle exec compass Could not locate Gemfile

rdhenry commented 12 years ago

@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

ntreadway commented 12 years ago

@rdhenry More research into this issue is needed. Thank you for reporting. Have to get back to you on this.

ntreadway commented 12 years ago

@rdhenry

Here are the new instructions for installing Responsive Sass with a new Compass project.

  1. gem install compass
    gem install responsive-sass
    compass create path_to_project
  2. In your config.rb add

    require "responsive-sass"
  3. Tell Compass to watch your files

    compass watch path_to_project
  4. In your screen.scss add

    @import "responsive-sass";

Again thanks for reporting.

rdhenry commented 12 years ago

@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.

rdhenry commented 12 years ago

@ntreadway This command:

compass create -r responsive-sass

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.

ntreadway commented 12 years ago

@rdhenry thanks I could not get -r to work for myself. Maybe there is a bug in Compass.