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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 412477071e60ae65b5f06549108ee7864926964c
4
- data.tar.gz: c7f28f2f85e928ff693b6526a315916e9db6e200
3
+ metadata.gz: 9fc702b1e8fa15764de2145c492312394887f9de
4
+ data.tar.gz: 5606c9fe6b4a8da8dbec549793a54831f4eb8a86
5
5
  SHA512:
6
- metadata.gz: 46da6bd6986668591d96de8b464d38b163d0f1182d46e99897e71c957773e3516ee269cb253197c4c8e785eb130f59c34321f7f16c37bbf20c1967c67564eb75
7
- data.tar.gz: b29babccda05bd28332141231c0d144b7210155c9e7633fc4e50363ec631b07ab038bc9d39fc2a86fd46705df790899e24f2a5ba499fe97cefcdf0fc8f44edfa
6
+ metadata.gz: bfb015871bbfa151420f29b31ecfc184c0e46f49961e19e09be0dc92a248300122a0d5100784f6aacd1d138fb49e864e838096e14915f761e40389cbb7ba69ba
7
+ data.tar.gz: a45f11f647a4048dc184fb9aa2ac76176e3821c602cb8bf059341c3adc2befbcd09b88869a810b5b2a55b167f88d8e3a9d0020ea13bb238efc794297c6e0d6bf
@@ -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)
@@ -1,5 +1,5 @@
1
1
  module Dry
2
2
  module Config
3
- VERSION = '1.1.0'
3
+ VERSION = '1.1.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Ross