handlebars-helpers 0.0.80 → 0.0.81
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: d83a1d35d176cf5af7dc32206a7284fd49592daaf4b9d180f71d894f8ac270e2
|
4
|
+
data.tar.gz: d9dd469c0a6a55266f0783d656b905432c8d81ce0ce8f56b8818f421fae887e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '02066321193e16b5e17dedc77f537cd364c7ccd596ed24aa57a7a4df4819d0818303e5a5a8e236ea35ed2c48186f7ba862db7ea26a540e88a810c013ea78a700'
|
7
|
+
data.tar.gz: fbe2b160cdc4f3925e507c06cc2f8c43253baebf6a6314c85a806c7f649bee73198b974220ba854cd83e6a7ec262c970ecc8cee78a58faf6a906bf9e03b4671e
|
@@ -41,8 +41,8 @@ module Handlebars
|
|
41
41
|
proc do |_context, value, format|
|
42
42
|
# Handle optional: format
|
43
43
|
format = nil if format.is_a?(V8::Object)
|
44
|
-
|
45
|
-
|
44
|
+
format = format.to_sym if format.is_a?(String)
|
45
|
+
|
46
46
|
wrapper(parse(value, format))
|
47
47
|
end
|
48
48
|
end
|