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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/src/rules/state.c +12 -8
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb5860162e828cd3623fb8bafe4c4e0360536ca1
4
- data.tar.gz: 3e5644f89f03e21b1b8a973202339d2af7823bd2
3
+ metadata.gz: 085727d9800cdb2b2ac5c5a8aa5b0221ba213898
4
+ data.tar.gz: 0d98fe065f020fa77f1ddf208127805871a21975
5
5
  SHA512:
6
- metadata.gz: 9e2716b0850faafa8f6ef47c58f75c7325c1709f690de6c8ab3b06871c3605b2e1f263da2473edf46eb4efa7f23d461109cc9f69c684a2688914aef92329e3da
7
- data.tar.gz: fab5318f5978b34eccb505a4025a7b5d587a9ebb05d46c0a30036f5cefd3ee4defb3562e80c034a77b252ebaea4ffcf10db3260251097c95d031e00a56cfb608
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 (hash == HASH_ID) {
337
- jo->idIndex = jo->propertiesLength;
338
- } else if (hash == HASH_SID) {
339
- jo->sidIndex = jo->propertiesLength;
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 (hash == HASH_ID) {
350
- jo->idIndex = candidate;
351
- } else if (hash == HASH_SID) {
352
- jo->sidIndex = candidate;
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.44
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-09-18 00:00:00.000000000 Z
11
+ date: 2017-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake