text-interpolator 1.1.6 → 1.1.7

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 CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- NGFkYWMxNzI2N2U5MTBiM2MzMTZhNWFjNjQwMThlNzAzZTYwMDJmZA==
5
- data.tar.gz: !binary |-
6
- MmQ5NDgyNGE0ZDU4ZjEwZDExY2I0NzEwYzgzYTVmMDQ3OWY2MzAwZg==
2
+ SHA1:
3
+ metadata.gz: e26bf5c71c891d3838b25a290f597ef5390146f0
4
+ data.tar.gz: 604093a12a2843ccf75c2246c904efa57841520e
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NTJmN2I5NDc3Y2MzYWQyNWM0MDFkNWNiMzA3YzA2YTI4YWM3OWZjOTUyNDY1
10
- MjkwZTYxOTRhYjI0NmFiMGMyNWNhMTA2ZjlhNTRmOWQyOTYyNTE4ODkwNWQy
11
- MjJmYWM5YzVhZjUxZDc3YTY2YTQ0ZTYzNGVmOTlmYWY0MDMyYTY=
12
- data.tar.gz: !binary |-
13
- YTc1ZWU5ZGU0ZmVjZWIxOGJiYmE1NmJlNDc3NzZkMTUzYTYxZjY2MDIxN2Y4
14
- ZmZmMTM5YTBlZDRhYTk3Y2IwMWI4NzA5MDY4ZmY1NTk2NTQ3NTkwYzExMzI3
15
- MWQ5ZDkyNzVkNThjNmMwMWM4MWJkMjliZjFiN2Q1YjMzNWU5ZGU=
6
+ metadata.gz: 0b2be5d598f0473900f6ebef41fe5939cbc0c28cd309a6299d4ca20c7d407cfd8049236783fbfc160450d5163e9e2a7b0fd8b83b70e440363e34a8f60b4e9416
7
+ data.tar.gz: dc94f4b54cb6b6ed55b4892806adb00bfaec018d804b7a77918da51ecedcb57bfff1c7cb850ac111bb6d040fa4f48cbf698ac550ab5f26549f99d0f8080623ce
@@ -1 +1 @@
1
- 1.9.3
1
+ 2.2.3
data/CHANGES CHANGED
@@ -48,6 +48,6 @@
48
48
 
49
49
  * Bug fix.
50
50
 
51
- == Version 1.1.6
51
+ == Version 1.1.6, 1.1.7
52
52
 
53
53
  * Bug fix.
@@ -172,7 +172,7 @@ class TextInterpolator
172
172
  end
173
173
 
174
174
  def interpolate_variable value, env
175
- new_value = value.index(/\#\{/) ? value.gsub(/\#{/, '%{') : value
175
+ new_value = value.gsub(/#\{(.*)\}/, '%{\1}').gsub(/%\{(.*)\}/) {|s| s.gsub(/\s+/, '') }
176
176
 
177
177
  StringIO.new(new_value).read % env
178
178
  end
@@ -1,3 +1,3 @@
1
1
  class TextInterpolator
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
  end
metadata CHANGED
@@ -1,41 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text-interpolator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Shvets
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-15 00:00:00.000000000 Z
11
+ date: 2015-11-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gemspec_deps_gen
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.1'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gemcutter
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0.7'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0.7'
41
41
  description: Simple library for interpolation of variables inside the text.
@@ -44,10 +44,10 @@ executables: []
44
44
  extensions: []
45
45
  extra_rdoc_files: []
46
46
  files:
47
- - .gitignore
48
- - .idea/codeStyleSettings.xml
49
- - .ruby-gemset
50
- - .ruby-version
47
+ - ".gitignore"
48
+ - ".idea/codeStyleSettings.xml"
49
+ - ".ruby-gemset"
50
+ - ".ruby-version"
51
51
  - CHANGES
52
52
  - Gemfile
53
53
  - LICENSE
@@ -70,17 +70,17 @@ require_paths:
70
70
  - lib
71
71
  required_ruby_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ! '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  requirements:
78
- - - ! '>='
78
+ - - ">="
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.2.2
83
+ rubygems_version: 2.4.8
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Simple library for interpolation of variables inside the text