ehbrs-tools 0.35.0 → 0.35.1

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: d78056d7a130e8950f026ebe3cf1665570287c56b1786c90d5d5b534d27ce2e2
4
- data.tar.gz: e1ddc5d688b88dccc0e744763972c67558d75e403e8d25b26c9c16b8318ebd59
3
+ metadata.gz: c5318bb59f255a65bf78684c4638ce923fa4f67ceafa4acf33037b86c705fd67
4
+ data.tar.gz: e0a413e38849986ef0ecd63fffb9cfc3ba38d887f6f80c179379978d6bf0b6a6
5
5
  SHA512:
6
- metadata.gz: 86648f427adaa4a9b107f12b650332b281455652597c1ab1fc232ca49842b79524c9d2c27ed4077f3e18e03fc63f56e5e7a56963bce5b5ad3699eaea2aa04f30
7
- data.tar.gz: b09cbfad7a04969b3cdd4bb616c9ca0de828b654633e0bc3473b9a893923546b30f058541b57132ae5cb8924506a720aa4427d983564088aa4d84894ee4f053e
6
+ metadata.gz: 807ce4c38107b8b74ab4f25af8a9b1e82a882ccb1c12dd325c356073fa09d95f57abc0220f77854001172b687e9bcb6f75083d353e886497f8b5f748c4ae0b3e
7
+ data.tar.gz: 9a940673ba6ee30b09748da01c8537f07cb7a59978837b3f91f2e06919b2040f834c18109d07c34fd81c0ef736d0e58dece03717ff47fede8346d6dabdcc2051
data/Gemfile.lock CHANGED
@@ -1,49 +1,25 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ehbrs-tools (0.35.0)
4
+ ehbrs-tools (0.35.1)
5
5
  avm-tools (~> 0.145, >= 0.145.1)
6
6
  eac_cli (~> 0.30, >= 0.30.1)
7
7
  eac_ruby_utils (~> 0.112)
8
- ehbrs_ruby_utils (~> 0.21)
8
+ ehbrs_ruby_utils (~> 0.22)
9
9
  filesize (~> 0.2)
10
10
  inifile (~> 3.0)
11
11
  os (~> 1.1, >= 1.1.4)
12
12
  telegram-bot-ruby (~> 0.23)
13
13
 
14
- PATH
15
- remote: sub/eac_cli
16
- specs:
17
- eac_cli (0.30.1)
18
- colorize (~> 0.8, >= 0.8.1)
19
- eac_config (~> 0.12)
20
- eac_ruby_utils (~> 0.112)
21
-
22
- PATH
23
- remote: sub/eac_docker
24
- specs:
25
- eac_docker (0.6.0)
26
- eac_ruby_utils (~> 0.112)
27
- eac_templates (~> 0.3, >= 0.3.2)
28
-
29
14
  PATH
30
15
  remote: sub/eac_rest
31
16
  specs:
32
- eac_rest (0.7.0)
17
+ eac_rest (0.7.1)
33
18
  eac_fs (~> 0.16)
34
19
  eac_ruby_utils (~> 0.112)
35
20
  faraday (~> 2.7, >= 2.7.4)
36
21
  faraday-multipart (~> 1.0, >= 1.0.4)
37
22
 
38
- PATH
39
- remote: sub/eac_ruby_base0
40
- specs:
41
- eac_ruby_base0 (0.17.3)
42
- avm-eac_ruby_base1 (~> 0.29)
43
- eac_cli (~> 0.30, >= 0.30.1)
44
- eac_fs (~> 0.16)
45
- eac_ruby_utils (~> 0.112)
46
-
47
23
  PATH
48
24
  remote: sub/eac_ruby_utils
49
25
  specs:
@@ -54,21 +30,15 @@ PATH
54
30
  filesize (~> 0.2)
55
31
  net-ssh (~> 4.2)
56
32
 
57
- PATH
58
- remote: sub/eac_templates
59
- specs:
60
- eac_templates (0.3.2)
61
- eac_config (~> 0.11, >= 0.11.1)
62
- eac_ruby_utils (~> 0.102, >= 0.102.1)
63
-
64
33
  PATH
65
34
  remote: sub/ehbrs_ruby_utils
66
35
  specs:
67
- ehbrs_ruby_utils (0.21.0)
36
+ ehbrs_ruby_utils (0.22.0)
68
37
  aranha (~> 0.19)
69
38
  aranha-parsers (~> 0.15)
70
39
  avm (~> 0.62)
71
40
  eac_fs (~> 0.16)
41
+ eac_rest (~> 0.7, >= 0.7.1)
72
42
  eac_ruby_utils (~> 0.112)
73
43
  eac_templates (~> 0.3, >= 0.3.2)
74
44
  taglib-ruby (~> 1.1, >= 1.1.3)
@@ -167,9 +137,16 @@ GEM
167
137
  thread_safe (~> 0.3, >= 0.3.1)
168
138
  diff-lcs (1.5.0)
169
139
  dry-inflector (1.0.0)
140
+ eac_cli (0.30.1)
141
+ colorize (~> 0.8, >= 0.8.1)
142
+ eac_config (~> 0.12)
143
+ eac_ruby_utils (~> 0.112)
170
144
  eac_config (0.12.0)
171
145
  addressable (~> 2.8, >= 2.8.1)
