metatext 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/metatext.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 37d12d93021c2ce5a30dc56fa11d4ce7303d0c02
|
|
4
|
+
data.tar.gz: 9cd9dcd5d4ded3f8dbf98e430bd296deeaf65f9c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 00ac25db81e30142b0af2272a0ae314e194b3705954f8435c1bd8509132cf099051205e9c49308649dcf3d28c0982c43737cf7426e0616d46463278452843a40
|
|
7
|
+
data.tar.gz: 2511742ab7ff44071abadd202ab7df0ffffe8d9531c22aa4c581b95606af0d8d0a73854b91108853e9fc68e9cc74d317844b8820c703104a39250d192641b8fb
|
data/lib/metatext.rb
CHANGED
|
@@ -57,7 +57,7 @@ class Metatext
|
|
|
57
57
|
# run the file contents through erb
|
|
58
58
|
# @param with - the variables you want available in the file
|
|
59
59
|
|
|
60
|
-
def erbify(raw, with:)
|
|
60
|
+
def erbify(raw, with: {})
|
|
61
61
|
namespace = OpenStruct.new with
|
|
62
62
|
ERB.new(raw).result namespace.instance_eval { binding }
|
|
63
63
|
end
|