ultra_config 0.15.3 → 0.15.4

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: 881b7aa5c9f360176d51601e6c1ef032c2faacc139cb91bbcb707bfb2bd58bf1
4
- data.tar.gz: 3f064ef444acf34a16e42df3dbb21236b530d943a8c9dc7c561ae5b5017d5b64
3
+ metadata.gz: 9de0e8d7c4d000a2077c7f0411714d1fb902a09964cf87097b73878cef6d9c5a
4
+ data.tar.gz: a6eb402ed7488ae7c00cc43e806fc47d2d740aed9fdfb3679e9f8e9beba8b4f6
5
5
  SHA512:
6
- metadata.gz: 40974f0690a05326b18012a72b7f55554d26c0f31eb9e0949441be55fc5faecccdb3b2eafe615736736a4dccf0550910ef8372f077ffb60731e5b7bcd809448b
7
- data.tar.gz: 4fcb35a193e2b61bece67e593c6f28bf97cbce35eff0adc28aefc50d77b1265586a3aab916fe7116cf71a2aac25f9addf4fc6a40d0143f6bd034bc64be39cac1
6
+ metadata.gz: 46ee2f63e68acc408abdc31661d194443de15aa900506c31ceb0bcdf5604f6f840cd72460246aa686fd8acc92eed04c1d83ec6fbf56806e75aba96f41618aa97
7
+ data.tar.gz: 737c6cf2d0a7f80ff7875b6f75f2649ba38bb1c9960570a0f311ea665ee0540c9b7402ca121b2e524c94315811a7e2e444d9a8b54c5e9e7b879922ab46e6ce51
@@ -29,6 +29,8 @@ module UltraConfig
29
29
  end
30
30
 
31
31
  def one_of(list)
32
+ # If comparing against a list of symbols and item is a string, the user probably wants a symbol
33
+ @intermediate_value = @intermediate_value.to_sym if list.all? { |i| i.is_a?(Symbol) }
32
34
  raise ValidationError unless list.include?(@intermediate_value)
33
35
  end
34
36
 
@@ -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.3'
7
+ spec.version = '0.15.4'
8
8
  spec.authors = ['Gregory Kuruc']
9
9
  spec.email = ['gjk910327@gmail.com']
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultra_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.3
4
+ version: 0.15.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory Kuruc