ehbrs-tools 0.46.0 → 0.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af4ca110d8ae0fe4a7d3ec9babaab037b95d092041368a2b44c198a3233e2dcd
4
- data.tar.gz: 0f0c9571e3009fe0f43a3dd080973152f76a7a2c5ccc88ecf35ac9923818a9ce
3
+ metadata.gz: 1b107a62c01d0852481dcb6ef14e98021c5b37fb43726bf2113c6a15ed68a09e
4
+ data.tar.gz: c1ff44adcff226f9bc34b83ad24e873843bbed123d72ab43ce0b58c7228b702f
5
5
  SHA512:
6
- metadata.gz: 2a6da9a5c28abecb0652c9fff402e3c0c1a0e0ecc7d759d636f9264d77e03433d896822041bc20d8ab9963411514330cd8d30d650521d41414a2b298fcebe361
7
- data.tar.gz: 9819b74f39c4610845554eeece8903431100a2cd7faf4663673ca7c9d5db0906885753a654e2f32bb7490b887371dcbeff7ad96978fd5741633092c227b23fd7
6
+ metadata.gz: 0ca5310622cc46526dea4332f543cd38d5a94c4f401a4fd51c29344ee5e21ee06d8b40be636762aa35feae7839b50258d28db04243f6b060a91dd80a3d4be142
7
+ data.tar.gz: f37f04d7f5e378f44f35dc576fbdef36468c9e24afa2070f4de9e77f0f96010e22fe260d16340ea2e977ab535e76a6946894651d726015e6817d63d20f9cfaa8
data/Gemfile.lock CHANGED
@@ -1,26 +1,34 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ehbrs-tools (0.46.0)
4
+ ehbrs-tools (0.47.0)
5
5
  avm-tools (~> 0.164, >= 0.164.1)
6
6
  eac_cli (~> 0.47, >= 0.47.2)
7
7
  eac_fs (~> 0.20, >= 0.20.3)
8
8
  eac_ruby_base0 (~> 0.22)
9
9
  eac_ruby_base1 (~> 0.1, >= 0.1.2)
10
- ehbrs_ruby_utils (~> 0.51)
10
+ ehbrs_ruby_utils (~> 0.52)
11
11
  filesize (~> 0.2)
12
12
  os (~> 1.1, >= 1.1.4)
13
13
  telegram-bot-ruby (~> 0.23)
14
14
 
15
+ PATH
16
+ remote: sub/eac_rest
17
+ specs:
18
+ eac_rest (0.14.0)
19
+ eac_envs-http (~> 0.7, >= 0.7.2)
20
+ eac_fs (~> 0.20, >= 0.20.3)
21
+ eac_ruby_utils (~> 0.136)
22
+
15
23
  PATH
16
24
  remote: sub/ehbrs_ruby_utils
17
25
  specs:
18
- ehbrs_ruby_utils (0.51.0)
26
+ ehbrs_ruby_utils (0.52.0)
19
27
  aranha (~> 0.20, >= 0.20.1)
20
28
  aranha-parsers (~> 0.29)
21
- aranha-selenium (~> 0.15)
29
+ aranha-selenium (~> 0.17)
22
30
  avm (~> 0.103)
23
- avm-eac_rails_base0 (~> 0.11, >= 0.11.2)
31
+ avm-eac_rails_base0 (~> 0.11, >= 0.11.3)
24
32
  dentaku (~> 3.5, >= 3.5.8)
25
33
  eac_fs (~> 0.20, >= 0.20.3)
26
34
  eac_rest (~> 0.13)
@@ -34,7 +42,7 @@ PATH
34
42
  GEM
35
43
  remote: https://rubygems.org/
36
44
  specs:
37
- activesupport (8.1.4)
45
+ activesupport (8.1.4.1)
38
46
  base64
39
47
  bigdecimal
40
48
  concurrent-ruby (~> 1.0, >= 1.3.1)
@@ -47,7 +55,7 @@ GEM
47
55
  securerandom (>= 0.3)
48
56
  tzinfo (~> 2.0, >= 2.0.5)
49
57
  uri (>= 0.13.1)
50
- addressable (2.9.0)
58
+ addressable (2.9.2)
51
59
  public_suffix (>= 2.0.2, < 8.0)
52
60
  aranha (0.20.1)
