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 +4 -4
- data/lib/ultra_config/validation.rb +2 -0
- data/ultra_config.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9de0e8d7c4d000a2077c7f0411714d1fb902a09964cf87097b73878cef6d9c5a
|
4
|
+
data.tar.gz: a6eb402ed7488ae7c00cc43e806fc47d2d740aed9fdfb3679e9f8e9beba8b4f6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
|
data/ultra_config.gemspec
CHANGED