spstrigger_execute 0.4.3 → 0.4.4
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
- checksums.yaml.gz.sig +0 -0
- data/lib/spstrigger_execute.rb +5 -4
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19b99e35843c4c7ddaf754a40d113a3d93492082
|
|
4
|
+
data.tar.gz: 42cc9b9426ca1f044199c8025d2b080bc336a8ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 612d70abd82e23e4b904cb58aa846c8474c0854d20f5b9f865debf7345d808dbb9957a17519b4a4a38ad1b265c4055236289e26deaf973d977040211b4feca76
|
|
7
|
+
data.tar.gz: e99ae1405012044c365d0ce0ad61c8763a06a60f3b220ec2b1ce911059be737af9f0ad29d3c67ad7d1b3c34af0deb3d6990b2e00da4f9ee37fe0ad50aab651c1
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data/lib/spstrigger_execute.rb
CHANGED
|
@@ -30,7 +30,6 @@ class SPSTriggerExecute
|
|
|
30
30
|
if reg and polyrexdoc then
|
|
31
31
|
|
|
32
32
|
xro = XMLRegistryObjects.new(reg, polyrexdoc)
|
|
33
|
-
|
|
34
33
|
@h = xro.to_h
|
|
35
34
|
define_methods = @h.keys.map {|x| "def #{x}() @h[:#{x}] end"}
|
|
36
35
|
instance_eval define_methods.join("\n")
|
|
@@ -58,14 +57,16 @@ class SPSTriggerExecute
|
|
|
58
57
|
@patterns.map.with_index.inject([]) do |r, row|
|
|
59
58
|
|
|
60
59
|
h, i = row
|
|
61
|
-
|
|
60
|
+
|
|
61
|
+
topic, msg, conditions, job, index = \
|
|
62
|
+
%i(topic msg conditions job index).map {|x| h[x].to_s }
|
|
62
63
|
|
|
63
64
|
index ||= i + 1
|
|
64
65
|
|
|
65
66
|
# note: the index is only present if there is a duplicate Dynarex record default key
|
|
66
67
|
|
|
67
68
|
t, m = topic.length > 0, msg.length > 0
|
|
68
|
-
|
|
69
|
+
|
|
69
70
|
result = if t && m then
|
|
70
71
|
|
|
71
72
|
r1 = topicx.match(/#{topic}/)
|
|
@@ -79,7 +80,7 @@ class SPSTriggerExecute
|
|
|
79
80
|
{topic: r1, index: index} if r1
|
|
80
81
|
|
|
81
82
|
elsif m then
|
|
82
|
-
|
|
83
|
+
|
|
83
84
|
r2 = message.match(/#{msg}/)
|
|
84
85
|
{msg: r2, index: index} if r2
|
|
85
86
|
else
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: spstrigger_execute
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
rlSMrvljzPJPts27UIPIfU02mkTZzELneWPUEQlIK/ADjdiGu2uxlWT5g77gwM+g
|
|
32
32
|
fYtWdC+NEqa0rg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-
|
|
34
|
+
date: 2015-06-28 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex
|
metadata.gz.sig
CHANGED
|
Binary file
|