Compare commits

..

3 Commits

Author SHA1 Message Date
Florian Weingarten
8d19fdde7f bump version 2015-07-24 11:14:18 -04:00
Florian Weingarten
e934826820 Merge pull request #633 from Shopify/backport_argument_error
backport argument error fix
2015-07-24 11:13:46 -04:00
Florian Weingarten
529cc60ef1 backport argument error fix 2015-07-24 11:04:40 -04:00
3 changed files with 7 additions and 2 deletions

View File

@@ -316,7 +316,7 @@ module Liquid
else
nil
end
rescue ArgumentError
rescue ::ArgumentError
nil
end

View File

@@ -1,4 +1,4 @@
# encoding: utf-8
module Liquid
VERSION = "3.0.5"
VERSION = "3.0.6"
end

View File

@@ -379,6 +379,11 @@ class StandardFiltersTest < Minitest::Test
assert_template_result('a',"{{ 'a' | to_number }}")
end
def test_date_raises_nothing
assert_template_result('', "{{ '' | date: '%D' }}")
assert_template_result('abc', "{{ 'abc' | date: '%D' }}")
end
private
def with_timezone(tz)