evt-settings 2.1.1.1 → 2.1.1.6

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
  SHA256:
3
- metadata.gz: 68e0691d8994930cab7259e915ec865bab803c3ff7a025a3eea790c2e769a405
4
- data.tar.gz: 5acd8233c2624f5a7883846b51b33ada95f40fa9c5ad64155597178a50d715e2
3
+ metadata.gz: 40c3555c5c94058f4d1dc79bdc9151934d7122ae8005e78403fd80d896368dcf
4
+ data.tar.gz: 9e0746254079233e1051211b385116409017f846fb5bc0ba687526d716dbdd28
5
5
  SHA512:
6
- metadata.gz: d3765bde5adcfc8f19023d246fdbccc07073d32aa5acf0ce7a8aa5b52bc37f3586541fe06091a34021ae1d1a737a225163438163f09930526232cb92ee2dcfdc
7
- data.tar.gz: 259ba6bb657b7beed6fa5dd5dbffd12884819e2b8f5d94543f6ef2ceacdf47ae6001bcc2dbe0bdd23d2b880cb4307c464d0831f52fdfa75d26be8cb0027045fe
6
+ metadata.gz: 9b8499a274a9f2f11f0c41102c4377d89fac7ab7600dcaf1732d758c43a6c19f7f60f3f8330bd04cf2365c18b9dc026a1176ac589106c1d5994d53141cb86d5d
7
+ data.tar.gz: f3f33bd0a909e67cdf7b19e64fbe440b2037adf7b6d2519fc509e37d49725abd50c8f9d6d14a346d2a6d59d059e9a0b6dc016f3f736440c3de82c1752e8c23f4
@@ -30,16 +30,6 @@ class Settings
30
30
  end
31
31
  end
32
32
 
33
- module CamelCaseKeys
34
- def self.example
35
- {
36
- 'someNamespace' => {
37
- 'someSetting' => 'some value'
38
- }
39
- }
40
- end
41
- end
42
-
43
33
  module SymbolKeys
44
34
  def self.example
45
35
  {
@@ -10,17 +10,18 @@ class Settings
10
10
  def self.build(source=nil)
11
11
  source ||= implementer_source
12
12
 
13
- data_source = DataSource::Build.(source)
14
-
15
- data = data_source.get_data
16
-
17
- data = Casing::Underscore.(data)
13
+ data = get_data(source)
18
14
 
19
15
  instance = new(data)
20
16
 
21
17
  instance
22
18
  end
23
19
 
20
+ def self.get_data(source)
21
+ data_source = DataSource::Build.(source)
22
+ data = data_source.get_data
23
+ end
24
+
24
25
  def self.implementer_source
25
26
  unless self.respond_to?(:data_source)
26
27
  return nil
data/lib/settings.rb CHANGED
@@ -1,7 +1,6 @@
1
1
  require 'pathname'
2
2
  require 'json'
3
3
 
4
- require 'casing'
5
4
  require 'attribute'
6
5
 
7
6
  require 'settings/data_source'
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.1.1
4
+ version: 2.1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - The Eventide Project
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-04 00:00:00.000000000 Z
11
+ date: 2022-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: evt-attribute
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: evt-casing
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: test_bench
43
29
  requirement: !ruby/object:Gem::Requirement
@@ -93,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
79
  - !ruby/object:Gem::Version
94
80
  version: '0'
95
81
  requirements: []
96
- rubygems_version: 3.1.2
82
+ rubygems_version: 3.3.3
97
83
  signing_key:
98
84
  specification_version: 4
99
85
  summary: Settings data access and assignment