durable_rules 0.34.44 → 0.34.45
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/rules/state.c +12 -8
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 085727d9800cdb2b2ac5c5a8aa5b0221ba213898
|
4
|
+
data.tar.gz: 0d98fe065f020fa77f1ddf208127805871a21975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2635dda062fffbcfef68cbeb51fe49bc7d1273b93526669a869af933ed6ba681b58a98af343c6766903ad9e3ce72fe889fef6ff390f4a618c06a28d6953fe94
|
7
|
+
data.tar.gz: 191c9e7b780f9b14bcb415ae9298969e4e39f465ce5b6e70406fdd58d8f12d9363b589f447526a39d5b446e1189213900968fec435109cd8f8767f858c4ab313
|
data/src/rules/state.c
CHANGED
@@ -333,10 +333,12 @@ unsigned int constructObject(char *root,
|
|
333
333
|
switch (layout) {
|
334
334
|
case JSON_OBJECT_SEQUENCED:
|
335
335
|
property = &jo->properties[jo->propertiesLength];
|
336
|
-
if (
|
337
|
-
|
338
|
-
|
339
|
-
|
336
|
+
if (!parentName) {
|
337
|
+
if (hash == HASH_ID) {
|
338
|
+
jo->idIndex = jo->propertiesLength;
|
339
|
+
} else if (hash == HASH_SID) {
|
340
|
+
jo->sidIndex = jo->propertiesLength;
|
341
|
+
}
|
340
342
|
}
|
341
343
|
break;
|
342
344
|
case JSON_OBJECT_HASHED:
|
@@ -346,10 +348,12 @@ unsigned int constructObject(char *root,
|
|
346
348
|
candidate = (candidate + 1) % MAX_OBJECT_PROPERTIES;
|
347
349
|
}
|
348
350
|
|
349
|
-
if (
|
350
|
-
|
351
|
-
|
352
|
-
|
351
|
+
if (!parentName) {
|
352
|
+
if (hash == HASH_ID) {
|
353
|
+
jo->idIndex = candidate;
|
354
|
+
} else if (hash == HASH_SID) {
|
355
|
+
jo->sidIndex = candidate;
|
356
|
+
}
|
353
357
|
}
|
354
358
|
|
355
359
|
property = &jo->properties[candidate];
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: durable_rules
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.34.
|
4
|
+
version: 0.34.45
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesus Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|