diff --git a/lib/liquid/template.rb b/lib/liquid/template.rb index 2e3e583..aa7bc27 100644 --- a/lib/liquid/template.rb +++ b/lib/liquid/template.rb @@ -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 diff --git a/performance/profile.rb b/performance/profile.rb index 1bd4f80..017435f 100644 --- a/performance/profile.rb +++ b/performance/profile.rb @@ -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