mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d19fdde7f | ||
|
|
e934826820 | ||
|
|
529cc60ef1 | ||
|
|
5068fcae03 | ||
|
|
4095bfa9f8 | ||
|
|
0148289b88 | ||
|
|
d891c2b7ab |
20
History.md
20
History.md
@@ -1,6 +1,14 @@
|
|||||||
# Liquid Version History
|
# Liquid Version History
|
||||||
|
|
||||||
## 3.0.3 / 2015-05-28 / branch "3-0-stable"
|
## 3.0.5 / 2015-07-23 / branch "3-0-stable"
|
||||||
|
|
||||||
|
* Fix test failure under certain timezones [Dylan Thacker-Smith]
|
||||||
|
|
||||||
|
## 3.0.4 / 2015-07-17
|
||||||
|
|
||||||
|
* Fix chained access to multi-dimensional hashes [Florian Weingarten]
|
||||||
|
|
||||||
|
## 3.0.3 / 2015-05-28
|
||||||
|
|
||||||
* Fix condition parse order in strict mode (#569) [Justin Li, pushrax]
|
* Fix condition parse order in strict mode (#569) [Justin Li, pushrax]
|
||||||
|
|
||||||
@@ -48,7 +56,15 @@
|
|||||||
* Make map filter work on enumerable drops, see #233 [Florian Weingarten, fw42]
|
* Make map filter work on enumerable drops, see #233 [Florian Weingarten, fw42]
|
||||||
* Improved whitespace stripping for blank blocks, related to #216 [Florian Weingarten, fw42]
|
* Improved whitespace stripping for blank blocks, related to #216 [Florian Weingarten, fw42]
|
||||||
|
|
||||||
## 2.6.1 / 2014-01-10 / branch "2-6-stable"
|
## 2.6.3 / 2015-07-23 / branch "2-6-stable"
|
||||||
|
|
||||||
|
* Fix test failure under certain timezones [Dylan Thacker-Smith]
|
||||||
|
|
||||||
|
## 2.6.2 / 2015-01-23
|
||||||
|
|
||||||
|
* Remove duplicate hash key [Parker Moore]
|
||||||
|
|
||||||
|
## 2.6.1 / 2014-01-10
|
||||||
|
|
||||||
Security fix, cherry-picked from master (4e14a65):
|
Security fix, cherry-picked from master (4e14a65):
|
||||||
* Don't call to_sym when creating conditions for security reasons, see #273 [Bouke van der Bijl, bouk]
|
* Don't call to_sym when creating conditions for security reasons, see #273 [Bouke van der Bijl, bouk]
|
||||||
|
|||||||
@@ -316,7 +316,7 @@ module Liquid
|
|||||||
else
|
else
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
rescue ArgumentError
|
rescue ::ArgumentError
|
||||||
nil
|
nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
# encoding: utf-8
|
# encoding: utf-8
|
||||||
module Liquid
|
module Liquid
|
||||||
VERSION = "3.0.4"
|
VERSION = "3.0.6"
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -252,8 +252,10 @@ class StandardFiltersTest < Minitest::Test
|
|||||||
|
|
||||||
assert_equal nil, @filters.date(nil, "%B")
|
assert_equal nil, @filters.date(nil, "%B")
|
||||||
|
|
||||||
assert_equal "07/05/2006", @filters.date(1152098955, "%m/%d/%Y")
|
with_timezone("UTC") do
|
||||||
assert_equal "07/05/2006", @filters.date("1152098955", "%m/%d/%Y")
|
assert_equal "07/05/2006", @filters.date(1152098955, "%m/%d/%Y")
|
||||||
|
assert_equal "07/05/2006", @filters.date("1152098955", "%m/%d/%Y")
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_first_last
|
def test_first_last
|
||||||
@@ -376,4 +378,19 @@ class StandardFiltersTest < Minitest::Test
|
|||||||
def test_cannot_access_private_methods
|
def test_cannot_access_private_methods
|
||||||
assert_template_result('a',"{{ 'a' | to_number }}")
|
assert_template_result('a',"{{ 'a' | to_number }}")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_date_raises_nothing
|
||||||
|
assert_template_result('', "{{ '' | date: '%D' }}")
|
||||||
|
assert_template_result('abc', "{{ 'abc' | date: '%D' }}")
|
||||||
|
end
|
||||||
|
|
||||||
|
private
|
||||||
|
|
||||||
|
def with_timezone(tz)
|
||||||
|
old_tz = ENV['TZ']
|
||||||
|
ENV['TZ'] = tz
|
||||||
|
yield
|
||||||
|
ensure
|
||||||
|
ENV['TZ'] = old_tz
|
||||||
|
end
|
||||||
end # StandardFiltersTest
|
end # StandardFiltersTest
|
||||||
|
|||||||
Reference in New Issue
Block a user