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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ba57f2ab9f172f86a9ec2423ac7d1fe143018f8c
4
- data.tar.gz: b70008837aa1d07dae8727da5a101bbc54c9b341
3
+ metadata.gz: a841bbdbeb81e4f6bcb52294b02c421c2110630f
4
+ data.tar.gz: cb469309746f89eb9407206f4a3af8249fd20cbc
5
5
  SHA512:
6
- metadata.gz: 87bfbe742ab9d4da0b5afbbe4b111d7feeaf7c7177439b978b422b907ba6aa7a449af112ed245c271e37f6c071d2399d0bde85a1edb26f6bcd646e453eacc7d2
7
- data.tar.gz: f89338151cca9e2c8615a14f27555b9f742d5cf161f612fdb173e5c808040fd9f4d4bc1cc7808aefa36b27d811106684e9812a4e913ddc42d552b0ea2b2f98f8
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 / 2015-05-28 / branch "3-0-stable"
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.1 / 2014-01-10 / branch "2-6-stable"
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]
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Liquid
3
- VERSION = "3.0.4"
3
+ VERSION = "3.0.5"
4
4
  end
@@ -252,8 +252,10 @@ class StandardFiltersTest < Minitest::Test
252
252
 
253
253
  assert_equal nil, @filters.date(nil, "%B")
254
254
 
255
- assert_equal "07/05/2006", @filters.date(1152098955, "%m/%d/%Y")
256
- assert_equal "07/05/2006", @filters.date("1152098955", "%m/%d/%Y")
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
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-17 00:00:00.000000000 Z
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.1
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.