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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1ac6f8ce4e88b8ac57c18bbf2cb80aedbd02a95
4
- data.tar.gz: f759eb49126970f0c46d957a8898bba72f891994
3
+ metadata.gz: 92495f6b7af2acc1f0f83462c71f21a52bb25f4f
4
+ data.tar.gz: e6fea06acac2ee6bf859a76768a68549f927aff0
5
5
  SHA512:
6
- metadata.gz: f99f02753e650ad920ac78ff7de25d9fd58e231f625fb26e33426f15ddde61970dbbd7310e80c8c4702fa47ee9bcf8ce2963516b6bdb26360d8fa9a1b6196316
7
- data.tar.gz: 6492daa4c76695a02dd23eb5da1289b669c690facbd4abbd4b4dadf737e0a4ea985f2a9e6a7a7952f5feca153f0e68b58073f74bf9da910e4c66023d3995e8b7
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
@@ -1,5 +1,5 @@
1
1
  module Opener
2
2
  module Daemons
3
- VERSION = "0.4.1"
3
+ VERSION = "0.4.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opener-daemons
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wilco van Duinkerken