datacaster 3.2.3 → 3.2.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 382b6c6e5194c6746baaef5483ef078a06f0494c1c41798e118bf9b63d554436
|
4
|
+
data.tar.gz: 1cc94cf3dbe08b9e660bb0e0a164eaf15567408239fa7b8f84f5353256b6c8b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a4fc369a63f0a2787d7b7a2706f68cf08a0181771c5c84acb3fa6d60e0f1e2fe2ca097ba611825bfd6e75f344dbf301254d90367cf6ece61264ea29c8b336ea2
|
7
|
+
data.tar.gz: caed96fc02c8020c951f053fa2a71852623ff8a45ac9ce91235c34d999b2cebd4eb3533bfdbc090aa561f4346bd596b940bcbd169ea81e47f4756430b87e6ede
|
@@ -47,7 +47,8 @@ module Datacaster
|
|
47
47
|
when Hash
|
48
48
|
cast_hash(result, schema)
|
49
49
|
else
|
50
|
-
raise "Expected hash or array when checking #{
|
50
|
+
raise RuntimeError, "Expected hash or array inside result when checking #{result.inspect} " \
|
51
|
+
"(schema is #{schema.inspect})", caller
|
51
52
|
end
|
52
53
|
end
|
53
54
|
|
@@ -63,11 +63,8 @@ module Datacaster
|
|
63
63
|
result = check.with_runtime(runtime).(switch_result)
|
64
64
|
next unless result.valid?
|
65
65
|
|
66
|
-
if
|
67
|
-
|
68
|
-
else
|
69
|
-
return runtime.checked_key!(@pick_key) { clause.with_runtime(runtime).(object) }
|
70
|
-
end
|
66
|
+
runtime.checked_key!(@pick_key) if !@pick_key.nil? && !@pick_key.is_a?(Array)
|
67
|
+
return clause.with_runtime(runtime).(object)
|
71
68
|
end
|
72
69
|
|
73
70
|
# all 'on'-s have failed
|
data/lib/datacaster/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: datacaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eugene Zolotarev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-02-
|
11
|
+
date: 2024-02-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|