liquid 3.0.4 → 3.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +18 -2
- data/lib/liquid/version.rb +1 -1
- data/test/integration/standard_filter_test.rb +14 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a841bbdbeb81e4f6bcb52294b02c421c2110630f
|
4
|
+
data.tar.gz: cb469309746f89eb9407206f4a3af8249fd20cbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0efa0cbb3810fa18ee8df3feecdac71dc9af4d82c0cb0629b038240d02c200e47501f5c65205f582c19d29936f9047fd6aeef4c4cecd381a935fba07eaf4af6f
|
7
|
+
data.tar.gz: f34ae9c9b3f95ffa6f07a6848050310f408bf8afb9ae934a28272d16b505b83c7c44ed293a544563ee90a3f410794a6598f21b8886ffead423ffbf44e5a8ad18
|
data/History.md
CHANGED
@@ -1,6 +1,14 @@
|
|
1
1
|
# Liquid Version History
|
2
2
|
|
3
|
-
## 3.0.
|
3
|
+
## 3.0.5 / 2015-07-23 / branch "3-0-stable"
|
4
|
+
|
5
|
+
* Fix test failure under certain timezones [Dylan Thacker-Smith]
|
6
|
+
|
7
|
+
## 3.0.4 / 2015-07-17
|
8
|
+
|
9
|
+
* Fix chained access to multi-dimensional hashes [Florian Weingarten]
|
10
|
+
|
11
|
+
## 3.0.3 / 2015-05-28
|
4
12
|
|
5
13
|
* Fix condition parse order in strict mode (#569) [Justin Li, pushrax]
|
6
14
|
|
@@ -48,7 +56,15 @@
|
|
48
56
|
* Make map filter work on enumerable drops, see #233 [Florian Weingarten, fw42]
|
49
57
|
* Improved whitespace stripping for blank blocks, related to #216 [Florian Weingarten, fw42]
|
50
58
|
|
51
|
-
## 2.6.
|
59
|
+
## 2.6.3 / 2015-07-23 / branch "2-6-stable"
|
60
|
+
|
61
|
+
* Fix test failure under certain timezones [Dylan Thacker-Smith]
|
62
|
+
|
63
|
+
## 2.6.2 / 2015-01-23
|
64
|
+
|
65
|
+
* Remove duplicate hash key [Parker Moore]
|
66
|
+
|
67
|
+
## 2.6.1 / 2014-01-10
|
52
68
|
|
53
69
|
Security fix, cherry-picked from master (4e14a65):
|
54
70
|
* Don't call to_sym when creating conditions for security reasons, see #273 [Bouke van der Bijl, bouk]
|
data/lib/liquid/version.rb
CHANGED
@@ -252,8 +252,10 @@ class StandardFiltersTest < Minitest::Test
|
|
252
252
|
|
253
253
|
assert_equal nil, @filters.date(nil, "%B")
|
254
254
|
|
255
|
-
|
256
|
-
|
255
|
+
with_timezone("UTC") do
|
256
|
+
assert_equal "07/05/2006", @filters.date(1152098955, "%m/%d/%Y")
|
257
|
+
assert_equal "07/05/2006", @filters.date("1152098955", "%m/%d/%Y")
|
258
|
+
end
|
257
259
|
end
|
258
260
|
|
259
261
|
def test_first_last
|
@@ -376,4 +378,14 @@ class StandardFiltersTest < Minitest::Test
|
|
376
378
|
def test_cannot_access_private_methods
|
377
379
|
assert_template_result('a',"{{ 'a' | to_number }}")
|
378
380
|
end
|
381
|
+
|
382
|
+
private
|
383
|
+
|
384
|
+
def with_timezone(tz)
|
385
|
+
old_tz = ENV['TZ']
|
386
|
+
ENV['TZ'] = tz
|
387
|
+
yield
|
388
|
+
ensure
|
389
|
+
ENV['TZ'] = old_tz
|
390
|
+
end
|
379
391
|
end # StandardFiltersTest
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: liquid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tobias Luetke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -161,7 +161,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
161
161
|
version: 1.3.7
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
|
-
rubygems_version: 2.2.
|
164
|
+
rubygems_version: 2.2.3
|
165
165
|
signing_key:
|
166
166
|
specification_version: 4
|
167
167
|
summary: A secure, non-evaling end user template engine with aesthetic markup.
|