durable_rules 0.34.37 → 0.34.38
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/src/rules/net.c +5 -7
- 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: eb0bcd7ba203b0ed5d2e954160463f1df864635e
|
4
|
+
data.tar.gz: 261f6aec8756ad7427c7d61b7a3a1c2355eac3a4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a64112867345b6d6a55be773d90775bfc7f46958794d2ef74f902b83839d92a788117a40a450ab1c7d1ea278630174c24d5b29b960f48b60857211aa0acef20
|
7
|
+
data.tar.gz: 63193bccbc54d0e20693177605bbe1153b7e73473921c23bc67519de9c1244cfc4b47addb4f6389cf92b3b3d3218aaf70bf3c2574caf22569c4f621d8dd6aa2b
|
data/src/rules/net.c
CHANGED
@@ -1021,21 +1021,19 @@ static unsigned int loadPeekActionCommand(ruleset *tree, binding *rulesBinding)
|
|
1021
1021
|
" end\n"
|
1022
1022
|
" return get_message(new_mid, facts_hashset, facts_message_cache)\n"
|
1023
1023
|
"end\n"
|
1024
|
-
"local validate_frame_for_key = function(
|
1024
|
+
"local validate_frame_for_key = function(frame, index, events_list_key, messages_key, mids_cache, message_cache, sid)\n"
|
1025
1025
|
" local new_mids = get_mids(index, frame, events_list_key, messages_key, mids_cache, message_cache)\n"
|
1026
1026
|
" for i = 1, #new_mids, 1 do\n"
|
1027
1027
|
" local message = get_message(new_mids[i], messages_key, message_cache)\n"
|
1028
1028
|
" if message and not reviewers[index](message, frame, index) then\n"
|
1029
|
-
" local frames_key = keys[index] .. \"!i!\" .. sid .. \"!\" .. new_mids[i]\n"
|
1030
|
-
" redis.call(\"rpush\", frames_key, tostring(packed_frame))\n"
|
1031
1029
|
" return false\n"
|
1032
1030
|
" end\n"
|
1033
1031
|
" end\n"
|
1034
1032
|
" return true\n"
|
1035
1033
|
"end\n"
|
1036
|
-
"local validate_frame = function(
|
1037
|
-
" local first_result = validate_frame_for_key(
|
1038
|
-
" local second_result = validate_frame_for_key(
|
1034
|
+
"local validate_frame = function(frame, index, sid)\n"
|
1035
|
+
" local first_result = validate_frame_for_key(frame, index, keys[index] .. \"!e!\" .. sid, events_hashset, events_mids_cache, events_message_cache, sid)\n"
|
1036
|
+
" local second_result = validate_frame_for_key(frame, index, keys[index] ..\"!f!\" .. sid, facts_hashset, facts_mids_cache, facts_message_cache, sid)\n"
|
1039
1037
|
" return first_result and second_result\n"
|
1040
1038
|
"end\n"
|
1041
1039
|
"local review_frame = function(frame, rule_action_key, sid, max_score)\n"
|
@@ -1054,7 +1052,7 @@ static unsigned int loadPeekActionCommand(ruleset *tree, binding *rulesBinding)
|
|
1054
1052
|
" else\n"
|
1055
1053
|
" for i = 1, #frame, 1 do\n"
|
1056
1054
|
" if frame[i] == \"$n\" then\n"
|
1057
|
-
" if not validate_frame(
|
1055
|
+
" if not validate_frame(full_frame, i, sid) then\n"
|
1058
1056
|
" cancel = true\n"
|
1059
1057
|
" break\n"
|
1060
1058
|
" end\n"
|
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.38
|
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-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|