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.
- checksums.yaml +4 -4
- data/lib/ruby-handlebars.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77a0f732e37dbb646fdd8cb2e40f60c835599458
|
4
|
+
data.tar.gz: c3101acdbbd44eebfb429fce6386e7cf07879f8d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7538291ede843dffe379b6428eb5a89928632ecff051517eb1e892b2916c9af6cf83425a0a0d251506869cf7ed7e4a41f11cd3778de03e2171705f17ae1b522
|
7
|
+
data.tar.gz: 3b2873ef1dd914f2cc52d5590ab2e96c5182a3d7f30e752bfa55c732418aa08e14f2588455458ee2b6d0010b5fc0c24e84ab304fb9e53923b3e500e6bb7bf58e
|
data/lib/ruby-handlebars.rb
CHANGED
@@ -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.
|
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:
|
12
|
+
date: 2016-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: parslet
|