unified_settings 0.1.0 → 0.1.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 101e91d0a5df136386e9f59565bfd7ca7f170df66f192673926728e43c5d4db6
|
4
|
+
data.tar.gz: fa08264388a6c5b13b90bbae7cbe760bc3fe9c33594e65133cfac604b4c5755c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c2e086a138bf4d72b96e736ba2a8a1cdad17902879aca658d19e365c4e77e3aa126f57dbc769897a0c51c17c708c3d31322088d5bf0c6d4e946617168bb23e5
|
7
|
+
data.tar.gz: 6677d274137f86bb1542e26442d3ab69a283767c814876a22286be605430fcdaf4b3096b249488694036bf8a4056945c1dc9d5c10515ca72d309ef9ee18cd3da
|
data/Gemfile.lock
CHANGED
@@ -1,24 +1,25 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
unified_settings (0.1.
|
4
|
+
unified_settings (0.1.1)
|
5
5
|
activerecord (> 4.2.0)
|
6
6
|
activesupport (> 4.2.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activemodel (7.0.
|
12
|
-
activesupport (= 7.0.
|
13
|
-
activerecord (7.0.
|
14
|
-
activemodel (= 7.0.
|
15
|
-
activesupport (= 7.0.
|
16
|
-
activesupport (7.0.
|
11
|
+
activemodel (7.0.7)
|
12
|
+
activesupport (= 7.0.7)
|
13
|
+
activerecord (7.0.7)
|
14
|
+
activemodel (= 7.0.7)
|
15
|
+
activesupport (= 7.0.7)
|
16
|
+
activesupport (7.0.7)
|
17
17
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
18
18
|
i18n (>= 1.6, < 2)
|
19
19
|
minitest (>= 5.1)
|
20
20
|
tzinfo (~> 2.0)
|
21
21
|
ast (2.4.2)
|
22
|
+
base64 (0.1.1)
|
22
23
|
bundler-audit (0.9.1)
|
23
24
|
bundler (>= 1.2.0, < 3)
|
24
25
|
thor (~> 1.0)
|
@@ -27,10 +28,10 @@ GEM
|
|
27
28
|
deep_merge (~> 1.2, >= 1.2.1)
|
28
29
|
dry-validation (~> 1.0, >= 1.0.0)
|
29
30
|
deep_merge (1.2.2)
|
30
|
-
dry-configurable (1.0
|
31
|
+
dry-configurable (1.1.0)
|
31
32
|
dry-core (~> 1.0, < 2)
|
32
33
|
zeitwerk (~> 2.6)
|
33
|
-
dry-core (1.0.
|
34
|
+
dry-core (1.0.1)
|
34
35
|
concurrent-ruby (~> 1.0)
|
35
36
|
zeitwerk (~> 2.6)
|
36
37
|
dry-inflector (1.0.0)
|
@@ -63,18 +64,19 @@ GEM
|
|
63
64
|
concurrent-ruby (~> 1.0)
|
64
65
|
json (2.6.3)
|
65
66
|
language_server-protocol (3.17.0.3)
|
66
|
-
minitest (5.
|
67
|
+
minitest (5.19.0)
|
67
68
|
parallel (1.23.0)
|
68
69
|
parser (3.2.2.3)
|
69
70
|
ast (~> 2.4.1)
|
70
71
|
racc
|
71
72
|
racc (1.7.1)
|
72
|
-
rack (
|
73
|
+
rack (3.0.8)
|
73
74
|
rainbow (3.1.1)
|
74
75
|
rake (13.0.6)
|
75
76
|
regexp_parser (2.8.1)
|
76
|
-
rexml (3.2.
|
77
|
-
rubocop (1.
|
77
|
+
rexml (3.2.6)
|
78
|
+
rubocop (1.56.0)
|
79
|
+
base64 (~> 0.1.1)
|
78
80
|
json (~> 2.3)
|
79
81
|
language_server-protocol (>= 3.17.0)
|
80
82
|
parallel (~> 1.10)
|
@@ -82,14 +84,14 @@ GEM
|
|
82
84
|
rainbow (>= 2.2.2, < 4.0)
|
83
85
|
regexp_parser (>= 1.8, < 3.0)
|
84
86
|
rexml (>= 3.2.5, < 4.0)
|
85
|
-
rubocop-ast (>= 1.28.
|
87
|
+
rubocop-ast (>= 1.28.1, < 2.0)
|
86
88
|
ruby-progressbar (~> 1.7)
|
87
89
|
unicode-display_width (>= 2.4.0, < 3.0)
|
88
90
|
rubocop-ast (1.29.0)
|
89
91
|
parser (>= 3.2.1.0)
|
90
92
|
rubocop-minitest (0.31.0)
|
91
93
|
rubocop (>= 1.39, < 2.0)
|
92
|
-
rubocop-performance (1.
|
94
|
+
rubocop-performance (1.19.0)
|
93
95
|
rubocop (>= 1.7.0, < 2.0)
|
94
96
|
rubocop-ast (>= 0.4.0)
|
95
97
|
rubocop-rails (2.20.2)
|
@@ -105,7 +107,7 @@ GEM
|
|
105
107
|
tzinfo (2.0.6)
|
106
108
|
concurrent-ruby (~> 1.0)
|
107
109
|
unicode-display_width (2.4.2)
|
108
|
-
zeitwerk (2.6.
|
110
|
+
zeitwerk (2.6.11)
|
109
111
|
|
110
112
|
PLATFORMS
|
111
113
|
x86_64-darwin-22
|
@@ -32,11 +32,11 @@ module UnifiedSettings
|
|
32
32
|
case_sensitive = case_sensitive?(case_sensitive)
|
33
33
|
|
34
34
|
val = setting_obj.dig(*key_arr)
|
35
|
-
return val
|
35
|
+
return val unless val.nil?
|
36
36
|
return nil if case_sensitive
|
37
37
|
|
38
38
|
val = setting_obj.dig(*key_arr.map(&:downcase))
|
39
|
-
return val
|
39
|
+
return val unless val.nil?
|
40
40
|
|
41
41
|
setting_obj.dig(*key_arr.map(&:upcase))
|
42
42
|
end
|
@@ -15,8 +15,8 @@ module UnifiedSettings
|
|
15
15
|
|
16
16
|
variable_names.each do |name|
|
17
17
|
if klass
|
18
|
-
return true if klass.
|
19
|
-
elsif Object.
|
18
|
+
return true if klass.const_defined?(name)
|
19
|
+
elsif Object.const_defined?(name)
|
20
20
|
return true
|
21
21
|
end
|
22
22
|
rescue NameError
|
@@ -29,11 +29,11 @@ module UnifiedSettings
|
|
29
29
|
case_sensitive = case_sensitive?(case_sensitive)
|
30
30
|
|
31
31
|
val = Rails.application.credentials.dig(*key_arr)
|
32
|
-
return val
|
32
|
+
return val unless val.nil?
|
33
33
|
return nil if case_sensitive
|
34
34
|
|
35
35
|
val = Rails.application.credentials.dig(*key_arr.map(&:downcase))
|
36
|
-
return val
|
36
|
+
return val unless val.nil?
|
37
37
|
|
38
38
|
Rails.application.credentials.dig(*key_arr.map(&:upcase))
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unified_settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick R. Schmid
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|