ruby-handlebars 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruby-handlebars.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e63c4f5d37f79ac23d9c970942bee195d95e14a
4
- data.tar.gz: 4cf5f61a9e046de6c3630d792a32f9636bfede90
3
+ metadata.gz: 77a0f732e37dbb646fdd8cb2e40f60c835599458
4
+ data.tar.gz: c3101acdbbd44eebfb429fce6386e7cf07879f8d
5
5
  SHA512:
6
- metadata.gz: 7fde4e2ae941f01c7c43b2aaf2ebf4f508f603a0dc2797cb77a8e2e35a96309c14fddf4902589009ebdc0396e51b3b5c96798054a60f7f98e0399aa592a53ed1
7
- data.tar.gz: 9b5592a196121201380ea33588ab8321e6009097ef34aba8b77548081f3b15dbdc8d1aeb573a58a32e8e1e8bbbdc9cca9f02dffe142d18750ed6d10b3dc53ac1
6
+ metadata.gz: e7538291ede843dffe379b6428eb5a89928632ecff051517eb1e892b2916c9af6cf83425a0a0d251506869cf7ed7e4a41f11cd3778de03e2171705f17ae1b522
7
+ data.tar.gz: 3b2873ef1dd914f2cc52d5590ab2e96c5182a3d7f30e752bfa55c732418aa08e14f2588455458ee2b6d0010b5fc0c24e84ab304fb9e53923b3e500e6bb7bf58e
@@ -69,7 +69,7 @@ module Handlebars
69
69
  register_helper('each') do |context, items, block, else_block|
70
70
  current_this = context.get('this')
71
71
 
72
- if items.empty? && else_block
72
+ if (items.nil? || items.empty?) && else_block
73
73
  result = else_block.fn(context)
74
74
  else
75
75
  result = items.map do |item|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-handlebars
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vincent Pretre
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-10-21 00:00:00.000000000 Z
12
+ date: 2016-04-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parslet