config_for 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/config_for.rb +1 -1
- data/lib/config_for/version.rb +1 -1
- data/spec/config_for_spec.rb +8 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0140a146eebc3856380341e7b08fabbe9c778e54
|
4
|
+
data.tar.gz: bbb183467237d3654193569b17a3c5765c5a7d5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7e54d525bd1c4a6cfe8f14bf6365ab2ae101980352259b74fa9fe5e4b695df63d8af094df919e569ae6e28de2c03741681617887d5c61abea9672332c2bc715
|
7
|
+
data.tar.gz: 64564734a19fafaf3691322dd719ea94576fa79aa56b9669c368d8088d14d7aad774765b6023ce7eac2a1a2c01867faf8f0b37172bfa39c28ee524e96abf8c3b
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,11 @@ All notable changes to this project will be documented in this file.
|
|
3
3
|
|
4
4
|
## master - unreleased
|
5
5
|
|
6
|
+
## 0.1.2 - 2014-10-29
|
7
|
+
|
8
|
+
### Changed
|
9
|
+
- Loading config for unknown env does not raise exception but returns an empty hash
|
10
|
+
|
6
11
|
## 0.1.1 - 2014-10-29
|
7
12
|
|
8
13
|
### Changed
|
data/lib/config_for.rb
CHANGED
@@ -37,7 +37,7 @@ module ConfigFor
|
|
37
37
|
|
38
38
|
if File.readable?(yaml)
|
39
39
|
config = parse_yaml(yaml)
|
40
|
-
ActiveSupport::HashWithIndifferentAccess.new(config).fetch(env)
|
40
|
+
ActiveSupport::HashWithIndifferentAccess.new(config).fetch(env) { Hash.new }
|
41
41
|
else
|
42
42
|
raise "Could not load configuration. Can't read #{yaml}"
|
43
43
|
end
|
data/lib/config_for/version.rb
CHANGED
data/spec/config_for_spec.rb
CHANGED