liquid 2.6.2 → 2.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.md +9 -1
- data/lib/liquid/version.rb +1 -1
- data/test/liquid/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: 556c422717dbe398a9c414ac93d2d7fa6cf824d9
|
4
|
+
data.tar.gz: 1b63c67741c2e9c1bb0fa61c0e84856ecd17a6a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fefb1fb53e150321193372e6f75dac1b860454a214a16a3cdb526e13d524b00761d50450b986b0ddab7297d253e2db46025e3a23144362b188a974834adfd08d
|
7
|
+
data.tar.gz: 8e1449c8d9923df9ca9ea64c52848725106d84b39e16311fee5c7a8e006f9b8c78f663efa2574f15d1f32c6bfe7acb1001ac79881fe87435dbd273f5ea7eb213
|
data/History.md
CHANGED
@@ -3,7 +3,15 @@
|
|
3
3
|
IMPORTANT: Liquid 2.6 is going to be the last version of Liquid which maintains explicit Ruby 1.8 compatability.
|
4
4
|
The following releases will only be tested against Ruby 1.9 and Ruby 2.0 and are likely to break on Ruby 1.8.
|
5
5
|
|
6
|
-
## 2.6.
|
6
|
+
## 2.6.3 / 2015-07-23 / branch "2-6-stable"
|
7
|
+
|
8
|
+
* Fix test failure under certain timezones [Dylan Thacker-Smith]
|
9
|
+
|
10
|
+
## 2.6.2 / 2015-01-23
|
11
|
+
|
12
|
+
* Remove duplicate hash key [Parker Moore]
|
13
|
+
|
14
|
+
## 2.6.1 / 2014-01-10
|
7
15
|
|
8
16
|
Security fix, cherry-picked from master (4e14a65):
|
9
17
|
* Don't call to_sym when creating conditions for security reasons, see #273 [Bouke van der Bijl, bouk]
|
data/lib/liquid/version.rb
CHANGED
@@ -157,8 +157,10 @@ class StandardFiltersTest < Test::Unit::TestCase
|
|
157
157
|
|
158
158
|
assert_equal nil, @filters.date(nil, "%B")
|
159
159
|
|
160
|
-
|
161
|
-
|
160
|
+
with_timezone("UTC") do
|
161
|
+
assert_equal "07/05/2006", @filters.date(1152098955, "%m/%d/%Y")
|
162
|
+
assert_equal "07/05/2006", @filters.date("1152098955", "%m/%d/%Y")
|
163
|
+
end
|
162
164
|
end
|
163
165
|
|
164
166
|
|
@@ -248,4 +250,14 @@ class StandardFiltersTest < Test::Unit::TestCase
|
|
248
250
|
def test_cannot_access_private_methods
|
249
251
|
assert_template_result('a',"{{ 'a' | to_number }}")
|
250
252
|
end
|
253
|
+
|
254
|
+
private
|
255
|
+
|
256
|
+
def with_timezone(tz)
|
257
|
+
old_tz = ENV['TZ']
|
258
|
+
ENV['TZ'] = tz
|
259
|
+
yield
|
260
|
+
ensure
|
261
|
+
ENV['TZ'] = old_tz
|
262
|
+
end
|
251
263
|
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: 2.6.
|
4
|
+
version: 2.6.3
|
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-
|
11
|
+
date: 2015-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: 1.3.7
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.2.
|
110
|
+
rubygems_version: 2.2.3
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: A secure, non-evaling end user template engine with aesthetic markup.
|