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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b37b43ab37d62c4b959206d3e2324a6164f6079bb7c8fcb7e9b7815cc6fef70
4
- data.tar.gz: b482dbf18dab4065656de6fd0ca0b22961d5671fce9ef7e208d89b41116535f9
3
+ metadata.gz: 881b7aa5c9f360176d51601e6c1ef032c2faacc139cb91bbcb707bfb2bd58bf1
4
+ data.tar.gz: 3f064ef444acf34a16e42df3dbb21236b530d943a8c9dc7c561ae5b5017d5b64
5
5
  SHA512:
6
- metadata.gz: e063ae5be2ff060d1a14511400c1a49d4d8d15fc090962d1aa7ac079790c40e4a3648624ec0e2b3d4de6ec380d71cc16ee826de6a14170a211a33cf1fc763bc5
7
- data.tar.gz: 27863a05d64c93df679026b34c06427173ae2445a8f42bb8cc519ac6ba93f52cf8787cf43057b173d0ab27b38be3311a381761dd4e9c74546a93063434bff56f
6
+ metadata.gz: 40974f0690a05326b18012a72b7f55554d26c0f31eb9e0949441be55fc5faecccdb3b2eafe615736736a4dccf0550910ef8372f077ffb60731e5b7bcd809448b
7
+ data.tar.gz: 4fcb35a193e2b61bece67e593c6f28bf97cbce35eff0adc28aefc50d77b1265586a3aab916fe7116cf71a2aac25f9addf4fc6a40d0143f6bd034bc64be39cac1
@@ -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
 
@@ -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.2'
7
+ spec.version = '0.15.3'
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.2
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-18 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bump