envied 0.3.0 → 0.3.1
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 +4 -4
- data/README.md +1 -1
- data/envied.gemspec +1 -1
- data/lib/envied.rb +0 -1
- data/spec/envied_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 591c914549fd162d08a2cb78db12f68b7eab29e8
|
|
4
|
+
data.tar.gz: 87b5af48a1422bb8f2ff6bb8c9c566fbd86f909e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ab15f9483472b1977f56fbbb224fe880ac40e126e36972ddf0908dcd0cc5baa28c3d9e3aa7f47f6784160796cf94f752ebbb328fa0fcb0ed7763dd66de98fbc
|
|
7
|
+
data.tar.gz: fa3a4be832c289a0bc4ca2b6ba423224d2b6590b9e0836345b1d915a72291a0bf7ed3e13d4b74b5fdbfa731348c521ef3bf1de1b1761c89360944e968043276b
|
data/README.md
CHANGED
|
@@ -63,7 +63,7 @@ The following types are supported:
|
|
|
63
63
|
In order to let other developers easily bootstrap the application, you can assign defaults to variables.
|
|
64
64
|
Defaults can be a value or a `Proc` (see example below).
|
|
65
65
|
|
|
66
|
-
Note that 'easily bootstrap' is
|
|
66
|
+
Note that 'easily bootstrap' is quite the opposite of 'fail-fast when not all ENV-variables are present'. Therefor it's disabled by default and you should explicitly state whén it is allowed:
|
|
67
67
|
|
|
68
68
|
```ruby
|
|
69
69
|
ENVied.configure(enable_defaults: Rails.env.development?) do |env|
|
data/envied.gemspec
CHANGED
data/lib/envied.rb
CHANGED
data/spec/envied_spec.rb
CHANGED
|
@@ -49,7 +49,7 @@ describe ENVied do
|
|
|
49
49
|
context 'ENV contains not all configured variables' do
|
|
50
50
|
before { configured_with(a: :Integer).and_no_ENV }
|
|
51
51
|
|
|
52
|
-
it 'raises EnvMissing on calling
|
|
52
|
+
it 'raises EnvMissing on calling require!' do
|
|
53
53
|
expect {
|
|
54
54
|
ENVied.require!
|
|
55
55
|
}.to raise_error(ENVied::Configurable::VariableMissingError)
|
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.3.
|
|
4
|
+
version: 0.3.1
|
|
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-
|
|
11
|
+
date: 2014-05-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: virtus
|