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 +4 -4
- data/CHANGES +1 -1
- data/lib/text_interpolator/text_interpolator.rb +1 -1
- data/lib/text_interpolator/version.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: 11f32e21bf5363a04d7439643bf55d42ba714366
|
4
|
+
data.tar.gz: c0a10d2ffdbf9a69560e3c2f2f1a070e1807ed93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85572fae3d154af532555547650374e87eba5d56db893a262613a02e3d116d2277d436d9abf238e71f1ea7322bc41d47984b30cbd4077e2cee7b73696e033d9e
|
7
|
+
data.tar.gz: 729e108f3b1a97f4a7be863ff1524181cbf1357a2c12a4343adcd2494f3de9ed77be79a2a104b715268e88e016f17e84f9c3a666b692d5518c8a458f033a394b
|
data/CHANGES
CHANGED
@@ -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
|