text-interpolator 1.1.4 → 1.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- YzM4N2Q0MmFiMWM0YjVmM2U1ODAxYWRmZGRkNzA0ZTQ2NmMzMGIwNA==
5
- data.tar.gz: !binary |-
6
- YmFiYzM1YTViMzgzOGE1ZjEzZTdkZDkwZjQxY2ZhYjM5MjE1YzgyOA==
2
+ SHA1:
3
+ metadata.gz: 69afab85f7ecdf511c5e7828735e5459f18d5952
4
+ data.tar.gz: 9e7bc13e251885eb519436d55bdf51a82559ebd9
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- OTc4YWYyMzNmMmJjY2E4YTZiOGQyZDE4ODllYjA1NGU5ZjlhYjYzMzczOWYx
10
- OWM5YWFiNGRjMzE5ZDhlYjE0ZmY2Mzc1YzU2ZjEwZGM2NjkyZjVhNDhjYWUy
11
- MTJhMzM1NWU4NjFkZDYyNDRhNzg4MTMwNGNhM2M3YjY3N2Y0YWI=
12
- data.tar.gz: !binary |-
13
- NzdhOTJiMTBkOTljZmM2MGRmNGRkZGZmOTM4N2RkMGNkNjc3MWY0ODZjMWE5
14
- MWQxN2RhNGUyMjU3ZGQwMzE2MTBhN2U1YzU1MWZlNDY2YWE5ZThjNTNiZGVj
15
- MjM2ZTA4NzdmNzBlNWI5YjJjODg2N2VlN2NiYzEzMDQ3Nzg2NmQ=
6
+ metadata.gz: 90bf17c599aaf88096747c4a7c9e6b25b938133e692a8d761db24a19da28b098ff9ee87d2a81c12134503c83eef6c9a6899fde96db9f6f8f726dc99334c4a76a
7
+ data.tar.gz: ddff6c17ee359aa77a5ede0b920cda0a3c96c023f131e9be06769794575863322b3c50fdae4d33f93808eb755b7644d16e3bd8dda37692de7977208e66c05510
data/CHANGES CHANGED
@@ -42,4 +42,8 @@
42
42
 
43
43
  == Version 1.1.4
44
44
 
45
- * Bug fixes.
45
+ * Bug fixes.
46
+
47
+ == Version 1.1.5
48
+
49
+ * Bug fix.
@@ -111,10 +111,10 @@ class TextInterpolator
111
111
  end
112
112
 
113
113
  def build_variable(var_table, compound_key, key, value)
114
- if value.kind_of? String
115
- var_table[key] = interpolate_variable value, var_table
116
- elsif value.kind_of? Hash
114
+ if value.kind_of? Hash
117
115
  build_hash var_table, compound_key, value
116
+ else
117
+ var_table[key] = interpolate_variable value.to_s, var_table
118
118
  end
119
119
  end
120
120
 
@@ -1,3 +1,3 @@
1
1
  class TextInterpolator
2
- VERSION = "1.1.4"
2
+ VERSION = "1.1.5"
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.4
4
+ version: 1.1.5
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-06-04 00:00:00.000000000 Z
11
+ date: 2014-06-23 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,12 +70,12 @@ 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: []