opener-daemons 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/opener/daemons/daemon.rb +6 -1
- data/lib/opener/daemons/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92495f6b7af2acc1f0f83462c71f21a52bb25f4f
|
4
|
+
data.tar.gz: e6fea06acac2ee6bf859a76768a68549f927aff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad2cd39279379f1323008b65284893bd6ce81ff16dc5b931496747c3b35c931c1235315134cd3778a0e005b20de0f9e0258d56ec06c391a99e56f0cb33d93e5f
|
7
|
+
data.tar.gz: c4cad8ceb7fb4195ba8e7786288d4ccbfb30145a7e30425fb34e91a3fd2ea889cdef563a9bf5afa2a6f46ea549d41dfe452b08f9ff4b13eb656de19a25e68058
|
@@ -88,8 +88,13 @@ module Opener
|
|
88
88
|
message = input_buffer.pop
|
89
89
|
|
90
90
|
input = JSON.parse(message[:body])["input"]
|
91
|
+
input,* = input if input.kind_of?(Array)
|
92
|
+
|
91
93
|
begin
|
92
|
-
output = identifier.run(input)
|
94
|
+
output, * = identifier.run(input)
|
95
|
+
if output.empty?
|
96
|
+
raise "The component returned an empty response."
|
97
|
+
end
|
93
98
|
rescue Exception => e
|
94
99
|
logger.error(e)
|
95
100
|
output = input
|