From 58740fc039d16bd7a27f282ed83037c6cc33642f Mon Sep 17 00:00:00 2001 From: Chris Eppstein Date: Wed, 26 Jan 2011 09:49:12 -0800 Subject: [PATCH] Correctly convert scss files to css names in the installatio instructions. --- lib/compass/app_integration/rails/installer.rb | 2 +- lib/compass/installers/manifest_installer.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compass/app_integration/rails/installer.rb b/lib/compass/app_integration/rails/installer.rb index 536d6975..e4f3db92 100644 --- a/lib/compass/app_integration/rails/installer.rb +++ b/lib/compass/app_integration/rails/installer.rb @@ -163,7 +163,7 @@ NEXTSTEPS manifest.each_stylesheet do |stylesheet| # Skip partials. next if File.basename(stylesheet.from)[0..0] == "_" - ss_line = "<%= stylesheet_link_tag '#{stylesheet_prefix}#{stylesheet.to.sub(/\.sass$/,'.css')}'" + ss_line = "<%= stylesheet_link_tag '#{stylesheet_prefix}#{stylesheet.to.sub(/\.s[ac]ss$/,'.css')}'" if stylesheet.options[:media] ss_line += ", :media => '#{stylesheet.options[:media]}'" end diff --git a/lib/compass/installers/manifest_installer.rb b/lib/compass/installers/manifest_installer.rb index 04e1d909..48a10705 100644 --- a/lib/compass/installers/manifest_installer.rb +++ b/lib/compass/installers/manifest_installer.rb @@ -48,7 +48,7 @@ module Compass media = if stylesheet.options[:media] %Q{ media="#{stylesheet.options[:media]}"} end - ss_line = %Q{ } + ss_line = %Q{ } if stylesheet.options[:condition] ss_line = " " end