complex_config 0.15.0 → 0.15.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/.travis.yml +1 -0
- data/VERSION +1 -1
- data/complex_config.gemspec +4 -4
- data/lib/complex_config/provider.rb +2 -0
- data/lib/complex_config/version.rb +1 -1
- data/spec/complex_config/provider_spec.rb +1 -0
- data/spec/config/config.yml +2 -0
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c1e763c9e01b185d769813152c88136e781ad3eb40d38c346243ec8a7575dd40
|
|
4
|
+
data.tar.gz: 6c7bde800225c7ae218e9fa45629e3fb924ad7e8688ae560944e36de64cc8af8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d84a316f63eb06734322d3231e4eb049539fb7ff74ed1829e706dafc269721d402081a05829e5a34019baacfed1ddea339d2b5496826781dcf28580b4cf36ad6
|
|
7
|
+
data.tar.gz: a126471e9ba5052c670aaa5c01e9f932dfa365209686f87a89d97c3f1d55404955623aa1d149468d1fe608729c078bc8e0a8682d3d3ec7df63bf071552dcb4f9
|
data/.travis.yml
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.15.
|
|
1
|
+
0.15.1
|
data/complex_config.gemspec
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
|
-
# stub: complex_config 0.15.
|
|
2
|
+
# stub: complex_config 0.15.1 ruby lib
|
|
3
3
|
|
|
4
4
|
Gem::Specification.new do |s|
|
|
5
5
|
s.name = "complex_config".freeze
|
|
6
|
-
s.version = "0.15.
|
|
6
|
+
s.version = "0.15.1"
|
|
7
7
|
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
9
9
|
s.require_paths = ["lib".freeze]
|
|
10
10
|
s.authors = ["Florian Frank".freeze]
|
|
11
|
-
s.date = "
|
|
11
|
+
s.date = "2019-03-14"
|
|
12
12
|
s.description = "This library allows you to access configuration files via a simple interface".freeze
|
|
13
13
|
s.email = "flori@ping.de".freeze
|
|
14
14
|
s.executables = ["complex_config".freeze]
|
|
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
|
17
17
|
s.homepage = "https://github.com/flori/complex_config".freeze
|
|
18
18
|
s.licenses = ["Apache-2.0".freeze]
|
|
19
19
|
s.rdoc_options = ["--title".freeze, "ComplexConfig -- configuration library".freeze, "--main".freeze, "README.md".freeze]
|
|
20
|
-
s.rubygems_version = "
|
|
20
|
+
s.rubygems_version = "3.0.3".freeze
|
|
21
21
|
s.summary = "configuration library".freeze
|
|
22
22
|
s.test_files = ["spec/complex_config/config_spec.rb".freeze, "spec/complex_config/encryption_spec.rb".freeze, "spec/complex_config/key_source_spec.rb".freeze, "spec/complex_config/plugins_spec.rb".freeze, "spec/complex_config/provider_spec.rb".freeze, "spec/complex_config/settings_spec.rb".freeze, "spec/complex_config/shortcuts_spec.rb".freeze, "spec/spec_helper.rb".freeze]
|
|
23
23
|
|
|
@@ -105,6 +105,8 @@ class ComplexConfig::Provider
|
|
|
105
105
|
settings.each do |key, value|
|
|
106
106
|
if value.is_a? ComplexConfig::Settings
|
|
107
107
|
value.attributes_update(shared)
|
|
108
|
+
elsif value.nil?
|
|
109
|
+
settings[key] = ComplexConfig::Settings.build(nil, shared.dup)
|
|
108
110
|
end
|
|
109
111
|
end
|
|
110
112
|
end
|
|
@@ -315,6 +315,7 @@ RSpec.describe ComplexConfig::Provider do
|
|
|
315
315
|
it 'can share values' do
|
|
316
316
|
expect(described_class['config'].development.shared).to eq true
|
|
317
317
|
expect(described_class['config'].test.shared).to eq true
|
|
318
|
+
expect(described_class['config'].staging.shared).to eq true
|
|
318
319
|
end
|
|
319
320
|
end
|
|
320
321
|
end
|
data/spec/config/config.yml
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: complex_config
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.15.
|
|
4
|
+
version: 0.15.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Frank
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: gem_hadar
|
|
@@ -219,8 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
219
219
|
- !ruby/object:Gem::Version
|
|
220
220
|
version: '0'
|
|
221
221
|
requirements: []
|
|
222
|
-
|
|
223
|
-
rubygems_version: 2.7.8
|
|
222
|
+
rubygems_version: 3.0.3
|
|
224
223
|
signing_key:
|
|
225
224
|
specification_version: 4
|
|
226
225
|
summary: configuration library
|