53
61
  eac_ruby_base1 (~> 0.1, >= 0.1.1)
@@ -58,13 +66,13 @@ GEM
58
66
  eac_envs-http (~> 0.7, >= 0.7.1)
59
67
  eac_ruby_utils (~> 0.131)
60
68
  nokogiri (~> 1.19, >= 1.19.3)
61
- aranha-selenium (0.15.0)
69
+ aranha-selenium (0.17.0)
62
70
  aranha (~> 0.20, >= 0.20.1)
63
71
  eac_fs (~> 0.20, >= 0.20.3)
64
- eac_ruby_base1 (~> 0.1, >= 0.1.1)
72
+ eac_ruby_base1 (~> 0.1, >= 0.1.2)
65
73
  eac_templates (~> 0.9)
66
74
  rexml (~> 3.4, >= 3.4.4)
67
- selenium-webdriver (~> 4.49)
75
+ selenium-webdriver (~> 4.52)
68
76
  ast (2.4.3)
69
77
  attr_extras (7.1.0)
70
78
  avm (0.103.0)
@@ -81,9 +89,9 @@ GEM
81
89
  avm-eac_postgresql_base0 (0.6.0)
82
90
  avm (~> 0.98, >= 0.98.4)
83
91
  eac_ruby_utils (~> 0.129, >= 0.129.1)
84
- avm-eac_rails_base0 (0.11.2)
85
- avm-eac_rails_base1 (~> 0.11, >= 0.11.2)
86
- eac_ruby_utils (~> 0.129, >= 0.129.1)
92
+ avm-eac_rails_base0 (0.11.3)
93
+ avm-eac_rails_base1 (~> 0.12, >= 0.12.1)
94
+ eac_ruby_utils (~> 0.136)
87
95
  avm-eac_rails_base1 (0.12.1)
88
96
  avm (~> 0.102, >= 0.102.3)
89
97
  avm-eac_ruby_base1 (~> 0.43, >= 0.43.2)
@@ -121,10 +129,10 @@ GEM
121
129
  descendants_tracker (~> 0.0.1)
122
130
  colorize (0.8.1)
123
131
  concurrent-ruby (1.3.8)
124
- connection_pool (3.0.2)
132
+ connection_pool (3.0.3)
125
133
  content-type (0.0.2)
126
134
  parslet (~> 2.0)
127
- csv (3.3.6)
135
+ csv (3.3.7)
128
136
  dentaku (3.5.8)
129
137
  bigdecimal
130
138
  concurrent-ruby
@@ -162,10 +170,6 @@ GEM
162
170
  eac_ruby_base1 (~> 0.1, >= 0.1.1)
163
171
  filesize (~> 0.2)
164
172
  ruby-filemagic (~> 0.7, >= 0.7.3)
165
- eac_rest (0.13.0)
166
- eac_envs-http (~> 0.7, >= 0.7.1)
167
- eac_fs (~> 0.20, >= 0.20.1)
168
- eac_ruby_utils (~> 0.130)
169
173
  eac_ruby_base0 (0.22.0)
170
174
  avm-eac_ruby_base1 (~> 0.45)
171
175
  eac_cli (~> 0.47, >= 0.47.1)
@@ -173,11 +177,11 @@ GEM
173
177
  eac_ruby_base1 (~> 0.1, >= 0.1.1)
174
178
  eac_ruby_base1 (0.1.2)
175
179
  eac_ruby_utils (~> 0.135)
176
- eac_ruby_gem_support (0.15.0)
177
- eac_ruby_base1 (~> 0.1, >= 0.1.1)
180
+ eac_ruby_gem_support (0.16.0)
181
+ eac_ruby_base1 (~> 0.1, >= 0.1.2)
178
182
  rspec (~> 3.13, >= 3.13.2)
179
- rubocop (~> 1.88, >= 1.88.2)
180
- rubocop-rails (~> 2.36)
183
+ rubocop (~> 1.92, >= 1.92.2)
184
+ rubocop-rails (~> 2.38)
181
185
  rubocop-rspec (~> 3.10, >= 3.10.2)
182
186
  super_diff (~> 0.19)
183
187
  eac_ruby_utils (0.136.0)
@@ -192,7 +196,7 @@ GEM
192
196
  eac_templates (0.9.0)
