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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23f1a04e5a8b250740c490359544b4c62b324718
4
- data.tar.gz: 868152a9314ae7c39f055a17f60ac3a9d6d31553
3
+ metadata.gz: 556c422717dbe398a9c414ac93d2d7fa6cf824d9
4
+ data.tar.gz: 1b63c67741c2e9c1bb0fa61c0e84856ecd17a6a7
5
5
  SHA512:
6
- metadata.gz: 4eb410f1a6bd40cc921ddc67bca7ee13d4da110c46d55838ff151a39c09baf0b292778ee669cc9ff49a0af627371cf415fa95aa43753abfe6b20d6b1468cc0c3
7
- data.tar.gz: 4cef73a3ad99477790ba38ecaf8bffe0ac900efca041dc605a1993a380c54c6e1ff871aef0fce493620ad1f009475aa8e0712489d10aab0d49cb1cb84d878898
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.1 / 2014-01-10 / branch "2-6-stable"
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]
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module Liquid
3
- VERSION = "2.6.2"
3
+ VERSION = "2.6.3"
4
4
  end
@@ -157,8 +157,10 @@ class StandardFiltersTest < Test::Unit::TestCase
157
157
 
158
158
  assert_equal nil, @filters.date(nil, "%B")
159
159
 
160
- assert_equal "07/05/2006", @filters.date(1152098955, "%m/%d/%Y")
161
- assert_equal "07/05/2006", @filters.date("1152098955", "%m/%d/%Y")
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.2
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-01-23 00:00:00.000000000 Z
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.0
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.