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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a638527183a3e404a43cbf6c7541eba121ea584d
4
- data.tar.gz: 7310cae56c7be53564ee9862349a2e3b6de75f63
2
+ SHA256:
3
+ metadata.gz: 2a6dc6cee79d0750d50e97e392a8fef3a17e0faf02b438ccbde5cb9b684a9a9a
4
+ data.tar.gz: 8eda0973fbd414514ff73f434b20608d8eaa17001f22bfcf44274949630a56df
5
5
  SHA512:
6
- metadata.gz: 821a4cbec43d3e311f8e7a7f72059a825718f74648dff7f061d2db822ab09620f259c1161bc5187f3bef072aaacf604365168d317643a4ff84d2c9459f40f5ae
7
- data.tar.gz: c6395a078ab5b90112c687ec4f65e9c492db99a5b8ae55d47a0879f4e3304c9b832edc4f19d876053f4ecdf002581497bb8272360630262d3b5b6d4590a21701
6
+ metadata.gz: 0b5809be088c43d59834f65596a470c6849bc2caf3374b06f32aa5f4e2ef3d293628acdd796ac028cf890684ab832eb0aea054a2ebd0f5c2cad5987c66aac88c
7
+ data.tar.gz: 20d9da0147c2c3b21389e82fcf8d46c2c6e68d4e4d156dcb2c4a5e1349d0d0e3e0395cff5eb39f7d8193e48b95749d70e1058b10f1802576a6f69a4277a01bd2
@@ -86,9 +86,9 @@ module Opener
86
86
  setup_env(options),
87
87
  exec_path,
88
88
  *argv,
89
- :out => :close,
90
- :err => :close,
91
- :in => :close
89
+ out: '/dev/null',
90
+ err: '/dev/null',
91
+ in: '/dev/null'
92
92
  )
93
93
 
94
94
  pidfile.write(pid)
@@ -1,7 +1,7 @@
1
1
  module Opener
2
2
  module Daemons
3
3
 
4
- VERSION = '2.6.1'
4
+ VERSION = '2.7.2'
5
5
 
6
6
  end
7
7
  end
@@ -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 INLINE_IO
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}
@@ -1,4 +1,4 @@
1
- require File.expand_path('../lib/opener/daemons/version', __FILE__)
1
+ require_relative 'lib/opener/daemons/version'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'opener-daemons'
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.6.1
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: 2018-03-27 00:00:00.000000000 Z
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.13
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: []