handlebars-helpers 0.0.86 → 0.0.87
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cae41fcd90830d3b8eddd6537fe99d83bd592a84f6866b445dedd7846acf8f58
|
4
|
+
data.tar.gz: 7b307f0b61b718278aea66ffa70a58f7f8629b94444b286bb15cb8251087381d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e30e3f6473c1d3fc8ebf18b7072689d9dfdbf63d52c932b0e6eeea2d01d2e45a2d3852fd22066bfe2133fe89264cf194ca35fab009de75c0842d08787a442a3a
|
7
|
+
data.tar.gz: 77fed0fb25c9199f446d86be78b768384dd0fc05c0f28cd64a306ec9e28ac3667fb19c792ae34468310c347b64ba51134f095d5769ff0a6eec800115079dd20f
|
@@ -23,6 +23,9 @@ module Handlebars
|
|
23
23
|
# @param [String] rhs - right hand side value
|
24
24
|
# @return [String] truthy value if left hand side equals right hand side
|
25
25
|
def parse(lhs, rhs)
|
26
|
+
lhs = lhs.to_s if lhs.is_a?(Symbol)
|
27
|
+
rhs = rhs.to_s if rhs.is_a?(Symbol)
|
28
|
+
|
26
29
|
lhs == rhs
|
27
30
|
end
|
28
31
|
|
@@ -23,6 +23,9 @@ module Handlebars
|
|
23
23
|
# @param [String] rhs - right hand side value
|
24
24
|
# @return [String] truthy value if left hand side is NOT equal to right hand side
|
25
25
|
def parse(lhs, rhs)
|
26
|
+
lhs = lhs.to_s if lhs.is_a?(Symbol)
|
27
|
+
rhs = rhs.to_s if rhs.is_a?(Symbol)
|
28
|
+
|
26
29
|
lhs != rhs
|
27
30
|
end
|
28
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: handlebars-helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.87
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-05-
|
11
|
+
date: 2021-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|