opener-daemons 2.6.1 → 2.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/opener/daemons/controller.rb +3 -3
- data/lib/opener/daemons/version.rb +1 -1
- data/lib/opener/daemons/worker.rb +11 -4
- data/opener-daemons.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2a6dc6cee79d0750d50e97e392a8fef3a17e0faf02b438ccbde5cb9b684a9a9a
|
4
|
+
data.tar.gz: 8eda0973fbd414514ff73f434b20608d8eaa17001f22bfcf44274949630a56df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b5809be088c43d59834f65596a470c6849bc2caf3374b06f32aa5f4e2ef3d293628acdd796ac028cf890684ab832eb0aea054a2ebd0f5c2cad5987c66aac88c
|
7
|
+
data.tar.gz: 20d9da0147c2c3b21389e82fcf8d46c2c6e68d4e4d156dcb2c4a5e1349d0d0e3e0395cff5eb39f7d8193e48b95749d70e1058b10f1802576a6f69a4277a01bd2
|
@@ -65,6 +65,7 @@ module Opener
|
|
65
65
|
def process_input
|
66
66
|
if config.input
|
67
67
|
@input = Zlib.gunzip Base64.decode64 config.input
|
68
|
+
@input.force_encoding 'UTF-8'
|
68
69
|
else
|
69
70
|
@input = downloader.download config.input_url
|
70
71
|
end
|
@@ -74,7 +75,7 @@ module Opener
|
|
74
75
|
# @return [String]
|
75
76
|
#
|
76
77
|
def run_component
|
77
|
-
@output = config.component_instance.run @input
|
78
|
+
@output = config.component_instance.run @input, config.metadata['custom_config']
|
78
79
|
end
|
79
80
|
|
80
81
|
##
|
@@ -126,14 +127,20 @@ module Opener
|
|
126
127
|
|
127
128
|
private
|
128
129
|
|
130
|
+
##
|
131
|
+
# Preserve input for last callback
|
132
|
+
#
|
129
133
|
def input_params
|
130
|
-
if
|
131
|
-
{input: config.input}
|
132
|
-
else
|
134
|
+
if config.input_url
|
133
135
|
{input_url: config.input_url}
|
136
|
+
else
|
137
|
+
{input: config.input}
|
134
138
|
end
|
135
139
|
end
|
136
140
|
|
141
|
+
##
|
142
|
+
# Use generated output as new input
|
143
|
+
#
|
137
144
|
def next_input_params
|
138
145
|
if INLINE_IO
|
139
146
|
{input: @next_input}
|
data/opener-daemons.gemspec
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-daemons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Wilco van Duinkerken
|
8
8
|
- Olery
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2020-11-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|
@@ -245,7 +245,7 @@ homepage: http://opener-project.github.io
|
|
245
245
|
licenses:
|
246
246
|
- Apache 2.0
|
247
247
|
metadata: {}
|
248
|
-
post_install_message:
|
248
|
+
post_install_message:
|
249
249
|
rdoc_options: []
|
250
250
|
require_paths:
|
251
251
|
- lib
|
@@ -260,9 +260,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
260
260
|
- !ruby/object:Gem::Version
|
261
261
|
version: '0'
|
262
262
|
requirements: []
|
263
|
-
rubyforge_project:
|
264
|
-
rubygems_version: 2.6
|
265
|
-
signing_key:
|
263
|
+
rubyforge_project:
|
264
|
+
rubygems_version: 2.7.6
|
265
|
+
signing_key:
|
266
266
|
specification_version: 4
|
267
267
|
summary: Toolkit for turning OpeNER components into daemons
|
268
268
|
test_files: []
|