ultra_config 0.15.2 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ultra_config/config.rb +4 -0
- data/lib/ultra_config/validation.rb +0 -3
- data/ultra_config.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 881b7aa5c9f360176d51601e6c1ef032c2faacc139cb91bbcb707bfb2bd58bf1
|
4
|
+
data.tar.gz: 3f064ef444acf34a16e42df3dbb21236b530d943a8c9dc7c561ae5b5017d5b64
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40974f0690a05326b18012a72b7f55554d26c0f31eb9e0949441be55fc5faecccdb3b2eafe615736736a4dccf0550910ef8372f077ffb60731e5b7bcd809448b
|
7
|
+
data.tar.gz: 4fcb35a193e2b61bece67e593c6f28bf97cbce35eff0adc28aefc50d77b1265586a3aab916fe7116cf71a2aac25f9addf4fc6a40d0143f6bd034bc64be39cac1
|
data/lib/ultra_config/config.rb
CHANGED
@@ -19,6 +19,10 @@ module UltraConfig
|
|
19
19
|
|
20
20
|
def value=(value)
|
21
21
|
@intermediate_value = value
|
22
|
+
|
23
|
+
# Be nice and convert Strings to Symbols
|
24
|
+
@intermediate_value = @intermediate_value.to_sym if @intermediate_value.is_a?(String) && @value.is_a?(Symbol)
|
25
|
+
|
22
26
|
self.instance_eval(&@config_block) if @config_block
|
23
27
|
type_safety(Settings.type_safety) unless @type_safety_checked
|
24
28
|
@value = @intermediate_value
|
@@ -25,9 +25,6 @@ module UltraConfig
|
|
25
25
|
return if @value.nil?
|
26
26
|
return if @value.is_a?(Boolean) && @intermediate_value.is_a?(Boolean)
|
27
27
|
|
28
|
-
# Be nice and convert Strings to Symbols
|
29
|
-
@intermediate_value = @intermediate_value.to_sym if @intermediate_value.is_a?(String) && @value.is_a?(Symbol)
|
30
|
-
|
31
28
|
raise TypeValidationError if @value.class != @intermediate_value.class
|
32
29
|
end
|
33
30
|
|
data/ultra_config.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ultra_config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gregory Kuruc
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bump
|