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 +4 -4
- data/lib/datacaster/runtimes/structure_cleaner.rb +13 -1
- data/lib/datacaster/version.rb +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: 6e87035b2c58689f1682294141d8ef6dfe02c6054a810e7bcda3a22f2d934091
|
4
|
+
data.tar.gz: d6262e0130ef3f831731e9b0d6095a40fa7a19bfa9eecd5a0630c5eb8a3d9513
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|
data/lib/datacaster/version.rb
CHANGED