opener-chained-daemon 3.3.24 → 3.3.26
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 072bb86c8e735538f1606e4cd37a9058caf2e3c571d2de08bb1c2222bc330a6e
|
4
|
+
data.tar.gz: d33b26d5be4bd3afe06750feb9dcb48792532bd8a0115e8f3530a44d83826e69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ff347bdd2049bb0a1b83d02ed02eea8627c022e83caec70d3bb4e87d09318c19b7e4c9c95d19fffe5933dcc9fd91f58963d2b3fa887072abf751dc420a5f8c5
|
7
|
+
data.tar.gz: 108e16687cfda88917e9faea88e554ed1b279b08e3dfa9bd380be195cc50c74211bf3b0710ab11b60621339d9b7c57eae73107249672ce681a90d33de23467ab
|
@@ -25,7 +25,9 @@ module Opener
|
|
25
25
|
|
26
26
|
def run input, _params = {}
|
27
27
|
params = SymMash.new _params
|
28
|
-
params.
|
28
|
+
params.reject!{ |k,v| v.blank? }
|
29
|
+
params.cache_keys&.reject!{ |k,v| v.blank? }
|
30
|
+
|
29
31
|
params.cache_keys = SymMash.new params.cache_keys&.to_h&.sort&.to_h || {}
|
30
32
|
if params.filter_vertical and params.property_type.present?
|
31
33
|
params.cache_keys.property_type = params.property_type
|
@@ -33,6 +35,7 @@ module Opener
|
|
33
35
|
params.cache_keys.contract_ids = nil unless params.cache_keys.contract_ids
|
34
36
|
|
35
37
|
params.cache_keys.environment ||= 'production'
|
38
|
+
params.translate_languages ||= []
|
36
39
|
|
37
40
|
lang = nil
|
38
41
|
output = nil
|
@@ -63,7 +63,7 @@ module Opener
|
|
63
63
|
miscs[i] = {}
|
64
64
|
s.each do |word|
|
65
65
|
if word.id.is_a?(Array)
|
66
|
-
(word.id.min..word.id.max).each { |id| miscs[i][id] = word.
|
66
|
+
(word.id.min..word.id.max).each { |id| miscs[i][id] = word.slice(:start_char, :end_char) }
|
67
67
|
end
|
68
68
|
end
|
69
69
|
end
|
@@ -75,14 +75,14 @@ module Opener
|
|
75
75
|
# save misc for later usase in a MWT case
|
76
76
|
next if word.id.is_a? Array
|
77
77
|
|
78
|
-
misc = word.
|
78
|
+
misc = word.slice(:start_char, :end_char) || miscs[s_index][word.id]
|
79
79
|
|
80
80
|
Rollbar.scoped({ input: input, params: params, sentences: sentences, word: word }) do
|
81
81
|
raise 'Missing misc'
|
82
|
-
end
|
82
|
+
end unless misc.start_char and misc.end_char
|
83
83
|
|
84
|
-
offset = misc.
|
85
|
-
length = misc.
|
84
|
+
offset = misc.start_char
|
85
|
+
length = misc.end_char - offset
|
86
86
|
|
87
87
|
u_pos = word.upos
|
88
88
|
pos = POS[u_pos]
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_dependency 'roda'
|
30
30
|
spec.add_dependency 'rack-timeout'
|
31
31
|
spec.add_dependency 'oni', '>= 4.3.1'
|
32
|
-
spec.add_dependency 'opener-daemons', '
|
32
|
+
spec.add_dependency 'opener-daemons', '>= 2.7.4'
|
33
33
|
spec.add_dependency 'opener-callback-handler', '~> 1.0'
|
34
34
|
|
35
35
|
spec.add_dependency 'opener-language-identifier', '>= 4.4.3'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: opener-chained-daemon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.3.
|
4
|
+
version: 3.3.26
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- development@olery.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -112,16 +112,16 @@ dependencies:
|
|
112
112
|
name: opener-daemons
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - "
|
115
|
+
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version: 2.7.
|
117
|
+
version: 2.7.4
|
118
118
|
type: :runtime
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - "
|
122
|
+
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: 2.7.
|
124
|
+
version: 2.7.4
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
126
|
name: opener-callback-handler
|
127
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -279,10 +279,10 @@ dependencies:
|
|
279
279
|
description: OpeNER daemon for processing multiple queues at once
|
280
280
|
email:
|
281
281
|
executables:
|
282
|
-
-
|
282
|
+
- console
|
283
283
|
- chained-daemon-csv
|
284
284
|
- chained-daemon-daemon
|
285
|
-
-
|
285
|
+
- chained-daemon
|
286
286
|
extensions: []
|
287
287
|
extra_rdoc_files: []
|
288
288
|
files:
|
@@ -324,7 +324,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
324
324
|
- !ruby/object:Gem::Version
|
325
325
|
version: '0'
|
326
326
|
requirements: []
|
327
|
-
rubygems_version: 3.
|
327
|
+
rubygems_version: 3.2.3
|
328
328
|
signing_key:
|
329
329
|
specification_version: 4
|
330
330
|
summary: OpeNER daemon for processing multiple queues at once
|