193
197
  eac_config (~> 0.15)
194
198
  eac_ruby_base1 (~> 0.1, >= 0.1.1)
195
- faraday (2.15.0)
199
+ faraday (2.15.1)
196
200
  faraday-net_http (>= 2.0, < 3.6)
197
201
  json
198
202
  logger
@@ -219,9 +223,9 @@ GEM
219
223
  logger (1.7.0)
220
224
  memoized (1.1.3)
221
225
  minitar (0.12.1)
222
- minitest (6.0.6)
226
+ minitest (6.1.0)
223
227
  drb (~> 2.0)
224
- prism (~> 1.5)
228
+ prism (>= 1.5, < 3)
225
229
  multipart-post (2.4.1)
226
230
  net-http (0.10.0)
227
231
  net-protocol (>= 0.3.0)
@@ -229,13 +233,27 @@ GEM
229
233
  net-protocol (0.4.0)
230
234
  timeout
231
235
  net-ssh (4.2.0)
232
- nokogiri (1.19.4-x86_64-linux-gnu)
236
+ nokogiri (1.19.7-aarch64-linux-gnu)
237
+ racc (~> 1.4)
238
+ nokogiri (1.19.7-aarch64-linux-musl)
239
+ racc (~> 1.4)
240
+ nokogiri (1.19.7-arm-linux-gnu)
241
+ racc (~> 1.4)
242
+ nokogiri (1.19.7-arm-linux-musl)
243
+ racc (~> 1.4)
244
+ nokogiri (1.19.7-arm64-darwin)
245
+ racc (~> 1.4)
246
+ nokogiri (1.19.7-x86_64-darwin)
247
+ racc (~> 1.4)
248
+ nokogiri (1.19.7-x86_64-linux-gnu)
249
+ racc (~> 1.4)
250
+ nokogiri (1.19.7-x86_64-linux-musl)
233
251
  racc (~> 1.4)
234
252
  optimist (3.2.1)
235
253
  os (1.1.4)
236
254
  ostruct (0.6.3)
237
255
  parallel (2.3.0)
238
- parser (3.3.13.0)
256
+ parser (3.3.14.0)
239
257
  ast (~> 2.4.1)
240
258
  racc
241
259
  parslet (2.0.0)
@@ -243,29 +261,36 @@ GEM
243
261
  tty-color (~> 0.5)
244
262
  patience_diff (1.2.0)
245
263
  optimist (~> 3.0)
246
- prism (1.9.0)
264
+ prism (2.1.0-aarch64-linux-gnu)
265
+ prism (2.1.0-aarch64-linux-musl)
266
+ prism (2.1.0-arm-linux-gnu)
267
+ prism (2.1.0-arm-linux-musl)
268
+ prism (2.1.0-arm64-darwin)
269
+ prism (2.1.0-x86_64-darwin)
270
+ prism (2.1.0-x86_64-linux-gnu)
271
+ prism (2.1.0-x86_64-linux-musl)
247
272
  public_suffix (7.0.5)
248
273
  racc (1.8.1)
249
- rack (3.2.7)
274
+ rack (3.2.8)
250
275
  rainbow (3.1.1)
251
276
  random-port (0.8.2)
252
277
  tago (~> 0.0)
253
- regexp_parser (2.13.1)
278
+ regexp_parser (2.13.4)
254
279
  rexml (3.4.4)
255
280
  rspec (3.13.2)
256
281
  rspec-core (~> 3.13.0)
257
282
  rspec-expectations (~> 3.13.0)
258
283
  rspec-mocks (~> 3.13.0)
259
- rspec-core (3.13.6)
284
+ rspec-core (3.13.7)
260
285
  rspec-support (~> 3.13.0)
261
- rspec-expectations (3.13.5)
286
+ rspec-expectations (3.13.6)
262
287
  diff-lcs (>= 1.2.0, < 2.0)
263
288
  rspec-support (~> 3.13.0)
264
- rspec-mocks (3.13.8)
289
+ rspec-mocks (3.13.9)
265
290
  diff-lcs (>= 1.2.0, < 2.0)
266
291
  rspec-support (~> 3.13.0)
267
- rspec-support (3.13.7)
268
- rubocop (1.92.1)
292
+ rspec-support (3.13.8)
293
+ rubocop (1.92.3)
269
294
  json (>= 2.3)
