datacaster 3.2.4 → 3.2.5

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: 382b6c6e5194c6746baaef5483ef078a06f0494c1c41798e118bf9b63d554436
4
- data.tar.gz: 1cc94cf3dbe08b9e660bb0e0a164eaf15567408239fa7b8f84f5353256b6c8b7
3
+ metadata.gz: 6e87035b2c58689f1682294141d8ef6dfe02c6054a810e7bcda3a22f2d934091
4
+ data.tar.gz: d6262e0130ef3f831731e9b0d6095a40fa7a19bfa9eecd5a0630c5eb8a3d9513
5
5
  SHA512:
6
- metadata.gz: a4fc369a63f0a2787d7b7a2706f68cf08a0181771c5c84acb3fa6d60e0f1e2fe2ca097ba611825bfd6e75f344dbf301254d90367cf6ece61264ea29c8b336ea2
7
- data.tar.gz: caed96fc02c8020c951f053fa2a71852623ff8a45ac9ce91235c34d999b2cebd4eb3533bfdbc090aa561f4346bd596b940bcbd169ea81e47f4756430b87e6ede
6
+ metadata.gz: 6800f34a95b7e8baaad2d2f093f4c6be58e35904220339c2c8c5452fcea375b169224ebf49c699d965073cf9b3777ab00b91adf48184d539c2ff1616accde73f
7
+ data.tar.gz: b8f9fd1227da11c029af5af57fb336f7e10f29b763123517ed4e5fbae0b27ca9ff6a65367841684edc366066ad27c720d367a318578b09637bfa98680bfcb58c
@@ -35,8 +35,20 @@ module Datacaster
35
35
  @should_check_stack[-1] = true
36
36
  end
37
37
 
38
+ # Notify current runtime that some child runtime has built schema,
39
+ # child runtime's schema is passed as the argument
38
40
  def checked_schema!(schema)
39
- @pointer_stack[-1].merge!(schema)
41
+ # Current runtime has marked its schema as checked unconditionally
42
+ return if @pointer_stack[-1] == true
43
+
44
+ # Child runtime marks its schema as checked unconditionally, so
45
+ # current runtime should do as well
46
+ if schema == true
47
+ @pointer_stack[-1] = true
48
+ # Child runtime's schema should be merged with current runtime's schema
49
+ else
50
+ @pointer_stack[-1].merge!(schema)
51
+ end
40
52
  end
41
53
 
42
54
  def ignore_checks!(&block)
@@ -1,3 +1,3 @@
1
1
  module Datacaster
2
- VERSION = "3.2.4"
2
+ VERSION = "3.2.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datacaster
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.4
4
+ version: 3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Zolotarev