erb_asterisk 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/erb_asterisk/version.rb +1 -1
- data/lib/erb_asterisk.rb +2 -2
- 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: '084da093ef867a02e12e2976920c66d9c5ece051'
|
4
|
+
data.tar.gz: 22c49bc080cbe45d7f173fa44b4c0ce4e47e3c14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3522c39bd30eabc58c9b8c27bf788e40dc613e5505fb0455b9db2c723d3ac08b95e64c034b053c244ada3a6c26484f32f21806254de82aeb1e0b0212cb8b2793
|
7
|
+
data.tar.gz: bc4f0aac21c7070cc3173d9a99b920f3fc91c45c61339ff2592a4da3d37db05bccb7b973fb0e472a0eae5facb1429479a6f399ef433f00d10c2d0e4cba6ba08e
|
data/lib/erb_asterisk/version.rb
CHANGED
data/lib/erb_asterisk.rb
CHANGED
@@ -8,12 +8,12 @@ module ErbAsterisk
|
|
8
8
|
tpl = read_template(template)
|
9
9
|
e = ERB.new(tpl)
|
10
10
|
|
11
|
-
b =
|
11
|
+
b = binding
|
12
12
|
vars.each do |name, value|
|
13
13
|
b.local_variable_set(name, value)
|
14
14
|
end
|
15
15
|
|
16
|
-
e.result
|
16
|
+
e.result(b)
|
17
17
|
end
|
18
18
|
|
19
19
|
# Declare current config file inclusion to file_name
|