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: 65fcf8d27d477ab4f2e9a56a9a60a881d5aee92e476902de748a0648e55063f3
4
- data.tar.gz: 3330aff0afbf58c65ebb1a9347c7cbe44fe3093be3100997b2d630781c1c1033
3
+ metadata.gz: cae41fcd90830d3b8eddd6537fe99d83bd592a84f6866b445dedd7846acf8f58
4
+ data.tar.gz: 7b307f0b61b718278aea66ffa70a58f7f8629b94444b286bb15cb8251087381d
5
5
  SHA512:
6
- metadata.gz: 0152226f0ec8a081e79ac48631ba02354e88f5700514ad68c8d703b96e2f611378ce1dc7c55bba05b86342e122bf0e1a7d1d9e38829ae8f6839c7511660bd8eb
7
- data.tar.gz: 972b08bab28fe0d500e8f8539b038d3fce63809d47c52df140c36b62f1ed59c779795750b101f5ac28a41c31312dcce224757e962f1dcf1b0833a27230fefbe8
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
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Handlebars
4
4
  module Helpers
5
- VERSION = '0.0.86'
5
+ VERSION = '0.0.87'
6
6
  end
7
7
  end
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.86
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-02 00:00:00.000000000 Z
11
+ date: 2021-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport