lib/awestruct/config.rb in awestruct-0.2.10 vs lib/awestruct/config.rb in awestruct-0.2.11

- old
+ new

@@ -18,10 +18,11 @@ @input_dir = File.join(dir, '') @output_dir = File.join(dir, '_site') @extension_dir = File.join(dir, '_ext') @skin_dir = File.join(dir, '_skin') @tmp_dir = File.join(dir, '_tmp') - @ignore = [ ] + @ignore = File.exists?(ignore_file = File.join(dir, ".awestruct_ignore")) ? IO.read(ignore_file).each_line.map(&:strip) : [] + @ignore = Dir[*@ignore] end end end