durable_rules 2.0.14 → 2.0.15
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 +14 -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: d2b95c8e4b55277ee44b58323b886608f8496795
|
4
|
+
data.tar.gz: 80c64211b631d8e79f232f582088f6e599217ec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62f9a2c8f834b30c9ba64390d95612118347efe81172f26f5ae3d74367a66a74208df88f0294812c9896d069f497cb67fcba2890b02e263f0884f269b53bac71
|
7
|
+
data.tar.gz: e5b051bd03d1e163f02c3e154060bd3787a98e2f5886e034e633e826565bee0d6b2b90d654d805bd6f9f88d19499ca5434301622bdb3e336720c9426d306914f
|
data/src/rules/state.c
CHANGED
@@ -1471,6 +1471,14 @@ unsigned int constructObject(char *root,
|
|
1471
1471
|
#endif
|
1472
1472
|
strncpy(newParent, firstName, nameLength);
|
1473
1473
|
newParent[nameLength] = '\0';
|
1474
|
+
|
1475
|
+
hash = fnv1Hash32(newParent, nameLength);
|
1476
|
+
CHECK_RESULT(setObjectProperty(jo,
|
1477
|
+
hash,
|
1478
|
+
type,
|
1479
|
+
first - root,
|
1480
|
+
last - first + 1));
|
1481
|
+
|
1474
1482
|
CHECK_RESULT(constructObject(root,
|
1475
1483
|
newParent,
|
1476
1484
|
first,
|
@@ -1490,14 +1498,12 @@ unsigned int constructObject(char *root,
|
|
1490
1498
|
fullName[parentNameLength] = '.';
|
1491
1499
|
strncpy(&fullName[parentNameLength + 1], firstName, nameLength);
|
1492
1500
|
fullName[fullNameLength] = '\0';
|
1493
|
-
|
1494
|
-
|
1495
|
-
|
1496
|
-
|
1497
|
-
|
1498
|
-
|
1499
|
-
} else {
|
1500
|
-
|
1501
|
+
CHECK_RESULT(setObjectProperty(jo,
|
1502
|
+
fnv1Hash32(fullName, fullNameLength),
|
1503
|
+
type,
|
1504
|
+
first - root,
|
1505
|
+
last - first + 1));
|
1506
|
+
if (type == JSON_OBJECT) {
|
1501
1507
|
CHECK_RESULT(constructObject(root,
|
1502
1508
|
fullName,
|
1503
1509
|
first,
|
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: 2.0.
|
4
|
+
version: 2.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesus Ruiz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|