ehbrs-tools 0.30.0 → 0.32.0

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: 8a57cd0b9c5ca0fae7bbca76c6f6028c2c9e6ce68ab25553fb53a991c36970c2
4
- data.tar.gz: 5b8000ce1927a55dbd90f70792bc1790f2e14bf4b67032258186ccd6eeeb8d91
3
+ metadata.gz: ce57bdeb1b7a3a35c61c9b335ab09a2c3d97152fa2630d1c7a972f14504427d3
4
+ data.tar.gz: ae6616fad683bb07d4f70bbe6917229443c6a831071db64a9b247a4ba9999706
5
5
  SHA512:
6
- metadata.gz: 238fa86906bac564e751df073a24b7e43b740ccbe9bb782b5a93b424f236b2988fc315f9f012f5dd2636a6732bd8ab31366b73d8fb5afdbbe021da8ebfa563f3
7
- data.tar.gz: 9eebc156592ae81a254491959f762cdeedb2d5f6d01c9c7d4f90cdeb2c73eb36c30a442d5f1b8564069a6729beed2f8a89c42a19815e1c67c740355992ce5052
6
+ metadata.gz: de9cfc8afd3569632b6cf92c3215b827f7444eb6307c4a1e6ae30e32be35f2e91670a107d891afaccb54c065b02a549d8e28b3304663fe9d3efe9c61bb413482
7
+ data.tar.gz: 78d2232d9d25abdcab7cd0de2aaec183dab7cce101acc2d28ee09b2655659176c010951ac9d0bff4372768da1c46981810b3b57d59d75c4b70c3745048e9c13b
data/.avm.yml CHANGED
@@ -1,4 +1,2 @@
1
1
  ---
2
2
  locale: pt-BR
3
- test:
4
- bundle_command: exec ehbrs self test
data/Gemfile.lock CHANGED
@@ -7,205 +7,140 @@ GIT
7
7
  PATH
8
8
  remote: .
9
9
  specs:
10
- ehbrs-tools (0.30.0)
11
- avm-tools (~> 0.82, >= 0.82.1)
12
- eac_cli (~> 0.12, >= 0.12.5)
13
- eac_ruby_utils (~> 0.71)
14
- ehbrs_ruby_utils (~> 0.8, >= 0.8.1)
15
- filesize
10
+ ehbrs-tools (0.32.0)
11
+ avm-tools (~> 0.135)
12
+ eac_cli (~> 0.27, >= 0.27.8)
13
+ eac_ruby_utils (~> 0.102, >= 0.102.1)
14
+ ehbrs_ruby_utils (~> 0.18)
15
+ filesize (~> 0.2)
16
16
  inifile (~> 3.0)
17
- os
18
- telegram-bot-ruby
19
-
20
- PATH
21
- remote: sub/aranha-parsers
22
- specs:
23
- aranha-parsers (0.10.0)
24
- activesupport (>= 4.0.0)
25
- addressable (~> 2.7)
26
- curb (~> 0.9.10)
27
- eac_ruby_utils (~> 0.74)
28
- faraday_middleware
29
- httpclient (~> 2.8, >= 2.8.3)
30
- nokogiri (~> 1.12, >= 1.12.4)
31
- ofx-parser (~> 1.1.0)
17
+ os (~> 1.1, >= 1.1.4)
18
+ telegram-bot-ruby (~> 0.19, >= 0.19.2)
32
19
 
33
20
  PATH
34
21
  remote: sub/aranha-selenium
35
22
  specs:
36
- aranha-selenium (0.2.2)
37
- eac_ruby_utils (~> 0.70)
38
- selenium-webdriver (~> 3.142, >= 3.142.3)
39
-
40
- PATH
41
- remote: sub/eac_cli
42
- specs:
43
- eac_cli (0.26.1)
44
- colorize (~> 0.8.1)
45
- eac_config (~> 0.8)
46
- eac_ruby_utils (~> 0.83)
47
-
48
- PATH
49
- remote: sub/eac_config
50
- specs:
51
- eac_config (0.8.0)
52
- addressable
53
- eac_ruby_utils (~> 0.83)
23
+ aranha-selenium (0.4.2)
24
+ eac_ruby_utils (~> 0.102, >= 0.102.1)
25
+ selenium-webdriver (~> 3.142, >= 3.142.7)
54
26
 
55
27
  PATH
56
28
  remote: sub/eac_docker
57
29
  specs:
58
- eac_docker (0.4.1)
59
- eac_ruby_utils (~> 0.74)
60
- eac_templates (~> 0.1)
61
-
62
- PATH
63
- remote: sub/eac_fs
64
- specs:
65
- eac_fs (0.9.0)
66
- content-type
67
- eac_ruby_utils (~> 0.70)
68
- ruby-filemagic
30
+ eac_docker (0.4.2)
31
+ eac_ruby_utils (~> 0.96)
32
+ eac_templates (~> 0.3, >= 0.3.1)
69
33
 
70
34
  PATH
71
35
  remote: sub/eac_ruby_base0
72
36
  specs:
73
- eac_ruby_base0 (0.15.0)
74
- eac_cli (~> 0.26)
75
- eac_fs (~> 0.3)
76
- eac_ruby_gems_utils (~> 0.9.6, ~> 0.9)
77
- eac_ruby_utils (~> 0.70)
78
-
79
- PATH
80
- remote: sub/eac_ruby_gems_utils
81
- specs:
82
- eac_ruby_gems_utils (0.9.9)
83
- bundler
84
- eac_fs (~> 0.8)
85
- eac_ruby_utils (~> 0.81)
37
+ eac_ruby_base0 (0.16.6)
38
+ avm-eac_ruby_base1 (~> 0.8)
39
+ eac_cli (~> 0.27, >= 0.27.5)
40
+ eac_fs (~> 0.10)
41
+ eac_ruby_utils (~> 0.95, >= 0.95.1)
86
42
 
87
43
  PATH
88
44
  remote: sub/eac_ruby_utils
89
45
  specs:
90
- eac_ruby_utils (0.85.0)
46
+ eac_ruby_utils (0.102.1)
91
47
  activesupport (>= 4, < 7)
92
- addressable (~> 2.6)
93
- filesize
48
+ addressable (~> 2.8)
49
+ bundler
50
+ filesize (~> 0.2)
94
51
  net-ssh (~> 4.2)
95
52
 
96
53
  PATH
97
54
  remote: sub/eac_templates
98
55
  specs:
99
- eac_templates (0.3.0)
100
- eac_config (~> 0.5)
101
- eac_ruby_utils (~> 0.64)
56
+ eac_templates (0.3.2)
57
+ eac_config (~> 0.11, >= 0.11.1)
58
+ eac_ruby_utils (~> 0.102, >= 0.102.1)
102
59
 
103
60
  PATH
104
61
  remote: sub/ehbrs_ruby_utils
105
62
  specs:
106
- ehbrs_ruby_utils (0.16.0)
107
- aranha-parsers (~> 0.8, >= 0.8.5)
108
- avm (~> 0.3, >= 0.3.2)
109
- eac_fs (~> 0.5)
110
- eac_ruby_utils (~> 0.70)
111
- eac_templates (~> 0.1, >= 0.1.1)
112
- taglib-ruby (~> 1.1)
113
- ultimate_lyrics (~> 0.1)
63
+ ehbrs_ruby_utils (0.18.0)
64
+ aranha-parsers (~> 0.14, >= 0.14.2)
65
+ avm (~> 0.41, >= 0.41.1)
66
+ eac_fs (~> 0.12, >= 0.12.3)
67
+ eac_ruby_utils (~> 0.102, >= 0.102.1)
68
+ eac_templates (~> 0.3, >= 0.3.2)
69
+ taglib-ruby (~> 1.1, >= 1.1.2)
70
+ ultimate_lyrics (~> 0.1, >= 0.1.3)
114
71
 
115
72
  PATH
116
73
  remote: sub/ultimate_lyrics
117
74
  specs:
118
- ultimate_lyrics (0.1.2)
119
- aranha-parsers (~> 0.8, >= 0.8.5)
120
- eac_ruby_utils (~> 0.74)
75
+ ultimate_lyrics (0.1.3)
76
+ aranha-parsers (~> 0.10)
77
+ eac_ruby_utils (~> 0.102, >= 0.102.1)
121
78
 
122
79
  GEM
123
80
  remote: https://rubygems.org/
124
81
  specs:
125
- activesupport (6.1.4.4)
82
+ activesupport (6.1.6.1)
126
83
  concurrent-ruby (~> 1.0, >= 1.0.2)
127
84
  i18n (>= 1.6, < 2)
128
85
  minitest (>= 5.1)
129
86
  tzinfo (~> 2.0)
130
87
  zeitwerk (~> 2.3)
131
- addressable (2.8.0)
132
- public_suffix (>= 2.0.2, < 5.0)
133
- asciidoctor (2.0.17)
88
+ addressable (2.8.1)
89
+ public_suffix (>= 2.0.2, < 6.0)
90
+ aranha-parsers (0.14.2)
91
+ activesupport (~> 6.1.6, >= 6.1.6.1)
92
+ addressable (~> 2.8, >= 2.8.1)
93
+ curb (~> 0.9, >= 0.9.11)
94
+ eac_ruby_utils (~> 0.102, >= 0.102.1)
95
+ faraday-gzip (~> 0.1)
96
+ faraday_middleware (~> 1.2)
97
+ nokogiri (~> 1.13, >= 1.13.8)
98
+ ofx-parser (~> 1.1)
134
99
  ast (2.4.2)
135
- avm (0.14.0)
136
- eac_cli (~> 0.23, >= 0.23.1)
137
- eac_docker (~> 0.3)
138
- eac_git (~> 0.6)
139
- eac_ruby_utils (~> 0.80)
140
- eac_templates (~> 0.1, >= 0.1.1)
100
+ avm (0.41.1)
101
+ eac_cli (~> 0.27, >= 0.27.8)
102
+ eac_config (~> 0.11, >= 0.11.1)
103
+ eac_docker (~> 0.4, >= 0.4.2)
104
+ eac_git (~> 0.12, >= 0.12.2)
105
+ eac_ruby_utils (~> 0.102)
106
+ eac_templates (~> 0.3, >= 0.3.1)
141
107
  filesize (~> 0.2)
142
- htmlbeautifier (~> 1.3, >= 1.3.1)
108
+ htmlbeautifier (~> 1.4, >= 1.4.2)
143
109
  minitar (~> 0.9)
144
- avm-eac_asciidoctor_base0 (0.3.3)
145
- asciidoctor (~> 2.0, >= 2.0.12)
146
- avm-eac_webapp_base0 (~> 0.2)
147
- eac_ruby_utils (~> 0.63)
148
- os
149
- rouge (~> 3.26)
150
- avm-eac_generic_base0 (0.1.1)
151
- avm (~> 0.10)
152
- eac_ruby_utils (~> 0.80)
153
- avm-eac_postgresql_base0 (0.1.0)
154
- avm (~> 0.12, >= 0.12.1)
155
- eac_ruby_utils (~> 0.82)
156
- avm-eac_rails_base0 (0.1.3)
157
- avm-eac_rails_base1 (~> 0.1, >= 0.1.3)
158
- eac_ruby_utils (~> 0.80, >= 0.80.2)
159
- avm-eac_rails_base1 (0.1.4)
160
- avm-eac_webapp_base0 (~> 0.2, >= 0.2.1)
161
- eac_ruby_gems_utils (~> 0.9, >= 0.9.9)
162
- eac_ruby_utils (~> 0.68)
163
- avm-eac_redmine_base0 (0.3.1)
164
- avm-eac_rails_base1 (~> 0.1)
165
- avm-eac_ubuntu_base0 (~> 0.2)
166
- curb (~> 0.9.10)
167
- eac_fs (~> 0.4)
168
- eac_ruby_utils (~> 0.68)
169
- avm-eac_ruby_base1 (0.3.1)
170
- avm (~> 0.9)
171
- avm-eac_generic_base0 (~> 0.1)
172
- eac_ruby_gems_utils (~> 0.9, >= 0.9.8)
173
- eac_ruby_utils (~> 0.80)
174
- avm-eac_ubuntu_base0 (0.2.1)
110
+ avm-eac_generic_base0 (0.5.0)
111
+ avm (~> 0.28)
112
+ eac_ruby_utils (~> 0.96)
113
+ avm-eac_ruby_base1 (0.20.0)
114
+ avm (~> 0.39, >= 0.39.1)
115
+ avm-eac_generic_base0 (~> 0.5)
116
+ eac_ruby_utils (~> 0.102)
117
+ avm-eac_ubuntu_base0 (0.3.0)
175
118
  avm (~> 0.7)
176
119
  eac_ruby_utils (~> 0.77, >= 0.77.1)
177
120
  eac_templates (~> 0.3)
178
- avm-eac_webapp_base0 (0.2.1)
179
- avm (~> 0.1)
180
- avm-eac_generic_base0 (~> 0.1)
181
- avm-eac_postgresql_base0 (~> 0.1)
182
- avm-eac_ubuntu_base0 (~> 0.2.1)
183
- eac_ruby_utils (~> 0.68)
184
- avm-files (0.2.1)
121
+ avm-files (0.3.2)
185
122
  avm (~> 0.6)
186
123
  eac_fs (~> 0.5)
187
124
  eac_ruby_utils (~> 0.76)
188
125
  eac_templates (~> 0.2)
189
- avm-git (0.3.1)
126
+ avm-git (0.4.0)
190
127
  avm-files (~> 0.1)
191
128
  eac_git (~> 0.11)
192
129
  eac_ruby_utils (~> 0.76)
193
- avm-tools (0.113.6)
194
- aranha-parsers (~> 0.4)
195
- avm (~> 0.13)
196
- avm-eac_asciidoctor_base0
197
- avm-eac_rails_base0 (~> 0.1)
198
- avm-eac_redmine_base0 (~> 0.3)
199
- avm-eac_ruby_base1 (~> 0.1)
200
- avm-eac_ubuntu_base0 (~> 0.2)
201
- avm-files (~> 0.1)
202
- avm-git (~> 0.3, >= 0.3.1)
203
- clipboard (~> 1.3, >= 1.3.3)
204
- curb (~> 0.9.10)
205
- eac_ruby_base0 (~> 0.14)
206
- eac_ruby_gems_utils (~> 0.6, >= 0.6.1)
207
- git (~> 1.7)
208
- ruby-progressbar (~> 1.10, >= 1.10.1)
130
+ avm-tools (0.135.0)
131
+ aranha-parsers (~> 0.14, >= 0.14.1)
132
+ avm (~> 0.41)
133
+ avm-eac_ruby_base1 (~> 0.20)
134
+ avm-eac_ubuntu_base0 (~> 0.3)
135
+ avm-files (~> 0.3, >= 0.3.2)
136
+ avm-git (~> 0.4)
137
+ clipboard (~> 1.3, >= 1.3.6)
138
+ curb (~> 0.9, >= 0.9.11)
139
+ eac_git (~> 0.12, >= 0.12.2)
140
+ eac_ruby_base0 (~> 0.16, >= 0.16.6)
141
+ eac_templates (~> 0.3, >= 0.3.1)
142
+ git (~> 1.12)
143
+ ruby-progressbar (~> 1.11)
209
144
  axiom-types (0.1.1)
210
145
  descendants_tracker (~> 0.0.4)
211
146
  ice_nine (~> 0.11.0)
@@ -215,24 +150,35 @@ GEM
215
150
  coercible (1.0.0)
216
151
  descendants_tracker (~> 0.0.1)
217
152
  colorize (0.8.1)
218
- concurrent-ruby (1.1.9)
219
- content-type (0.0.1)
220
- parslet (~> 1.5)
153
+ concurrent-ruby (1.1.10)
154
+ content-type (0.0.2)
155
+ parslet (~> 2.0)
221
156
  curb (0.9.11)
222
157
  descendants_tracker (0.0.4)
223
158
  thread_safe (~> 0.3, >= 0.3.1)
224
159
  diff-lcs (1.5.0)
225
- dry-inflector (0.2.1)
226
- eac_git (0.11.0)
160
+ dry-inflector (0.3.0)
161
+ eac_cli (0.27.8)
162
+ colorize (~> 0.8.1)
163
+ eac_config (~> 0.8)
164
+ eac_ruby_utils (~> 0.95)
165
+ eac_config (0.11.1)
166
+ addressable (~> 2.8)
167
+ eac_ruby_utils (~> 0.102)
168
+ eac_fs (0.12.3)
169
+ content-type
170
+ eac_ruby_utils (~> 0.70)
171
+ ruby-filemagic
172
+ eac_git (0.12.2)
227
173
  eac_ruby_utils (~> 0.83)
228
174
  parseconfig (~> 1.0, >= 1.0.8)
229
- eac_ruby_gem_support (0.5.0)
175
+ eac_ruby_gem_support (0.5.1)
230
176
  eac_ruby_utils (~> 0.74)
231
177
  rspec (~> 3.9)
232
178
  rubocop (~> 0.80.1)
233
179
  rubocop-rails (~> 2.4.2)
234
180
  rubocop-rspec (~> 1.38.1)
235
- faraday (1.9.3)
181
+ faraday (1.10.2)
236
182
  faraday-em_http (~> 1.0)
237
183
  faraday-em_synchrony (~> 1.0)
238
184
  faraday-excon (~> 1.1)
@@ -247,9 +193,12 @@ GEM
247
193
  faraday-em_http (1.0.0)
248
194
  faraday-em_synchrony (1.0.0)
249
195
  faraday-excon (1.1.0)
196
+ faraday-gzip (0.1.0)
197
+ faraday (>= 1.0)
198
+ zlib (~> 2.1)
250
199
  faraday-httpclient (1.0.1)
251
- faraday-multipart (1.0.3)
252
- multipart-post (>= 1.2, < 3)
200
+ faraday-multipart (1.0.4)
201
+ multipart-post (~> 2)
253
202
  faraday-net_http (1.0.1)
254
203
  faraday-net_http_persistent (1.2.0)
255
204
  faraday-patron (1.0.0)
@@ -258,49 +207,49 @@ GEM
258
207
  faraday_middleware (1.2.0)
259
208
  faraday (~> 1.0)
260
209
  filesize (0.2.0)
261
- git (1.10.2)
210
+ git (1.12.0)
211
+ addressable (~> 2.8)
262
212
  rchardet (~> 1.8)
263
213
  hpricot (0.8.6)
264
- htmlbeautifier (1.4.1)
265
- i18n (1.8.11)
214
+ htmlbeautifier (1.4.2)
215
+ i18n (1.12.0)
266
216
  concurrent-ruby (~> 1.0)
267
217
  ice_nine (0.11.2)
268
218
  inifile (3.0.0)
269
219
  jaro_winkler (1.5.4)
270
220
  minitar (0.9)
271
- minitest (5.15.0)
272
- multipart-post (2.1.1)
221
+ minitest (5.16.3)
222
+ multipart-post (2.2.3)
273
223
  net-ssh (4.2.0)
274
- nokogiri (1.13.1-x86_64-linux)
224
+ nokogiri (1.13.8-x86_64-linux)
275
225
  racc (~> 1.4)
276
226
  ofx-parser (1.1.0)
277
227
  hpricot (>= 0.6)
278
228
  os (1.1.4)
279
- parallel (1.21.0)
229
+ parallel (1.22.1)
280
230
  parseconfig (1.1.2)
281
- parser (3.1.0.0)
231
+ parser (3.1.2.1)
282
232
  ast (~> 2.4.1)
283
- parslet (1.8.2)
284
- public_suffix (4.0.6)
233
+ parslet (2.0.0)
234
+ public_suffix (5.0.0)
285
235
  racc (1.6.0)
286
- rack (2.2.3)
236
+ rack (2.2.4)
287
237
  rainbow (3.1.1)
288
238
  rchardet (1.8.0)
289
239
  rexml (3.2.5)
290
- rouge (3.27.0)
291
- rspec (3.10.0)
292
- rspec-core (~> 3.10.0)
293
- rspec-expectations (~> 3.10.0)
294
- rspec-mocks (~> 3.10.0)
295
- rspec-core (3.10.1)
296
- rspec-support (~> 3.10.0)
297
- rspec-expectations (3.10.2)
240
+ rspec (3.11.0)
241
+ rspec-core (~> 3.11.0)
242
+ rspec-expectations (~> 3.11.0)
243
+ rspec-mocks (~> 3.11.0)
244
+ rspec-core (3.11.0)
245
+ rspec-support (~> 3.11.0)
246
+ rspec-expectations (3.11.0)
298
247
  diff-lcs (>= 1.2.0, < 2.0)
299
- rspec-support (~> 3.10.0)
300
- rspec-mocks (3.10.2)
248
+ rspec-support (~> 3.11.0)
249
+ rspec-mocks (3.11.1)
301
250
  diff-lcs (>= 1.2.0, < 2.0)
302
- rspec-support (~> 3.10.0)
303
- rspec-support (3.10.3)
251
+ rspec-support (~> 3.11.0)
252
+ rspec-support (3.11.0)
304
253
  rubocop (0.80.1)
305
254
  jaro_winkler (~> 1.5.1)
306
255
  parallel (~> 1.10)
@@ -321,34 +270,30 @@ GEM
321
270
  selenium-webdriver (3.142.7)
322
271
  childprocess (>= 0.5, < 4.0)
323
272
  rubyzip (>= 1.2.2)
324
- taglib-ruby (1.1.0)
325
- telegram-bot-ruby (0.17.0)
273
+ taglib-ruby (1.1.2)
274
+ telegram-bot-ruby (0.19.2)
326
275
  dry-inflector
327
276
  faraday (~> 1.0)
328
277
  virtus (~> 2.0)
329
278
  thread_safe (0.3.6)
330
- tzinfo (2.0.4)
279
+ tzinfo (2.0.5)
331
280
  concurrent-ruby (~> 1.0)
332
281
  unicode-display_width (1.6.1)
333
282
  virtus (2.0.0)
334
283
  axiom-types (~> 0.1)
335
284
  coercible (~> 1.0)
336
285
  descendants_tracker (~> 0.0, >= 0.0.3)
337
- zeitwerk (2.5.3)
286
+ zeitwerk (2.6.0)
287
+ zlib (2.1.1)
338
288
 
339
289
  PLATFORMS
340
290
  x86_64-linux
341
291
 
342
292
  DEPENDENCIES
343
- aranha-parsers!
344
293
  aranha-selenium!
345
- eac_cli!
346
- eac_config!
347
294
  eac_docker!
348
- eac_fs!
349
295
  eac_ruby_base0!
350
296
  eac_ruby_gem_support (~> 0.3)
351
- eac_ruby_gems_utils!
352
297
  eac_ruby_utils!
353
298
  eac_templates!
354
299
  ehbrs-tools!
@@ -357,4 +302,4 @@ DEPENDENCIES
357
302
  ultimate_lyrics!
358
303
 
359
304
  BUNDLED WITH
360
- 2.2.25
305
+ 2.3.20
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
- require 'ehbrs/patches/object/erb_template'
5
4
 
6
5
  module Ehbrs
7
6
  module CookingBook
@@ -2,7 +2,6 @@
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
4
  require 'ehbrs/cooking_book/build/base_page'
5
- require 'ehbrs/patches/object/erb_template'
6
5
 
7
6
  module Ehbrs
8
7
  module CookingBook
data/lib/ehbrs/gems.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_ruby_gems_utils/gem'
3
+ require 'avm/eac_ruby_base1/sources/base'
4
4
 
5
5
  module Ehbrs
6
6
  module Gems
@@ -18,7 +18,7 @@ module Ehbrs
18
18
  private
19
19
 
20
20
  def app_uncached
21
- ::EacRubyGemsUtils::Gem.new(app_path)
21
+ ::Avm::EacRubyBase1::Sources::Base.new(app_path)
22
22
  end
23
23
 
24
24
  def all_uncached
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'ehbrs_ruby_utils/music/ous/album'
4
- require 'ehbrs_ruby_utils/spreader_t1'
4
+ require 'ehbrs_ruby_utils/circular_list_spreader'
5
5
  require 'ehbrs/tools/runner/fs/selected'
6
6
 
7
7
  module Ehbrs
@@ -25,7 +25,7 @@ module Ehbrs
25
25
  end
26
26
 
27
27
  def spreader_uncached
28
- ::EhbrsRubyUtils::SpreaderT1.new(albums)
28
+ ::EhbrsRubyUtils::CircularListSpreader.new(albums)
29
29
  end
30
30
 
31
31
  def albums
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_cli/core_ext'
4
- require 'ehbrs/videos/series/rename/file'
5
- require 'ehbrs/videos/series/rename/file/options'
6
- require 'ehbrs/videos/series/rename/results_builder'
4
+ require 'ehbrs_ruby_utils/videos/series/rename/file'
5
+ require 'ehbrs_ruby_utils/videos/series/rename/file/options'
6
+ require 'ehbrs_ruby_utils/videos/series/rename/results_builder'
7
7
 
8
8
  module Ehbrs
9
9
  module Tools
@@ -49,15 +49,16 @@ module Ehbrs
49
49
  end
50
50
 
51
51
  def traverser_check_file(path)
52
- @files << ::Ehbrs::Videos::Series::Rename::File.new(path, series_file_options)
52
+ @files << ::EhbrsRubyUtils::Videos::Series::Rename::File
53
+ .new(path, series_file_options)
53
54
  end
54
55
 
55
56
  def series_file_options_uncached
56
- ::Ehbrs::Videos::Series::Rename::File::Options.new(parsed)
57
+ ::EhbrsRubyUtils::Videos::Series::Rename::File::Options.new(parsed)
57
58
  end
58
59
 
59
60
  def show_results
60
- ::Ehbrs::Videos::Series::Rename::ResultsBuilder.new(files).show(0)
61
+ ::EhbrsRubyUtils::Videos::Series::Rename::ResultsBuilder.new(files).show(0)
61
62
  end
62
63
 
63
64
  def rename_files
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Ehbrs
4
4
  module Tools
5
- VERSION = '0.30.0'
5
+ VERSION = '0.32.0'
6
6
  end
7
7
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_fs/cache'
3
+ require 'eac_fs/storage_tree'
4
4
  require 'eac_ruby_utils/simple_cache'
5
5
 
6
6
  module Ehbrs
@@ -15,7 +15,7 @@ module Ehbrs
15
15
  private
16
16
 
17
17
  def user_home_dir_uncached
18
- ::EacFs::Cache.new(ENV['HOME'])
18
+ ::EacFs::StorageTree.new(ENV['HOME'])
19
19
  end
20
20
 
21
21
  def cache_uncached
@@ -11,11 +11,11 @@ module Ehbrs
11
11
  AUDIO_SUPPORTED_CODECS = %w[aac ac3 eac3 mp3 vorbis].freeze
12
12
  AUDIO_UNSUPPORTED_CODECS = %w[dts].freeze
13
13
 
14
- VIDEO_SUPPORTED_CODECS = %w[h264 mpeg4 hevc].freeze
14
+ VIDEO_SUPPORTED_CODECS = %w[h264 mpeg4 hevc mjpeg].freeze
15
15
  VIDEO_UNSUPPORTED_CODECS = %w[].freeze
16
16
 
17
- SUBTITLE_SUPPORTED_CODECS = %w[ass dvd subrip].freeze
18
- SUBTITLE_UNSUPPORTED_CODECS = %w[mov].freeze
17
+ SUBTITLE_SUPPORTED_CODECS = %w[ass dvd dvd_subtitle hdmv_pgs_subtitle subrip].freeze
18
+ SUBTITLE_UNSUPPORTED_CODECS = %w[mov mov_text].freeze
19
19
 
