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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: effd42c60eb855e6b65f42a760674fc49d771ec0cb3dc4384e2aec26767335c0
4
- data.tar.gz: 3fc7dd53bf2896d6544eecb8a888d20400ac93b29e5ca4d96bbe89f3605b28b5
3
+ metadata.gz: 1b37b43ab37d62c4b959206d3e2324a6164f6079bb7c8fcb7e9b7815cc6fef70
4
+ data.tar.gz: b482dbf18dab4065656de6fd0ca0b22961d5671fce9ef7e208d89b41116535f9
5
5
  SHA512:
6
- metadata.gz: a1a5f693f5f71e66b8b0e4cea0717b6a78b88eba48954c3ba9f4886812e58701d552cfe7e0dbda9f01f515eca1b2ec03741a954eb209847fdc031bd576487dd4
7
- data.tar.gz: 9e0b2554883d638d695293d5b49a3a9a42b0408e1f34324e3fcc2a7065920905deffbe31435da230870f7570daedef1ede8ab1c0b7544c7aef54c62060f1031e
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
 
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'ultra_config'
7
- spec.version = '0.15.1'
7
+ spec.version = '0.15.2'
8
8
  spec.authors = ['Gregory Kuruc']
9
9
  spec.email = ['gjk910327@gmail.com']
10
10
 
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.1
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-12 00:00:00.000000000 Z
11
+ date: 2020-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump