ultra_config 0.15.1 → 0.15.2
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/validation.rb +3 -0
- 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: 1b37b43ab37d62c4b959206d3e2324a6164f6079bb7c8fcb7e9b7815cc6fef70
|
4
|
+
data.tar.gz: b482dbf18dab4065656de6fd0ca0b22961d5671fce9ef7e208d89b41116535f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e063ae5be2ff060d1a14511400c1a49d4d8d15fc090962d1aa7ac079790c40e4a3648624ec0e2b3d4de6ec380d71cc16ee826de6a14170a211a33cf1fc763bc5
|
7
|
+
data.tar.gz: 27863a05d64c93df679026b34c06427173ae2445a8f42bb8cc519ac6ba93f52cf8787cf43057b173d0ab27b38be3311a381761dd4e9c74546a93063434bff56f
|
@@ -25,6 +25,9 @@ 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
|
+
|
28
31
|
raise TypeValidationError if @value.class != @intermediate_value.class
|
29
32
|
end
|
30
33
|
|
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.2
|
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-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bump
|