270
295
  language_server-protocol (~> 3.17.0.2)
271
296
  lint_roller (~> 1.1.0)
@@ -276,9 +301,11 @@ GEM
276
301
  rubocop-ast (>= 1.49.0, < 2.0)
277
302
  ruby-progressbar (~> 1.7)
278
303
  unicode-display_width (>= 2.4.0, < 4.0)
279
- rubocop-ast (1.50.0)
304
+ rubocop-ast (1.53.0)
305
+ ast (~> 2.4)
280
306
  parser (>= 3.3.7.2)
281
- prism (~> 1.7)
307
+ prism (>= 1.7)
308
+ racc
282
309
  rubocop-rails (2.38.0)
283
310
  activesupport (>= 4.2.0)
284
311
  lint_roller (~> 1.1)
@@ -293,7 +320,7 @@ GEM
293
320
  ruby-progressbar (1.13.0)
294
321
  rubyzip (3.7.0)
295
322
  securerandom (0.4.1)
296
- selenium-webdriver (4.51.0)
323
+ selenium-webdriver (4.53.0)
297
324
  base64 (~> 0.2)
298
325
  logger (~> 1.4)
299
326
  rubyzip (>= 1.2.2, < 4.0)
@@ -342,9 +369,17 @@ GEM
342
369
  zlib (3.2.4)
343
370
 
344
371
  PLATFORMS
372
+ aarch64-linux-gnu
373
+ aarch64-linux-musl
374
+ arm-linux-gnu
375
+ arm-linux-musl
376
+ arm64-darwin
377
+ x86_64-darwin
345
378
  x86_64-linux-gnu
379
+ x86_64-linux-musl
346
380
 
347
381
  DEPENDENCIES
382
+ eac_rest!
348
383
  eac_ruby_gem_support (~> 0.15)
349
384
  ehbrs-tools!
350
385
  ehbrs_ruby_utils!
@@ -6,15 +6,24 @@ module Ehbrs
6
6
  class WebUtils
7
7
  class Videos
8
8
  class Upload
9
+ DEFAULT_TIMEOUT = 5.minutes
10
+
9
11
  runner_with :help do
10
12
  desc 'Exporta informações de arquivos de vídeo para uma instância EHB/RS Utils.'
11
13
  bool_opt '-P', '--no-ffprobe', 'Não recupera dados com "ffprobe".'
14
+ arg_opt '-t', '--timeout', 'Tempo limite (em segundos) do envio.',
15
+ default: DEFAULT_TIMEOUT.to_i
12
16
  end
13
17
 
14
18
  def run
15
19
  %w[movies series].each { |type| upload_files_list(type) }
16
20
  end
17
21
 
22
+ # @return [Integer]
23
+ def timeout
24
+ parsed.timeout.to_i
25
+ end
26
+
18
27
  def upload_files_list(type)
19
28
  infom "Uploading \"#{type}\" files list..."
20
29
  files_list_path = send("#{type}_files_list")
@@ -29,9 +38,8 @@ module Ehbrs
29
38
  body: {
30
39
  'videos_local_files_import_list[list_file]' => ::File.new(files_list_path)
31
40
  },
32
- header: {
33
- 'Accept' => 'application/json'
34
- }
41
+ header: { 'Accept' => 'application/json' },
42
+ timeout: timeout
35
43
  )
36
44
  end
37
45
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ehbrs
4
4
  module Tools
5
- VERSION = '0.46.0'
5
+ VERSION = '0.47.0'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ehbrs-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.46.0
4
+ version: 0.47.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
@@ -109,14 +109,14 @@ dependencies:
109
109
  requirements:
110
110
  - - "~>"
111
111
  - !ruby/object:Gem::Version
112
- version: '0.51'
112
+ version: '0.52'
113
113
  type: :runtime
114
114
  prerelease: false
115
115
  version_requirements: !ruby/object:Gem::Requirement
116
116
  requirements:
117
117
  - - "~>"
118
118
  - !ruby/object:Gem::Version
119
- version: '0.51'
119
+ version: '0.52'
120
120
  - !ruby/object:Gem::Dependency
121
121
  name: filesize
122
122
  requirement: !ruby/object:Gem::Requirement