ultra_config 0.11.1 → 0.11.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/config.rb +1 -1
- data/lib/ultra_config/validation.rb +1 -6
- data/ultra_config.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd3774837b3d62bbb7acd6552b69f1dc83f9449b
|
4
|
+
data.tar.gz: ebf2f4d7ae03672bfd731717653eaadc16776bc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '00937620283f74a3491ff91769380400119c1096cda51688d848aadc88594154d98ea443ac3c5ef6f6bf3f0cfd9867dedab229c546e27cee800363d5453537b8'
|
7
|
+
data.tar.gz: 656c41d900329dec728eb9cc4321a7aa0214f19ee2a478fd08086c18528789600a4114c258e58a0a1088a59540b260c5194e1b59e6a3fbeb96460a30f8ce25af
|
data/lib/ultra_config/config.rb
CHANGED
@@ -21,7 +21,7 @@ module UltraConfig
|
|
21
21
|
type_safety(Settings.type_safety) unless @type_safety_checked
|
22
22
|
@value = @intermediate_value
|
23
23
|
rescue UltraConfig::Validation::ValidationError
|
24
|
-
raise UltraConfig::Validation::ValidationError
|
24
|
+
raise UltraConfig::Validation::ValidationError, @error_msg
|
25
25
|
ensure
|
26
26
|
@type_safety_checked = false
|
27
27
|
@intermediate_value = nil
|
@@ -4,12 +4,7 @@ module UltraConfig
|
|
4
4
|
module Validation
|
5
5
|
include Boolean
|
6
6
|
|
7
|
-
class ValidationError < StandardError;
|
8
|
-
def initialize(msg: nil)
|
9
|
-
super
|
10
|
-
end
|
11
|
-
end
|
12
|
-
|
7
|
+
class ValidationError < StandardError; end
|
13
8
|
class TypeValidationError < ValidationError; end
|
14
9
|
|
15
10
|
def type_safety(type)
|
data/ultra_config.gemspec
CHANGED