20
20
  OTHER_SUPPORTED_CODECS = %w[png ttf].freeze
21
21
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'eac_fs/cache'
3
+ require 'eac_fs/storage_tree'
4
4
  require 'eac_ruby_utils/fs/temp'
5
5
  require 'ehbrs/tools/runner'
6
6
  require 'ehbrs/tools/runner/fs/used_space'
@@ -9,7 +9,7 @@ require 'ehbrs/observers/with_persistence'
9
9
  RSpec.describe ::Ehbrs::Tools::Runner::Fs::UsedSpace do
10
10
  let(:target) { ::EacRubyUtils::Fs::Temp.directory }
11
11
  let(:user_dir) { ::EacRubyUtils::Fs::Temp.directory }
12
- let(:cached_user_dir) { ::EacFs::Cache.new(user_dir) }
12
+ let(:cached_user_dir) { ::EacFs::StorageTree.new(user_dir) }
13
13
  let(:observers_user_dir) { cached_user_dir.child('observers') }
14
14
  let(:observer_path) do
15
15
  observers_user_dir.child(target.to_s.parameterize).content_path.to_pathname
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.30.0
4
+ version: 0.32.0
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: 2022-01-23 00:00:00.000000000 Z
11
+ date: 2022-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-tools
@@ -16,88 +16,82 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.82'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.82.1
19
+ version: '0.135'
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
24
  - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '0.82'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.82.1
26
+ version: '0.135'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: eac_cli
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '0.12'
33
+ version: '0.27'
40
34
  - - ">="
41
35
  - !ruby/object:Gem::Version
42
- version: 0.12.5
36
+ version: 0.27.8
43
37
  type: :runtime
44
38
  prerelease: false
45
39
  version_requirements: !ruby/object:Gem::Requirement
46
40
  requirements:
47
41
  - - "~>"
48
42
  - !ruby/object:Gem::Version
49
- version: '0.12'
43
+ version: '0.27'
50
44
  - - ">="
51
45
  - !ruby/object:Gem::Version
52
- version: 0.12.5
46
+ version: 0.27.8
53
47
  - !ruby/object:Gem::Dependency
54
48
  name: eac_ruby_utils
55
49
  requirement: !ruby/object:Gem::Requirement
56
50
  requirements:
57
51
  - - "~>"
58
52
  - !ruby/object:Gem::Version
59
- version: '0.71'
53
+ version: '0.102'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 0.102.1
60
57
  type: :runtime
61
58
  prerelease: false
62
59
  version_requirements: !ruby/object:Gem::Requirement
63
60
  requirements:
64
61
  - - "~>"
65
62
  - !ruby/object:Gem::Version
66
- version: '0.71'
63
+ version: '0.102'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 0.102.1
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: ehbrs_ruby_utils
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
71
  - - "~>"
72
72
  - !ruby/object:Gem::Version
73
- version: '0.8'
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: 0.8.1
73
+ version: '0.18'
77
74
  type: :runtime
78
75
  prerelease: false
79
76
  version_requirements: !ruby/object:Gem::Requirement
80
77
  requirements:
81
78
  - - "~>"
82
79
  - !ruby/object:Gem::Version
83
- version: '0.8'
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- version: 0.8.1
80
+ version: '0.18'
87
81
  - !ruby/object:Gem::Dependency
88
82
  name: filesize
89
83
  requirement: !ruby/object:Gem::Requirement
90
84
  requirements:
91
- - - ">="
85
+ - - "~>"
92
86
  - !ruby/object:Gem::Version
93
- version: '0'
87
+ version: '0.2'
94
88
  type: :runtime
95
89
  prerelease: false
96
90
  version_requirements: !ruby/object:Gem::Requirement
97
91
  requirements:
98
- - - ">="
92
+ - - "~>"
99
93
  - !ruby/object:Gem::Version
100
- version: '0'
94
+ version: '0.2'
101
95
  - !ruby/object:Gem::Dependency
102
96
  name: inifile
103
97
  requirement: !ruby/object:Gem::Requirement
@@ -116,30 +110,42 @@ dependencies:
116
110
  name: os
117
111
  requirement: !ruby/object:Gem::Requirement
118
112
  requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '1.1'
119
116
  - - ">="
120
117
  - !ruby/object:Gem::Version
121
- version: '0'
118
+ version: 1.1.4
122
119
  type: :runtime
123
120
  prerelease: false
124
121
  version_requirements: !ruby/object:Gem::Requirement
125
122
  requirements:
123
+ - - "~>"
124
+ - !ruby/object:Gem::Version
125
+ version: '1.1'
126
126
  - - ">="
127
127
  - !ruby/object:Gem::Version
128
- version: '0'
128
+ version: 1.1.4
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: telegram-bot-ruby
131
131
  requirement: !ruby/object:Gem::Requirement
132
132
  requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: '0.19'
133
136
  - - ">="
134
137
  - !ruby/object:Gem::Version
135
- version: '0'
138
+ version: 0.19.2
136
139
  type: :runtime
137
140
  prerelease: false
138
141
  version_requirements: !ruby/object:Gem::Requirement
139
142
  requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.19'
140
146
  - - ">="
141
147
  - !ruby/object:Gem::Version
142
- version: '0'
148
+ version: 0.19.2
143
149
  - !ruby/object:Gem::Dependency
144
150
  name: eac_ruby_gem_support
145
151
  requirement: !ruby/object:Gem::Requirement
@@ -213,8 +219,6 @@ files:
213
219
  - lib/ehbrs/tools/runner/music/lyrics_book.rb
214
220
  - lib/ehbrs/tools/runner/music/selected.rb
215
221
  - lib/ehbrs/tools/runner/music/spread.rb
216
- - lib/ehbrs/tools/runner/self.rb
217
- - lib/ehbrs/tools/runner/self/test.rb
218
222
  - lib/ehbrs/tools/runner/telegram.rb
219
223
  - lib/ehbrs/tools/runner/telegram/send_message.rb
220
224
  - lib/ehbrs/tools/runner/vg.rb
@@ -252,16 +256,6 @@ files:
252
256
  - lib/ehbrs/videos/file.rb
253
257
  - lib/ehbrs/videos/profiles/base.rb
254
258
  - lib/ehbrs/videos/profiles/same_quality.rb
255
- - lib/ehbrs/videos/series.rb
256
- - lib/ehbrs/videos/series/rename.rb
257
- - lib/ehbrs/videos/series/rename/directory_group.rb
258
- - lib/ehbrs/videos/series/rename/file.rb
259
- - lib/ehbrs/videos/series/rename/file/basename_parser.rb
260
- - lib/ehbrs/videos/series/rename/file/options.rb
261
- - lib/ehbrs/videos/series/rename/line_result.rb
262
- - lib/ehbrs/videos/series/rename/line_result_group.rb
263
- - lib/ehbrs/videos/series/rename/results_builder.rb
264
- - lib/ehbrs/videos/series/rename/season_group.rb
265
259
  - lib/ehbrs/videos/track.rb
266
260
  - lib/ehbrs/videos/unsupported/check_result.rb
267
261
  - lib/ehbrs/videos/unsupported/check_set.rb
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/core_ext'
4
- require 'ehbrs/gems'
5
- require 'eac_ruby_gems_utils/tests/multiple'
6
-
7
- module Ehbrs
8
- module Tools
9
- class Runner
10
- class Self
11
- class Test
12
- runner_with :help do
13
- desc 'Test core and local gems.'
14
- end
15
-
16
- def run
17
- fatal_error 'Some test did not pass' unless tests.ok?
18
- end
19
-
20
- def tests_uncached
21
- ::EacRubyGemsUtils::Tests::Multiple.new(::Ehbrs::Gems.all)
22
- end
23
- end
24
- end
25
- end
26
- end
27
- end
@@ -1,18 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/core_ext'
4
-
5
- module Ehbrs
6
- module Tools
7
- class Runner
8
- class Self
9
- require_sub __FILE__
10
-
11
- runner_with :help, :subcommands do
12
- desc 'Self utilities'
13
- subcommands
14
- end
15
- end
16
- end
17
- end
18
- end
@@ -1,28 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'ehbrs/videos/series/rename/line_result_group'
4
- require 'ehbrs/videos/series/rename/season_group'
5
-
6
- module Ehbrs
7
- module Videos
8
- module Series
9
- module Rename
10
- class DirectoryGroup < LineResultGroup
11
- def line_out
12
- name.light_yellow
13
- end
14
-
15
- protected
16
-
17
- def child_key
18
- :season
19
- end
20
-
21
- def child_class
22
- ::Ehbrs::Videos::Series::Rename::SeasonGroup
23
- end
24
- end
25
- end
26
- end
27
- end
28
- end
@@ -1,44 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'ehbrs/videos/series/rename/line_result'
4
-
5
- module Ehbrs
6
- module Videos
7
- module Series
8
- module Rename
9
- class File < ::Ehbrs::Videos::Series::Rename::LineResult
10
- module BasenameParser
11
- FORMATS = [{
12
- format: /(\d+)(\d{2})(\d{2})/i,
13
- build: ->(m) { { s: padding(m[1]), e: padding(m[2]) + '-' + padding(m[3]) } }
14
- }, {
15
- format: /s(\d+)e(\d+)-(\d+)/i,
16
- build: ->(m) { { s: padding(m[1]), e: padding(m[2]) + '-' + padding(m[3]) } }
17
- }, {
18
- format: /(\d{1,2})\s*[^\d]\s*(\d{2})/i,
19
- build: ->(m) { { s: padding(m[1]), e: padding(m[2]) } }
20
- }, {
21
- format: /(\d+)(\d{2})/i,
22
- build: ->(m) { { s: padding(m[1]), e: padding(m[2]) } }
23
- }, {
24
- format: /(\d{2})/i,
25
- build: ->(m) { { s: padding(1), e: padding(m[1]) } }
26
- }].freeze
27
-
28
- def self.padding(string)
29
- string.to_s.rjust(2, '0')
30
- end
31
-
32
- def parse_uncached
33
- FORMATS.each do |format|
34
- m = format.fetch(:format).match(current_name)
35
- return format.fetch(:build).call(m) if m
36
- end
37
- nil
38
- end
39
- end
40
- end
41
- end
42
- end
43
- end
44
- end
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Ehbrs
4
- module Videos
5
- module Series
6
- module Rename
7
- class File
8
- class Options
9
- common_constructor :options
10
- delegate :kernel, :confirm, :recursive, :extension, to: :options
11
-
12
- def episode_increment
13
- options.episode_increment.if_present(0, &:to_i)
14
- end
15
- end
16
- end
17
- end
18
- end
19
- end
20
- end
@@ -1,114 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/fs/extname'
4
- require 'ostruct'
5
- require_relative 'line_result'
6
- require_relative 'file/basename_parser'
7
-
8
- module Ehbrs
9
- module Videos
10
- module Series
11
- module Rename
12
- class File < ::Ehbrs::Videos::Series::Rename::LineResult
13
- include ::Ehbrs::Videos::Series::Rename::File::BasenameParser
14
-
15
- attr_reader :file, :options
16
-
17
- def initialize(file, options)
18
- @file = file
19
- @options = options
20
- @options = ::OpenStruct.new(options) if options.is_a?(::Hash)
21
- end
22
-
23
- def rename
24
- target = ::File.expand_path(new_name, dirname)
25
- return if ::File.exist?(target)
26
-
27
- infov 'Renaming', @file
28
- FileUtils.mv(@file, target)
29
- end
30
-
31
- def season
32
- return '??' if parse.blank?
33
-
34
- parse.fetch(:s)
35
- end
36
-
37
- def episode
38
- return '??' if parse.blank?
39
-
40
- parse.fetch(:e)
41
- end
42
-
43
- def dirname
44
- d = @file
45
- while d != '/'
46
- d = ::File.dirname(d)
47
- return ::File.expand_path(d) + '/' unless ::File.basename(d).starts_with?('_')
48
- end
49
- raise "series_dirname not found for #{@file}"
50
- end
51
-
52
- def line_out
53
- "#{episode.green}: " + if new_name == current_name
54
- current_name.light_black
55
- else
56
- "#{new_name} <= #{current_name}"
57
- end
58
- end
59
-
60
- def new_name
61
- return "#{kernel}-s#{parse[:s]}e#{new_name_episodes}#{extension}" if parse.present?
62
-
63
- current_name
64
- end
65
-
66
- private
67
-
68
- def current_name
69
- ::File.expand_path(@file).gsub(/\A#{::Regexp.quote(dirname)}/, '')
70
- end
71
-
72
- def rename?
73
- return false unless new_name
74
-
75
- current_name != new_name
76
- end
77
-
78
- def kernel
79
- options.kernel || kernel_from_directory_name ||
80
- raise("Kernel undefined (File: #{@file})")
81
- end
82
-
83
- def kernel_from_directory_name
84
- dir = ::File.basename(dirname).sub(/\([0-9]+\)/, '')
85
- dir.split(/\W+/).select { |w| /\A[a-z0-9]/.match(w) }.map { |p| p[0].downcase }.join('')
86
- end
87
-
88
- def extension
89
- return options.extension if options.extension
90
-
91
- extension_by_directory || ::EacRubyUtils::Fs.extname2(current_name)
92
- end
93
-
94
- def extension_by_directory
95
- r = ::File.dirname(current_name)
96
- return nil if r == '.'
97
-
98
- r.gsub(/\A_/, '.')
99
- end
100
-
101
- def source_episodes
102
- parse[:e].split('-').map(&:to_i)
103
- end
104
-
105
- def new_name_episodes
106
- source_episodes.map do |i|
107
- (i + options.episode_increment).to_s.rjust(2, '0')
108
- end.join('-')
109
- end
110
- end
111
- end
112
- end
113
- end
114
- end
@@ -1,26 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Videos
7
- module Series
8
- module Rename
9
- class LineResult
10
- enable_simple_cache
11
- enable_speaker
12
-
13
- def show(level)
14
- out(padding_level(level) + line_out + "\n")
15
- end
16
-
17
- private
18
-
19
- def padding_level(level)
20
- (' ' * level.to_i) + '* '
21
- end
22
- end
23
- end
24
- end
25
- end
26
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'line_result'
4
-
5
- module Ehbrs
6
- module Videos
7
- module Series
8
- module Rename
9
- class LineResultGroup < ::Ehbrs::Videos::Series::Rename::LineResult
10
- attr_reader :name, :children
11
-
12
- def initialize(name, files)
13
- @name = name
14
- @children = build_children(files)
15
- end
16
-
17
- def show(level)
18
- super(level)
19
- children.each do |child|
20
- child.show(level + 1)
21
- end
22
- end
23
-
24
- private
25
-
26
- def build_children(files)
27
- r = {}
28
- files.each do |file|
29
- key = file.send(child_key)
30
- r[key] ||= []
31
- r[key] << file
32
- end
33
- r.sort.map { |v| child_class.new(v[0], v[1]) }
34
- end
35
- end
36
- end
37
- end
38
- end
39
- end
@@ -1,32 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'ehbrs/videos/series/rename/directory_group'
4
- require 'ehbrs/videos/series/rename/line_result_group'
5
-
6
- module Ehbrs
7
- module Videos
8
- module Series
9
- module Rename
10
- class ResultsBuilder < LineResultGroup
11
- def initialize(files)
12
- super '', files
13
- end
14
-
15
- def line_out
16
- 'Groups: '.cyan + children.count.to_s
17
- end
18
-
19
- protected
20
-
21
- def child_key
22
- :dirname
23
- end
24
-
25
- def child_class
26
- ::Ehbrs::Videos::Series::Rename::DirectoryGroup
27
- end
28
- end
29
- end
30
- end
31
- end
32
- end
@@ -1,39 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative 'line_result'
4
-
5
- module Ehbrs
6
- module Videos
7
- module Series
8
- module Rename
9
- class SeasonGroup < ::Ehbrs::Videos::Series::Rename::LineResult
10
- attr_reader :season, :files
11
-
12
- def initialize(season, files)
13
- @season = season
14
- @files = files.sort_by { |f| [f.episode] }
15
- end
16
-
17
- def line_out
18
- 'Season: '.cyan + "#{season} (#{first_episode} - #{last_episode})"
19
- end
20
-
21
- def show(level)
22
- super
23
- files.each { |file| file.show(level + 1) }
24
- end
25
-
26
- private
27
-
28
- def first_episode
29
- files.first.episode
30
- end
31
-
32
- def last_episode
33
- files.last.episode
34
- end
35
- end
36
- end
37
- end
38
- end
39
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Videos
7
- module Series
8
- module Rename
9
- require_sub __FILE__
10
- end
11
- end
12
- end
13
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Videos
7
- module Series
8
- require_sub __FILE__
9
- end
10
- end
11
- end