dry-config 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dry/config/base.rb +2 -3
- data/lib/dry/config/version.rb +1 -1
- 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: 9fc702b1e8fa15764de2145c492312394887f9de
|
4
|
+
data.tar.gz: 5606c9fe6b4a8da8dbec549793a54831f4eb8a86
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfb015871bbfa151420f29b31ecfc184c0e46f49961e19e09be0dc92a248300122a0d5100784f6aacd1d138fb49e864e838096e14915f761e40389cbb7ba69ba
|
7
|
+
data.tar.gz: a45f11f647a4048dc184fb9aa2ac76176e3821c602cb8bf059341c3adc2befbcd09b88869a810b5b2a55b167f88d8e3a9d0020ea13bb238efc794297c6e0d6bf
|
data/lib/dry/config/base.rb
CHANGED
@@ -14,6 +14,8 @@ module Dry
|
|
14
14
|
#
|
15
15
|
class Base
|
16
16
|
attr_reader :configuration
|
17
|
+
attr_reader :environment
|
18
|
+
attr_reader :filenames
|
17
19
|
|
18
20
|
def initialize
|
19
21
|
seed_default_configuration
|
@@ -49,9 +51,6 @@ module Dry
|
|
49
51
|
# merge all top level settings with the defaults set in the #init
|
50
52
|
deep_merge!(@configuration, resolve_config(environment, filename))
|
51
53
|
end
|
52
|
-
|
53
|
-
# add the environment to the top level settings
|
54
|
-
@configuration[:environment] = (environment.nil? ? nil : environment.to_s)
|
55
54
|
end
|
56
55
|
|
57
56
|
def resolve_config(environment, filename)
|
data/lib/dry/config/version.rb
CHANGED