vault-tools 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vault-tools/config.rb +1 -1
- data/lib/vault-tools/version.rb +1 -1
- data/test/config_test.rb +0 -8
- metadata +3 -3
data/lib/vault-tools/config.rb
CHANGED
@@ -143,7 +143,7 @@ module Vault
|
|
143
143
|
# @raise [RuntimeError] Raised if the environment variable is not defined.
|
144
144
|
# @return [Array] An array of values.
|
145
145
|
def self.array(name)
|
146
|
-
env
|
146
|
+
env(name).to_s.split(',')
|
147
147
|
end
|
148
148
|
|
149
149
|
# An environment variable converted to a bool.
|
data/lib/vault-tools/version.rb
CHANGED
data/test/config_test.rb
CHANGED
@@ -144,14 +144,6 @@ class ConfigTest < Vault::TestCase
|
|
144
144
|
assert_equal(['apple', 'orange', 'cherry'], Config.array('ARRAY'))
|
145
145
|
end
|
146
146
|
|
147
|
-
# Config.array raises a RuntimeError if the environment variable
|
148
|
-
# doesn't exist.
|
149
|
-
def test_array_with_unknown_environment_variable
|
150
|
-
assert_raises RuntimeError do
|
151
|
-
Config.array('UNKNOWN')
|
152
|
-
end
|
153
|
-
end
|
154
|
-
|
155
147
|
# Config.bool?(var) is only true if the value of var is the string
|
156
148
|
# 'true'. If the var is absent or any other value, it evaluates to false.
|
157
149
|
def test_bool_returns_true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vault-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -182,7 +182,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: '0'
|
183
183
|
segments:
|
184
184
|
- 0
|
185
|
-
hash:
|
185
|
+
hash: 4365418169947979393
|
186
186
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
187
187
|
none: false
|
188
188
|
requirements:
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
segments:
|
193
193
|
- 0
|
194
|
-
hash:
|
194
|
+
hash: 4365418169947979393
|
195
195
|
requirements: []
|
196
196
|
rubyforge_project:
|
197
197
|
rubygems_version: 1.8.23
|