envied 0.6.2 → 0.6.3

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: 89f6ebe3012653a783d97fb3c1df78c4b747ec6b
4
- data.tar.gz: 1fdc04401cd1a5d1dad6aa710e157e1bc0d4108e
3
+ metadata.gz: 2ad0058d9ef3c1ac2fdb9d6e0fa5abcdfd46a357
4
+ data.tar.gz: 27bce5b5dec311495cfce3df7db4a165b7390ca4
5
5
  SHA512:
6
- metadata.gz: e72742c30e2590982a229849d225ae669bc9468e802155a1e9703fe409796b4209fd2d6fdc9faf6831a69a6c9c4f81f0af30d105008ca105b0c80f4935f4b210
7
- data.tar.gz: 4a361ee32e03924384526ced8c4c22162a8060387831dd9c1cbd954efd7538c4d4aa1a13d93ff3eac27871e709ddcf32349619c12f8751885e8dde267f946932
6
+ metadata.gz: 03de29ccf52772727c3f1e6105eff5e48636fa6e091b863b06d3dec76e5a1805d9fc35142a768b30453271082739c8296206fd976020295b6d0159c6a7d7fc09
7
+ data.tar.gz: 86606787ebaf0ffa25c297d9fc56da7abe352b7394d5fd1b2a2bf84d4e4e33389190a4ff236a02957dfcd3a048485b6255bdd3816103ab7c42664b8cc9a8f5ec
@@ -1,4 +1,8 @@
1
- # 0.6.2 / unreleased
1
+ # 0.6.3 / 2014-08-22
2
+
3
+ * Fix bug: 'false' was not a coercible value.
4
+
5
+ # 0.6.2 / 2014-08-20
2
6
 
3
7
  * Add `envied check:heroku` to do a check on your Heroku app.
4
8
 
@@ -187,7 +187,7 @@ class ENVied
187
187
  var_value = env_value_or_default(variable)
188
188
  return true if var_value.respond_to?(:call)
189
189
 
190
- variable.coerce var_value
190
+ !variable.coerce(var_value).nil?
191
191
  rescue Virtus::CoercionError
192
192
  return false
193
193
  end
@@ -1,3 +1,3 @@
1
1
  class ENVied
2
- VERSION = '0.6.2'
2
+ VERSION = '0.6.3'
3
3
  end
@@ -83,6 +83,20 @@ describe ENVied do
83
83
  end
84
84
  end
85
85
 
86
+ context 'bug: default value "false" is not coercible' do
87
+ before {
88
+ configure(enable_defaults: true) do
89
+ variable :FORCE_SSL, :Boolean, default: false
90
+ end
91
+ }
92
+
93
+ specify do
94
+ expect {
95
+ ENVied.require
96
+ }.not_to raise_error
97
+ end
98
+ end
99
+
86
100
  describe 'defaults' do
87
101
  describe 'setting' do
88
102
  subject { described_class.configuration }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: envied
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gert Goet
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-20 00:00:00.000000000 Z
11
+ date: 2014-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus