Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix custom watcher in compass 0.12

  • Loading branch information...
commit 1e8078511050cb2a09c9935de8c01f917a76e48c 1 parent 3480812
tka tka authored
9 lib/ruby/compass_0.12/backport_from_0.13/lib/compass/watcher/project_watcher.rb
View
@@ -75,7 +75,12 @@ def listen_callback(modified_file, added_file, removed_file)
# run watchers
sass_watchers.each do |watcher|
files.each do |file|
- watcher.run_callback(project_path, file, action) if watcher.match?(file)
+ if watcher.is_a? Array # for compass 0.12 watcher format
+ glob,callback = watcher
+ callback.call(project_path, file, action) if File.fnmatch(glob, file)
+ else
+ watcher.run_callback(project_path, file, action) if watcher.match?(file)
+ end
end
end
end
@@ -108,4 +113,4 @@ def sass_removed(file)
end
end
-end
+end
4 src/compile_version.rb
View
@@ -1,5 +1,5 @@
module CompileVersion
- REVISION = '59b9e6d9b6'
- COMPILE_TIME = '201303301847'
+ REVISION = '3480812338'
+ COMPILE_TIME = '201303301938'
UPDATE_URL = ''
end
Please sign in to comment.
Something went wrong with that request. Please try again.