Skip to content

Commit

Permalink
Fix some bugs introduced when the Sass monkey patch was removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
chriseppstein committed May 15, 2010
1 parent 6bd7f7c commit 942ea5f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/compass/compiler.rb
Expand Up @@ -42,7 +42,7 @@ def target_directories
def out_of_date?
Compass.configure_sass_plugin! unless Compass.sass_plugin_configured?
sass_files.zip(css_files).each do |sass_filename, css_filename|
return sass_filename if Sass::Plugin.send(:exact_stylesheet_needs_update?, css_filename, sass_filename)
return sass_filename if Sass::Plugin.send(:stylesheet_needs_update?, css_filename, sass_filename)
end
false
end
Expand Down Expand Up @@ -106,7 +106,7 @@ def compile(sass_filename, css_filename)
end

def should_compile?(sass_filename, css_filename)
options[:force] || Sass::Plugin.send(:exact_stylesheet_needs_update?, css_filename, sass_filename)
options[:force] || Sass::Plugin.send(:stylesheet_needs_update?, css_filename, sass_filename)
end

# A sass engine for compiling a single file.
Expand Down
2 changes: 2 additions & 0 deletions lib/compass/configuration/helpers.rb
Expand Up @@ -54,6 +54,8 @@ def sass_plugin_configuration
end

def configure_sass_plugin!
return if sass_plugin_configured?
require 'sass/plugin'
@sass_plugin_configured = true
config = sass_plugin_configuration
locations = config.delete(:template_location)
Expand Down

0 comments on commit 942ea5f

Please sign in to comment.