From 63e948afda3843463f9734dca064705ba6b1250b Mon Sep 17 00:00:00 2001 From: Kaleem Ullah Date: Tue, 18 Dec 2012 10:32:06 +0400 Subject: [PATCH] replace hashrocket in *.html.haml files also --- lib/hash_syntax/runner.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/hash_syntax/runner.rb b/lib/hash_syntax/runner.rb index 2ac9ca9..ac44635 100644 --- a/lib/hash_syntax/runner.rb +++ b/lib/hash_syntax/runner.rb @@ -34,10 +34,10 @@ def validate_options(opts) def gather_files if ARGV.empty? - AUTO_SUBDIRS.map { |dir| Dir["#{Dir.pwd}/#{dir}/**/*.rb"] }.flatten + AUTO_SUBDIRS.map { |dir| Dir["#{Dir.pwd}/#{dir}/**/*.{rb,html.haml}"] }.flatten else ARGV end end end -end \ No newline at end of file +end