evt-settings 2.1.0.1 → 2.1.1.0
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/lib/settings.rb +1 -0
- data/lib/settings/data_source/build.rb +1 -0
- data/lib/settings/data_source/env.rb +15 -0
- metadata +7 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb5a4eb960f4d0e780bbcd97bb2e91416baf7b90b1268c7ae92fdf1663ec784d
|
4
|
+
data.tar.gz: 5ed28384eb54314aa31a421ba84355ed944ae932d5675c0c4c0ae6917e0b57c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ad24968d8d1f02c1922d315868f5ed9a382d6308d856cf33168571e60be98ae70927feb68992e69d957d651ec6b86388ae8b87fdca7f7d95884d063729b6b5d
|
7
|
+
data.tar.gz: 5053f0ceffe12425ae380be52a484bed75ebd6f292989415bb9c7792b9a274fce768386fe760fad28e63916859b6788255e484deb187ce8d72d78ce972ebd708
|
data/lib/settings.rb
CHANGED
@@ -10,6 +10,7 @@ class Settings
|
|
10
10
|
def self.type(input=nil)
|
11
11
|
return Settings::DataSource::Hash if input.is_a?(::Hash)
|
12
12
|
return Settings::DataSource::File if input.is_a?(String) || input.nil?
|
13
|
+
return Settings::DataSource::Env if input.instance_of?(Object)
|
13
14
|
|
14
15
|
raise Settings::Error, "Input is not supported: #{input}"
|
15
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.0
|
4
|
+
version: 2.1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: evt-log
|
@@ -66,6 +66,7 @@ files:
|
|
66
66
|
- lib/settings/controls/subject.rb
|
67
67
|
- lib/settings/data_source.rb
|
68
68
|
- lib/settings/data_source/build.rb
|
69
|
+
- lib/settings/data_source/env.rb
|
69
70
|
- lib/settings/data_source/file.rb
|
70
71
|
- lib/settings/data_source/hash.rb
|
71
72
|
- lib/settings/log.rb
|
@@ -78,7 +79,7 @@ homepage: https://github.com/eventide-project/settings
|
|
78
79
|
licenses:
|
79
80
|
- MIT
|
80
81
|
metadata: {}
|
81
|
-
post_install_message:
|
82
|
+
post_install_message:
|
82
83
|
rdoc_options: []
|
83
84
|
require_paths:
|
84
85
|
- lib
|
@@ -93,8 +94,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
94
|
- !ruby/object:Gem::Version
|
94
95
|
version: '0'
|
95
96
|
requirements: []
|
96
|
-
rubygems_version: 3.
|
97
|
-
signing_key:
|
97
|
+
rubygems_version: 3.1.2
|
98
|
+
signing_key:
|
98
99
|
specification_version: 4
|
99
100
|
summary: Settings data access and assignment
|
100
101
|
test_files: []
|