text-interpolator 1.1.8 → 1.1.9

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: 8ce45d986f4fc09df277c1f39581c3647764908d
4
- data.tar.gz: a8b9db64372214261f93dee30fe3511da2bac3fa
3
+ metadata.gz: 11f32e21bf5363a04d7439643bf55d42ba714366
4
+ data.tar.gz: c0a10d2ffdbf9a69560e3c2f2f1a070e1807ed93
5
5
  SHA512:
6
- metadata.gz: 6f0dd9506b4434bdddcf4c4f15a850d4e79365cc6443a5904b52334c158df8db0c1938c76ec725d3d24a3f51203c7e6604f3925d20ba8d0442ce943e84f2573d
7
- data.tar.gz: 9e9373f5d10496b8498e8be6a560dc66c4e12c3f8ed6397a8cfe954ce921fc73a6a5df3b730b07239f2c693c33159ffaca9c5fe06271e09fcf8280bdbaed0f36
6
+ metadata.gz: 85572fae3d154af532555547650374e87eba5d56db893a262613a02e3d116d2277d436d9abf238e71f1ea7322bc41d47984b30cbd4077e2cee7b73696e033d9e
7
+ data.tar.gz: 729e108f3b1a97f4a7be863ff1524181cbf1357a2c12a4343adcd2494f3de9ed77be79a2a104b715268e88e016f17e84f9c3a666b692d5518c8a458f033a394b
data/CHANGES CHANGED
@@ -48,6 +48,6 @@
48
48
 
49
49
  * Bug fix.
50
50
 
51
- == Version 1.1.6, 1.1.7, 1.1.8
51
+ == Version 1.1.6 - 1.1.9
52
52
 
53
53
  * Bug fix.
@@ -168,7 +168,7 @@ class TextInterpolator
168
168
  end
169
169
 
170
170
  def interpolate_variable value, env
171
- new_value = value.gsub(/#\{([a-zA-Z\d\._]*)\}/, '%{\1}').gsub(/%\{([a-zA-Z\d\._]*)\}/) {|s| s.gsub(/\s+/, '') }
171
+ new_value = value.gsub(/#\{([a-zA-Z\s\d\._]*)\}/, '%{\1}').gsub(/%\{([a-zA-Z\s\d\._]*)\}/) {|s| s.gsub(/\s+/, '') }
172
172
 
173
173
  StringIO.new(new_value).read % env
174
174
  end
@@ -1,3 +1,3 @@
1
1
  class TextInterpolator
2
- VERSION = "1.1.8"
2
+ VERSION = "1.1.9"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text-interpolator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
4
+ version: 1.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets