durable_rules 2.0.23 → 2.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/src/rules/events.c +1 -1
- data/src/rules/json.c +6 -0
- 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: 6d5ee158065ca76f02de4a4c2f6f6f580607c2bd
|
|
4
|
+
data.tar.gz: 5f01996a02a506a2cd9e6a8f67bf9a8fc49fa6d6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 82ea7f0a43ed9b051b44147fbf419871cdbfe611971c6ea32fc70ba7ec5470e350bdd428ac4da55f7bf6d943196f374eefd5e49be89044478e11c646c05f9677
|
|
7
|
+
data.tar.gz: b401f5aea5f84cb4741105ae18c64fde360373925d7835423e93e773a4ff5353f036aaa87f6abe9eea602abc3e305a36567b76fcc864b4c6f6412c8d767f9eed
|
data/src/rules/events.c
CHANGED
|
@@ -1587,7 +1587,7 @@ static unsigned int isArrayMatch(ruleset *tree,
|
|
|
1587
1587
|
jsonProperty *currentProperty,
|
|
1588
1588
|
alpha *arrayAlpha,
|
|
1589
1589
|
unsigned char *propertyMatch) {
|
|
1590
|
-
|
|
1590
|
+
*propertyMatch = 0;
|
|
1591
1591
|
unsigned int result = RULES_OK;
|
|
1592
1592
|
if (currentProperty->type != JSON_ARRAY) {
|
|
1593
1593
|
return RULES_OK;
|
data/src/rules/json.c
CHANGED
|
@@ -132,6 +132,12 @@ unsigned int readNextArrayValue(char *start, char **first, char **last, unsigned
|
|
|
132
132
|
}
|
|
133
133
|
break;
|
|
134
134
|
case ST_OBJECT_PROP_VAL:
|
|
135
|
+
if (start[0] == ']') {
|
|
136
|
+
*first = start;
|
|
137
|
+
*last = start;
|
|
138
|
+
return PARSE_END;
|
|
139
|
+
}
|
|
140
|
+
|
|
135
141
|
return getValue(start, first, last, type);
|
|
136
142
|
break;
|
|
137
143
|
}
|
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.24
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jesus Ruiz
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-04-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|