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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7f2d75b1d38e92346ff7ca8931bba103a84f51f
4
- data.tar.gz: 533ba4abbe676699845593b9362f09bbfdb3f280
3
+ metadata.gz: '084da093ef867a02e12e2976920c66d9c5ece051'
4
+ data.tar.gz: 22c49bc080cbe45d7f173fa44b4c0ce4e47e3c14
5
5
  SHA512:
6
- metadata.gz: 576fa3ddf05ed7b4ae166390af1dc35ae6fabf01f6df24a10a9004ece8a08127c4896263a328cf20df8c2b9c16646a3b636419b2e0fff01de49e10c7f8fc7617
7
- data.tar.gz: 88ec8630ba79b6a860cff9486baf2868a5cf4a6028f35b9e398a1f75e22190815839e64094658dad205ec4a2196940d3f6b8ccdbd672d5c223eef5332f0830ad
6
+ metadata.gz: 3522c39bd30eabc58c9b8c27bf788e40dc613e5505fb0455b9db2c723d3ac08b95e64c034b053c244ada3a6c26484f32f21806254de82aeb1e0b0212cb8b2793
7
+ data.tar.gz: bc4f0aac21c7070cc3173d9a99b920f3fc91c45c61339ff2592a4da3d37db05bccb7b973fb0e472a0eae5facb1429479a6f399ef433f00d10c2d0e4cba6ba08e
@@ -1,3 +1,3 @@
1
1
  module ErbAsterisk
2
- VERSION = '0.0.10'.freeze
2
+ VERSION = '0.0.11'.freeze
3
3
  end
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 = TOPLEVEL_BINDING
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: erb_asterisk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Baikuzin