lib/bunch/rack.rb in bunch-0.0.1 vs lib/bunch/rack.rb in bunch-0.0.2

- old
+ new

@@ -15,10 +15,10 @@ private def generate(path) if File.exist?(path) Bunch::Tree(path).contents - elsif File.exist?(chopped_path = path.sub(%r(\.[^/]*?$), '')) + elsif File.exist?(chopped_path = path.sub(%r(\.[^.]*$), '')) Bunch::Tree(chopped_path).contents elsif File.basename(path).start_with?('all.') Bunch::Tree(File.dirname(path)).contents else raise Errno::ENOENT, path