Use lax mode by default so nothing breaks

This commit is contained in:
Tristan Hume
2013-07-29 16:28:20 -04:00
parent 8ca00982b6
commit 3b3961be39
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ module Liquid
end
def error_mode
@error_mode || :warn
@error_mode || :lax
end
# Pass a module with filter methods which should be available

View File

@@ -14,6 +14,6 @@ puts
[RubyProf::FlatPrinter, RubyProf::GraphHtmlPrinter, RubyProf::CallTreePrinter, RubyProf::DotPrinter].each do |klass|
filename = (ENV['TMP'] || '/tmp') + (klass.name.include?('Html') ? "/liquid.#{klass.name.downcase}.html" : "/callgrind.liquid.#{klass.name.downcase}.txt")
filename.gsub!(/:+/, '_')
File.open(filename, "w+") { |fp| klass.new(results).print(fp, :print_file => true) }
File.open(filename, "w+") { |fp| klass.new(results).print(fp, :print_file => true, :min_percent => 3) }
$stderr.puts "wrote #{klass.name} output to #{filename}"
end