Permalink
Browse files

Fix some bugs introduced when the Sass monkey patch was removed.

  • Loading branch information...
1 parent 6bd7f7c commit 942ea5f1b061306aad9f40ea3b44902c91d01c3f @chriseppstein chriseppstein committed May 15, 2010
Showing with 4 additions and 2 deletions.
  1. +2 −2 lib/compass/compiler.rb
  2. +2 −0 lib/compass/configuration/helpers.rb
View
4 lib/compass/compiler.rb
@@ -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
@@ -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.
View
2 lib/compass/configuration/helpers.rb
@@ -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)

0 comments on commit 942ea5f

Please sign in to comment.