172
146
  eac_ruby_utils (~> 0.107)
147
+ eac_docker (0.6.0)
148
+ eac_ruby_utils (~> 0.112)
149
+ eac_templates (~> 0.3, >= 0.3.2)
173
150
  eac_fs (0.16.0)
174
151
  content-type (~> 0.0, >= 0.0.2)
175
152
  eac_ruby_utils (~> 0.107, >= 0.107.1)
@@ -177,12 +154,20 @@ GEM
177
154
  eac_git (0.14.0)
178
155
  eac_ruby_utils (~> 0.107)
179
156
  parseconfig (~> 1.1, >= 1.1.2)
157
+ eac_ruby_base0 (0.17.3)
158
+ avm-eac_ruby_base1 (~> 0.29)
159
+ eac_cli (~> 0.30, >= 0.30.1)
160
+ eac_fs (~> 0.16)
161
+ eac_ruby_utils (~> 0.112)
180
162
  eac_ruby_gem_support (0.5.1)
181
163
  eac_ruby_utils (~> 0.74)
182
164
  rspec (~> 3.9)
183
165
  rubocop (~> 0.80.1)
184
166
  rubocop-rails (~> 2.4.2)
185
167
  rubocop-rspec (~> 1.38.1)
168
+ eac_templates (0.3.2)
169
+ eac_config (~> 0.11, >= 0.11.1)
170
+ eac_ruby_utils (~> 0.102, >= 0.102.1)
186
171
  faraday (2.7.4)
187
172
  faraday-net_http (>= 2.0, < 3.1)
188
173
  ruby2_keywords (>= 0.0.4)
@@ -193,7 +178,7 @@ GEM
193
178
  multipart-post (~> 2)
194
179
  faraday-net_http (3.0.2)
195
180
  filesize (0.2.0)
196
- git (1.13.1)
181
+ git (1.13.2)
197
182
  addressable (~> 2.8)
198
183
  rchardet (~> 1.8)
199
184
  hpricot (0.8.6)
@@ -227,7 +212,7 @@ GEM
227
212
  rspec-core (~> 3.12.0)
228
213
  rspec-expectations (~> 3.12.0)
229
214
  rspec-mocks (~> 3.12.0)
230
- rspec-core (3.12.0)
215
+ rspec-core (3.12.1)
231
216
  rspec-support (~> 3.12.0)
232
217
  rspec-expectations (3.12.2)
233
218
  diff-lcs (>= 1.2.0, < 2.0)
@@ -280,13 +265,9 @@ PLATFORMS
280
265
  x86_64-linux
281
266
 
282
267
  DEPENDENCIES
283
- eac_cli!
284
- eac_docker!
285
268
  eac_rest!
286
- eac_ruby_base0!
287
269
  eac_ruby_gem_support (~> 0.3)
288
270
  eac_ruby_utils!
289
- eac_templates!
290
271
  ehbrs-tools!
291
272
  ehbrs_ruby_utils!
292
273
 
@@ -61,10 +61,6 @@ module Ehbrs
61
61
  end
62
62
 
63
63
  def data_uncached
64
- ::JSON.parse(raw_content)
65
- end
66
-
67
- def raw_content
68
64
  runner_context.call(:instance).http_request('/videos/files/export').body
69
65
  end
70
66
  end
@@ -24,7 +24,7 @@ module Ehbrs
24
24
  infom "Uploading \"#{type}\" files list..."
25
25
  files_list_path = send("#{type}_files_list")
26
26
  infov 'Path', files_list_path
27
- process_response(upload_request(files_list_path))
27
+ process_response(files_list_path)
28
28
  end
29
29
 
30
30
  def upload_request(files_list_path)
@@ -40,16 +40,11 @@ module Ehbrs
40
40
  )
41
41
  end
42
42
 
43
- def process_response(response)
44
- infov 'Response status', response.status
45
- if response.status == 200
46
- pp ::JSON.parse(response.body)
47
- else
48
- error_file = '/tmp/ehbrsutils.html'
49
- ::File.write(error_file, response.body)
50
- system('firefox', error_file)
51
- fatal_error('Retornou com status de erro: ' + error_file)
52
- end
43
+ def process_response(files_list_path)
44
+ upload_request(files_list_path).body
45
+ rescue ::EhbrsRubyUtils::WebUtils::RequestError => e
46
+ system('firefox', e.body_file_path.to_path)
47
+ fatal_error('Retornou com erro: ' + e.message)
53
48
  end
54
49
 
55
50
  def series_files_list_uncached
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ehbrs
4
4
  module Tools
5
- VERSION = '0.35.0'
5
+ VERSION = '0.35.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ehbrs-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.35.0
4
+ version: 0.35.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Esquilo Azul Company
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-01 00:00:00.000000000 Z
11
+ date: 2023-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-tools
@@ -70,14 +70,14 @@ dependencies:
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '0.21'
73
+ version: '0.22'
74
74
  type: :runtime
75
75
  prerelease: false
76
76
  version_requirements: !ruby/object:Gem::Requirement
77
77
  requirements:
78
78
  - - "~>"
79
79
  - !ruby/object:Gem::Version
80
- version: '0.21'
80
+ version: '0.22'
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: filesize
83
83
  requirement: !ruby/object:Gem::Requirement