ehbrs-tools 0.38.0 → 0.39.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -5
  3. data/Gemfile.lock +103 -81
  4. data/exe/ehbrs +1 -1
  5. data/lib/ehbrs/executables.rb +1 -8
  6. data/lib/ehbrs/observers/base.rb +2 -3
  7. data/lib/ehbrs/observers/with_persistence.rb +1 -1
  8. data/lib/ehbrs/tools/runner/finances/bb_browser.rb +2 -2
  9. data/lib/ehbrs/tools/runner/fs/used_space.rb +1 -1
  10. data/lib/ehbrs/tools/runner/google/translate.rb +1 -1
  11. data/lib/ehbrs/tools/runner/music/lyrics.rb +2 -2
  12. data/lib/ehbrs/tools/runner/music/lyrics_book.rb +1 -1
  13. data/lib/ehbrs/tools/runner/vg/ps2/rename.rb +34 -0
  14. data/lib/ehbrs/tools/runner/vg/ps2.rb +19 -0
  15. data/lib/ehbrs/tools/runner/videos/extract.rb +2 -2
  16. data/lib/ehbrs/tools/runner/videos/languages/file_runner.rb +3 -2
  17. data/lib/ehbrs/tools/runner/videos/languages.rb +2 -2
  18. data/lib/ehbrs/tools/runner/videos/probe.rb +2 -2
  19. data/lib/ehbrs/tools/runner/videos/unsupported.rb +7 -7
  20. data/lib/ehbrs/tools/runner/web_utils/videos/upload.rb +1 -1
  21. data/lib/ehbrs/tools/runner_with/filesystem_renamer.rb +103 -0
  22. data/lib/ehbrs/{videos/extract.rb → tools/runner_with.rb} +2 -2
  23. data/lib/ehbrs/tools/version.rb +1 -1
  24. data/lib/ehbrs/user_dirs.rb +1 -1
  25. metadata +16 -75
  26. data/lib/ehbrs/gems.rb +0 -37
  27. data/lib/ehbrs/videos/convert_job.rb +0 -99
  28. data/lib/ehbrs/videos/extract/package.rb +0 -75
  29. data/lib/ehbrs/videos/extract/package_file.rb +0 -53
  30. data/lib/ehbrs/videos/file.rb +0 -67
  31. data/lib/ehbrs/videos/profiles/base.rb +0 -35
  32. data/lib/ehbrs/videos/profiles/same_quality.rb +0 -21
  33. data/lib/ehbrs/videos/track.rb +0 -19
  34. data/lib/ehbrs/videos/unsupported/check_result.rb +0 -24
  35. data/lib/ehbrs/videos/unsupported/check_set.rb +0 -43
  36. data/lib/ehbrs/videos/unsupported/check_support.rb +0 -73
  37. data/lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb +0 -29
  38. data/lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb +0 -28
  39. data/lib/ehbrs/videos/unsupported/checks/codec_unlisted.rb +0 -25
  40. data/lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb +0 -27
  41. data/lib/ehbrs/videos/unsupported/checks/invalid_extension.rb +0 -27
  42. data/lib/ehbrs/videos/unsupported/checks.rb +0 -13
  43. data/lib/ehbrs/videos/unsupported/file/fix.rb +0 -45
  44. data/lib/ehbrs/videos/unsupported/file.rb +0 -50
  45. data/lib/ehbrs/videos/unsupported/fix_profile.rb +0 -44
  46. data/lib/ehbrs/videos/unsupported/fixes/supported_codec.rb +0 -36
  47. data/lib/ehbrs/videos/unsupported/fixes/supported_container.rb +0 -17
  48. data/lib/ehbrs/videos/unsupported/profiles/aoc.rb +0 -27
  49. data/lib/ehbrs/videos/unsupported/profiles/base.rb +0 -116
  50. data/lib/ehbrs/videos/unsupported/profiles/philco.rb +0 -28
  51. data/lib/ehbrs/videos/unsupported/profiles/samsung.rb +0 -33
  52. data/lib/ehbrs/videos/unsupported/profiles.rb +0 -13
  53. data/lib/ehbrs/videos/unsupported/search.rb +0 -75
  54. data/lib/ehbrs/videos/unsupported/track.rb +0 -32
  55. data/lib/ehbrs/videos.rb +0 -9
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: efdf00a40c51048bd3a312af6ff2919482f488aebdda650b372b0351b140c665
4
- data.tar.gz: 53f183eac080097ba44aeefbb11844aa6b290552c04415291388f25114feac66
3
+ metadata.gz: 37d5bc6d09fd99c2b19fac22bbebd6c6817d88f1542d9eea927f7d40189be1b6
4
+ data.tar.gz: ae180d116b7de37be4e2f9a38aa9b06daa0ac6ef31631ed9c151ee46a140ee5e
5
5
  SHA512:
6
- metadata.gz: ec429dacb5ec9a1a26021b8fad7cf7e0ab9dd184d4772c26cb7ea84ecf4e76f18718d4451cea2055a33e756cc9e4d8a3b5588d898415dbb15dd901a4c723ab57
7
- data.tar.gz: f910b6b22feef5fe31096dc92748c6484b71905cf514059d29ade024be209dfea15eb703e9be734cbf3a13c245936abb22a4fb1c7974777c1f9abfb581fe54fc
6
+ metadata.gz: f1294ab961b7a4ef0193cb25a582eea593930bdd9afb51850e2956c775de0094ad768a40b70e9f029285ee6880ee219294207f57a52156458e31c403000102c6
7
+ data.tar.gz: cdc973943f214f78198c8f8d31052b21a03c1c6b3dd51c9758b43fc55049063f691ac6181249f45688484f90bde0b177fd91c5d1f3b08d623861582b38736560
data/Gemfile CHANGED
@@ -4,11 +4,11 @@ source 'https://rubygems.org'
4
4
 
5
5
  gemspec
6
6
 
7
- ::Dir["#{::File.join(__dir__, 'sub')}/*"].each do |dir|
8
- next unless ::File.exist?(::File.join(dir, "#{::File.basename(dir)}.gemspec"))
7
+ Dir["#{File.join(__dir__, 'sub')}/*"].each do |dir|
8
+ next unless File.exist?(File.join(dir, "#{File.basename(dir)}.gemspec"))
9
9
 
10
- gem ::File.basename(dir), path: dir, require: false
10
+ gem File.basename(dir), path: dir, require: false
11
11
  end
12
12
 
13
- local_gemfile = ::File.join(::File.dirname(__FILE__), 'Gemfile.local')
14
- eval_gemfile local_gemfile if ::File.exist?(local_gemfile)
13
+ local_gemfile = File.join(File.dirname(__FILE__), 'Gemfile.local')
14
+ eval_gemfile local_gemfile if File.exist?(local_gemfile)
data/Gemfile.lock CHANGED
@@ -1,29 +1,38 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ehbrs-tools (0.38.0)
5
- avm-tools (~> 0.156)
6
- eac_cli (~> 0.38)
7
- eac_ruby_utils (~> 0.119, >= 0.119.2)
8
- ehbrs_ruby_utils (~> 0.36, >= 0.36.1)
4
+ ehbrs-tools (0.39.1)
5
+ avm-tools (~> 0.159)
6
+ eac_cli (~> 0.40)
7
+ eac_ruby_utils (~> 0.120)
8
+ ehbrs_ruby_utils (~> 0.41)
9
9
  filesize (~> 0.2)
10
- inifile (~> 3.0)
11
10
  os (~> 1.1, >= 1.1.4)
12
11
  telegram-bot-ruby (~> 0.23)
13
12
 
13
+ PATH
14
+ remote: sub/eac_cli
15
+ specs:
16
+ eac_cli (0.40.0)
17
+ colorize (~> 0.8, >= 0.8.1)
18
+ eac_config (~> 0.14, >= 0.14.1)
19
+ eac_ruby_utils (~> 0.120)
20
+ tty-table (~> 0.12)
21
+
14
22
  PATH
15
23
  remote: sub/ehbrs_ruby_utils
16
24
  specs:
17
- ehbrs_ruby_utils (0.36.1)
25
+ ehbrs_ruby_utils (0.41.0)
18
26
  aranha (~> 0.19, >= 0.19.2)
19
- aranha-parsers (~> 0.21)
20
- aranha-selenium (~> 0.7)
21
- avm (~> 0.80)
22
- dentaku (~> 3.5, >= 3.5.1)
23
- eac_fs (~> 0.16)
24
- eac_rest (~> 0.10)
25
- eac_ruby_utils (~> 0.119, >= 0.119.2)
27
+ aranha-parsers (~> 0.22)
28
+ aranha-selenium (~> 0.8)
29
+ avm (~> 0.84, >= 0.84.2)
30
+ dentaku (~> 3.5, >= 3.5.2)
31
+ eac_fs (~> 0.17)
32
+ eac_rest (~> 0.12)
33
+ eac_ruby_utils (~> 0.120)
26
34
  eac_templates (~> 0.5)
35
+ inifile (~> 3.0)
27
36
  srt (~> 0.1, >= 0.1.5)
28
37
  taglib-ruby (~> 1.1, >= 1.1.3)
29
38
  ultimate_lyrics (~> 0.1, >= 0.1.3)
@@ -37,41 +46,42 @@ GEM
37
46
  minitest (>= 5.1)
38
47
  tzinfo (~> 2.0)
39
48
  zeitwerk (~> 2.3)
40
- addressable (2.8.5)
49
+ addressable (2.8.6)
41
50
  public_suffix (>= 2.0.2, < 6.0)
42
51
  aranha (0.19.2)
43
52
  aranha-parsers (~> 0.18)
44
53
  aranha-selenium (~> 0.5)
45
54
  eac_ruby_utils (~> 0.116)
46
- aranha-parsers (0.21.0)
55
+ aranha-parsers (0.22.0)
47
56
  activesupport (>= 4.0.0)
48
- addressable (~> 2.8, >= 2.8.4)
49
- eac_envs-http (~> 0.4)
50
- eac_ruby_utils (~> 0.117, >= 0.117.1)
51
- nokogiri (~> 1.15, >= 1.15.2)
57
+ addressable (~> 2.8, >= 2.8.5)
58
+ eac_envs-http (~> 0.4, >= 0.4.1)
59
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
60
+ nokogiri (~> 1.15, >= 1.15.4)
52
61
  ofx-parser (~> 1.1)
53
- aranha-selenium (0.7.0)
54
- eac_ruby_utils (~> 0.117, >= 0.117.1)
62
+ aranha-selenium (0.8.0)
63
+ eac_fs (~> 0.17)
64
+ eac_ruby_utils (~> 0.120)
55
65
  selenium-webdriver (~> 3.142, >= 3.142.7)
56
66
  ast (2.4.2)
57
- avm (0.80.0)
58
- aranha-parsers (~> 0.21)
59
- eac_cli (~> 0.38)
67
+ avm (0.84.2)
68
+ aranha-parsers (~> 0.22)
69
+ eac_cli (~> 0.39)
60
70
  eac_config (~> 0.14, >= 0.14.1)
61
71
  eac_docker (~> 0.7)
62
72
  eac_fs (~> 0.16)
63
73
  eac_git (~> 0.14, >= 0.14.1)
64
- eac_ruby_utils (~> 0.119, >= 0.119.2)
74
+ eac_ruby_utils (~> 0.120)
65
75
  eac_templates (~> 0.5)
66
76
  filesize (~> 0.2)
67
77
  htmlbeautifier (~> 1.4, >= 1.4.2)
68
78
  minitar (~> 0.9)
69
- avm-eac_generic_base0 (0.12.1)
70
- avm (~> 0.79)
71
- eac_ruby_utils (~> 0.119, >= 0.119.2)
72
- avm-eac_ruby_base1 (0.32.1)
73
- aranha-parsers (~> 0.21)
74
- avm (~> 0.80)
79
+ avm-eac_generic_base0 (0.12.2)
80
+ avm (~> 0.84, >= 0.84.2)
81
+ eac_ruby_utils (~> 0.120)
82
+ avm-eac_ruby_base1 (0.33.1)
83
+ aranha-parsers (~> 0.22)
84
+ avm (~> 0.84)
75
85
  avm-eac_generic_base0 (~> 0.12, >= 0.12.1)
76
86
  eac_envs-http (~> 0.4, >= 0.4.1)
77
87
  eac_ruby_utils (~> 0.119, >= 0.119.2)
@@ -85,19 +95,19 @@ GEM
85
95
  eac_fs (~> 0.16)
86
96
  eac_ruby_utils (~> 0.112)
87
97
  eac_templates (~> 0.5)
88
- avm-git (0.13.4)
89
- avm (~> 0.79)
98
+ avm-git (0.14.0)
99
+ avm (~> 0.82)
90
100
  avm-files (~> 0.6, >= 0.6.2)
91
101
  eac_git (~> 0.14, >= 0.14.1)
92
- eac_ruby_utils (~> 0.119, >= 0.119.1)
102
+ eac_ruby_utils (~> 0.119, >= 0.119.2)
93
103
  git (~> 1.18)
94
- avm-tools (0.156.0)
104
+ avm-tools (0.159.0)
95
105
  aranha-parsers (~> 0.21)
96
- avm (~> 0.80)
97
- avm-eac_ruby_base1 (~> 0.32, >= 0.32.1)
106
+ avm (~> 0.83)
107
+ avm-eac_ruby_base1 (~> 0.33)
98
108
  avm-eac_ubuntu_base0 (~> 0.5)
99
109
  avm-files (~> 0.6, >= 0.6.2)
100
- avm-git (~> 0.13, >= 0.13.4)
110
+ avm-git (~> 0.14)
101
111
  clipboard (~> 1.3, >= 1.3.6)
102
112
  curb (~> 0.9, >= 0.9.11)
103
113
  eac_git (~> 0.14, >= 0.14.1)
@@ -109,63 +119,59 @@ GEM
109
119
  descendants_tracker (~> 0.0.4)
110
120
  ice_nine (~> 0.11.0)
111
121
  thread_safe (~> 0.3, >= 0.3.1)
112
- base64 (0.1.1)
122
+ base64 (0.2.0)
113
123
  childprocess (3.0.0)
114
124
  clipboard (1.3.6)
115
125
  coercible (1.0.0)
116
126
  descendants_tracker (~> 0.0.1)
117
127
  colorize (0.8.1)
118
- concurrent-ruby (1.2.2)
128
+ concurrent-ruby (1.2.3)
119
129
  content-type (0.0.2)
120
130
  parslet (~> 2.0)
121
131
  curb (0.9.11)
122
- dentaku (3.5.1)
132
+ dentaku (3.5.2)
123
133
  concurrent-ruby
124
134
  descendants_tracker (0.0.4)
125
135
  thread_safe (~> 0.3, >= 0.3.1)
126
136
  diff-lcs (1.5.0)
127
137
  dry-inflector (1.0.0)
128
- eac_cli (0.38.0)
129
- colorize (~> 0.8, >= 0.8.1)
130
- eac_config (~> 0.14)
131
- eac_ruby_utils (~> 0.119, >= 0.119.2)
132
138
  eac_config (0.14.1)
133
139
  addressable (~> 2.8, >= 2.8.5)
134
140
  eac_ruby_utils (~> 0.119, >= 0.119.2)
135
141
  eac_docker (0.7.0)
136
142
  eac_ruby_utils (~> 0.112)
137
143
  eac_templates (~> 0.3, >= 0.3.2)
138
- eac_envs-http (0.4.1)
139
- eac_fs (~> 0.16)
140
- eac_ruby_utils (~> 0.119, >= 0.119.1)
141
- faraday (~> 2.7, >= 2.7.10)
144
+ eac_envs-http (0.5.1)
145
+ eac_fs (~> 0.17)
146
+ eac_ruby_utils (~> 0.120)
147
+ faraday (~> 2.7, >= 2.7.12)
142
148
  faraday-follow_redirects (~> 0.3)
143
149
  faraday-gzip (~> 0.1)
144
150
  faraday-multipart (~> 1.0, >= 1.0.4)
145
151
  faraday-retry (~> 2.2)
146
- eac_fs (0.16.0)
152
+ eac_fs (0.17.0)
147
153
  content-type (~> 0.0, >= 0.0.2)
148
- eac_ruby_utils (~> 0.107, >= 0.107.1)
154
+ eac_ruby_utils (~> 0.120)
149
155
  ruby-filemagic (~> 0.7, >= 0.7.3)
150
- eac_git (0.14.1)
151
- eac_ruby_utils (~> 0.112)
156
+ eac_git (0.15.0)
157
+ eac_ruby_utils (~> 0.120)
152
158
  parseconfig (~> 1.1, >= 1.1.2)
153
- eac_rest (0.10.0)
154
- eac_envs-http (~> 0.4, >= 0.4.1)
159
+ eac_rest (0.12.0)
160
+ eac_envs-http (~> 0.5)
155
161
  eac_fs (~> 0.16)
156
- eac_ruby_utils (~> 0.119, >= 0.119.1)
162
+ eac_ruby_utils (~> 0.120)
157
163
  eac_ruby_base0 (0.19.0)
158
164
  avm-eac_ruby_base1 (~> 0.30, >= 0.30.3)
159
165
  eac_cli (~> 0.35)
160
166
  eac_fs (~> 0.16)
161
167
  eac_ruby_utils (~> 0.117)
162
- eac_ruby_gem_support (0.8.2)
168
+ eac_ruby_gem_support (0.9.0)
163
169
  eac_ruby_utils (~> 0.119, >= 0.119.2)
164
170
  rspec (~> 3.12)
165
- rubocop (~> 1.57, >= 1.57.1)
166
- rubocop-rails (~> 2.21, >= 2.21.2)
167
- rubocop-rspec (~> 2.24, >= 2.24.1)
168
- eac_ruby_utils (0.119.2)
171
+ rubocop (~> 1.57, >= 1.57.2)
172
+ rubocop-rails (~> 2.22, >= 2.22.1)
173
+ rubocop-rspec (~> 2.25)
174
+ eac_ruby_utils (0.120.0)
169
175
  activesupport (>= 4, < 7)
170
176
  addressable (~> 2.8, >= 2.8.5)
171
177
  bundler
@@ -174,7 +180,7 @@ GEM
174
180
  eac_templates (0.5.0)
175
181
  eac_config (~> 0.12)
176
182
  eac_ruby_utils (~> 0.112)
177
- faraday (2.7.11)
183
+ faraday (2.8.1)
178
184
  base64
179
185
  faraday-net_http (>= 2.0, < 3.1)
180
186
  ruby2_keywords (>= 0.0.4)
@@ -189,7 +195,7 @@ GEM
189
195
  faraday-retry (2.2.0)
190
196
  faraday (~> 2.0)
191
197
  filesize (0.2.0)
192
- git (1.18.0)
198
+ git (1.19.1)
193
199
  addressable (~> 2.8)
194
200
  rchardet (~> 1.8)
195
201
  hpricot (0.8.6)
@@ -198,29 +204,31 @@ GEM
198
204
  concurrent-ruby (~> 1.0)
199
205
  ice_nine (0.11.2)
200
206
  inifile (3.0.0)
201
- json (2.6.3)
207
+ json (2.7.1)
202
208
  language_server-protocol (3.17.0.3)
203
209
  minitar (0.9)
204
- minitest (5.20.0)
210
+ minitest (5.21.1)
205
211
  multipart-post (2.3.0)
206
212
  net-ssh (4.2.0)
207
- nokogiri (1.15.4-x86_64-linux)
213
+ nokogiri (1.15.5-x86_64-linux)
208
214
  racc (~> 1.4)
209
215
  ofx-parser (1.1.0)
210
216
  hpricot (>= 0.6)
211
217
  os (1.1.4)
212
- parallel (1.23.0)
218
+ parallel (1.24.0)
213
219
  parseconfig (1.1.2)
214
- parser (3.2.2.4)
220
+ parser (3.3.0.4)
215
221
  ast (~> 2.4.1)
216
222
  racc
217
223
  parslet (2.0.0)
218
- public_suffix (5.0.3)
219
- racc (1.7.1)
224
+ pastel (0.8.0)
225
+ tty-color (~> 0.5)
226
+ public_suffix (5.0.4)
227
+ racc (1.7.3)
220
228
  rack (3.0.8)
221
229
  rainbow (3.1.1)
222
230
  rchardet (1.8.0)
223
- regexp_parser (2.8.2)
231
+ regexp_parser (2.9.0)
224
232
  rexml (3.2.6)
225
233
  rspec (3.12.0)
226
234
  rspec-core (~> 3.12.0)
@@ -235,28 +243,29 @@ GEM
235
243
  diff-lcs (>= 1.2.0, < 2.0)
236
244
  rspec-support (~> 3.12.0)
237
245
  rspec-support (3.12.1)
238
- rubocop (1.57.2)
246
+ rubocop (1.60.0)
239
247
  json (~> 2.3)
240
248
  language_server-protocol (>= 3.17.0)
241
249
  parallel (~> 1.10)
242
- parser (>= 3.2.2.4)
250
+ parser (>= 3.3.0.2)
243
251
  rainbow (>= 2.2.2, < 4.0)
244
252
  regexp_parser (>= 1.8, < 3.0)
245
253
  rexml (>= 3.2.5, < 4.0)
246
- rubocop-ast (>= 1.28.1, < 2.0)
254
+ rubocop-ast (>= 1.30.0, < 2.0)
247
255
  ruby-progressbar (~> 1.7)
248
256
  unicode-display_width (>= 2.4.0, < 3.0)
249
257
  rubocop-ast (1.30.0)
250
258
  parser (>= 3.2.1.0)
251
- rubocop-capybara (2.19.0)
259
+ rubocop-capybara (2.20.0)
260
+ rubocop (~> 1.41)
261
+ rubocop-factory_bot (2.25.1)
252
262
  rubocop (~> 1.41)
253
- rubocop-factory_bot (2.24.0)
254
- rubocop (~> 1.33)
255
- rubocop-rails (2.22.1)
263
+ rubocop-rails (2.23.1)
256
264
  activesupport (>= 4.2.0)
257
265
  rack (>= 1.1)
258
266
  rubocop (>= 1.33.0, < 2.0)
259
- rubocop-rspec (2.25.0)
267
+ rubocop-ast (>= 1.30.0, < 2.0)
268
+ rubocop-rspec (2.26.1)
260
269
  rubocop (~> 1.40)
261
270
  rubocop-capybara (~> 2.17)
262
271
  rubocop-factory_bot (~> 2.22)
@@ -268,6 +277,11 @@ GEM
268
277
  childprocess (>= 0.5, < 4.0)
269
278
  rubyzip (>= 1.2.2)
270
279
  srt (0.1.5)
280
+ strings (0.2.1)
281
+ strings-ansi (~> 0.2)
282
+ unicode-display_width (>= 1.5, < 3.0)
283
+ unicode_utils (~> 1.4)
284
+ strings-ansi (0.2.0)
271
285
  taglib-ruby (1.1.3)
272
286
  telegram-bot-ruby (0.23.0)
273
287
  dry-inflector
@@ -275,12 +289,19 @@ GEM
275
289
  faraday-multipart (~> 1.0)
276
290
  virtus (~> 2.0)
277
291
  thread_safe (0.3.6)
292
+ tty-color (0.6.0)
293
+ tty-screen (0.8.2)
294
+ tty-table (0.12.0)
295
+ pastel (~> 0.8)
296
+ strings (~> 0.2.0)
297
+ tty-screen (~> 0.8)
278
298
  tzinfo (2.0.6)
279
299
  concurrent-ruby (~> 1.0)
280
300
  ultimate_lyrics (0.1.3)
281
301
  aranha-parsers (~> 0.10)
282
302
  eac_ruby_utils (~> 0.102, >= 0.102.1)
283
303
  unicode-display_width (2.5.0)
304
+ unicode_utils (1.4.0)
284
305
  virtus (2.0.0)
285
306
  axiom-types (~> 0.1)
286
307
  coercible (~> 1.0)
@@ -292,7 +313,8 @@ PLATFORMS
292
313
  x86_64-linux
293
314
 
294
315
  DEPENDENCIES
295
- eac_ruby_gem_support (~> 0.8, >= 0.8.2)
316
+ eac_cli!
317
+ eac_ruby_gem_support (~> 0.9)
296
318
  ehbrs-tools!
297
319
  ehbrs_ruby_utils!
298
320
 
data/exe/ehbrs CHANGED
@@ -3,4 +3,4 @@
3
3
 
4
4
  $LOAD_PATH.unshift("#{__dir__}/../lib")
5
5
  require 'ehbrs/tools/runner'
6
- ::Ehbrs::Tools::Runner.run
6
+ Ehbrs::Tools::Runner.run
@@ -15,10 +15,7 @@ module Ehbrs
15
15
  private
16
16
 
17
17
  {
18
- '-?' => %w[rar],
19
- '-h' => %w[unzip],
20
- '-version' => %w[ffmpeg],
21
- '--version' => %w[flips tar wit]
18
+ '--version' => %w[flips]
22
19
  }.each do |validate_arg, commands|
23
20
  commands.each do |command|
24
21
  define_method("#{command}_uncached") do
@@ -26,10 +23,6 @@ module Ehbrs
26
23
  end
27
24
  end
28
25
  end
29
-
30
- def sevenzip_uncached
31
- env.executable('7z', '--help')
32
- end
33
26
  end
34
27
  end
35
28
  end
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
- require 'ostruct'
5
4
 
6
5
  module Ehbrs
7
6
  module Observers
@@ -45,12 +44,12 @@ module Ehbrs
45
44
  def check_with_blank_value_add(value, time)
46
45
  return false unless changing_value?(value)
47
46
 
48
- records << ::OpenStruct.new(value: value, time: time)
47
+ records << { value: value, time: time }.to_struct
49
48
  true
50
49
  end
51
50
 
52
51
  def check_with_blank_value_ignore(value, date)
53
- return false if value.blank? ? false : check_with_blank_value_add(value, date)
52
+ false if value.blank? ? false : check_with_blank_value_add(value, date)
54
53
  end
55
54
 
56
55
  def check_with_blank_value_raise(value, date)
@@ -21,7 +21,7 @@ module Ehbrs
21
21
  def load
22
22
  save unless path.exist?
23
23
  data = ::YAML.load_file(path.to_path)
24
- @records = data.fetch(:records).map { |h| ::OpenStruct.new(h) }
24
+ @records = data.fetch(:records).map(&:to_struct)
25
25
  @last_check_time = data.fetch(:last_check_time)
26
26
  end
27
27
 
@@ -45,8 +45,8 @@ module Ehbrs
45
45
 
46
46
  def docker_container_volumes(container)
47
47
  {
48
- ::File.join(ENV.fetch('HOME'), 'Downloads') => '/home/user/Downloads',
49
- ::File.join(ENV.fetch('HOME'), '.Xauthority') => '/home/user/.Xauthority:ro',
48
+ ::File.join(Dir.home, 'Downloads') => '/home/user/Downloads',
49
+ ::File.join(Dir.home, '.Xauthority') => '/home/user/.Xauthority:ro',
50
50
  '/tmp/.X11-unix' => '/tmp/.X11-unix:ro',
51
51
  '/etc/machine-id' => '/etc/machine-id:ro'
52
52
  }.inject(container) { |a, e| a.volume(e[0], e[1]) }
@@ -137,7 +137,7 @@ module Ehbrs
137
137
 
138
138
  def output_line
139
139
  [path.to_s.cyan, last_change_time, last_value, current_value, check_result]
140
- .reject(&:blank?).join('|')
140
+ .compact_blank.join('|')
141
141
  end
142
142
 
143
143
  def check_result
@@ -45,7 +45,7 @@ module Ehbrs
45
45
  def default_output_file
46
46
  ::File.join(
47
47
  ::File.dirname(source_file),
48
- ::File.basename(source_file, '.*') + '_translated.html'
48
+ "#{::File.basename(source_file, '.*')}_translated.html"
49
49
  )
50
50
  end
51
51
 
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'ehbrs/tools/core_ext'
4
- require 'ehbrs_ruby_utils/videos/container'
4
+ require 'ehbrs_ruby_utils/videos/file'
5
5
  require 'ultimate_lyrics/provider'
6
6
 
7
7
  module Ehbrs
@@ -39,7 +39,7 @@ module Ehbrs
39
39
  end
40
40
 
41
41
  def container_uncached
42
- ::EhbrsRubyUtils::Videos::Container.from_file(file)
42
+ ::EhbrsRubyUtils::Videos::File.from_file(file)
43
43
  end
44
44
 
45
45
  def file
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'ehbrs/tools/core_ext'
4
4
  require 'ehbrs_ruby_utils/music/lyrics_book'
5
- require 'ehbrs_ruby_utils/videos/container'
5
+ require 'ehbrs_ruby_utils/videos/file'
6
6
  require 'ultimate_lyrics/provider'
7
7
 
8
8
  module Ehbrs
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ehbrs_ruby_utils/vg/ps2/iso_file'
4
+ require 'eac_ruby_base0/core_ext'
5
+
6
+ module Ehbrs
7
+ module Tools
8
+ class Runner
9
+ class Vg
10
+ class Ps2
11
+ class Rename
12
+ DEFAULT_TRAVERSER_RECURSIVE = true
13
+
14
+ runner_with :help, :filesystem_renamer do
15
+ desc 'Renomeia ISOS de PS2'
16
+ end
17
+
18
+ # @return [void]
19
+ def run
20
+ run_filesystem_renamer
21
+ end
22
+
23
+ private
24
+
25
+ # @return [Class]
26
+ def file_class
27
+ ::EhbrsRubyUtils::Vg::Ps2::IsoFile
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_base0/core_ext'
4
+
5
+ module Ehbrs
6
+ module Tools
7
+ class Runner
8
+ class Vg
9
+ class Ps2
10
+ runner_with :help, :subcommands do
11
+ subcommands
12
+ end
13
+
14
+ require_sub __FILE__
15
+ end
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_cli/core_ext'
4
- require 'ehbrs/videos/extract/package'
4
+ require 'ehbrs_ruby_utils/videos2/extract/package'
5
5
 
6
6
  module Ehbrs
7
7
  module Tools
@@ -32,7 +32,7 @@ module Ehbrs
32
32
 
33
33
  def packages_uncached
34
34
  parsed.packages?.map do |p|
35
- ::Ehbrs::Videos::Extract::Package.new(p, target_dir, qualities)
35
+ ::EhbrsRubyUtils::Videos2::Extract::Package.new(p, target_dir, qualities)
36
36
  end
37
37
  end
38
38
 
@@ -1,6 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
+ require 'ehbrs_ruby_utils/executables'
4
5
 
5
6
  module Ehbrs
6
7
  module Tools
@@ -52,7 +53,7 @@ module Ehbrs
52
53
  end
53
54
 
54
55
  def container_uncached
55
- ::EhbrsRubyUtils::Videos::Container.new(file)
56
+ ::EhbrsRubyUtils::Videos::File.new(file)
56
57
  end
57
58
 
58
59
  def track_label(track)
@@ -100,7 +101,7 @@ module Ehbrs
100
101
  end
101
102
 
102
103
  def extract_tracks_command_uncached
103
- ::Ehbrs::Executables.ffmpeg.command(*extract_tracks_job_args)
104
+ ::EhbrsRubyUtils::Executables.ffmpeg.command(*extract_tracks_job_args)
104
105
  end
105
106
  end
106
107
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  require 'eac_ruby_base0/core_ext'
4
4
  require 'ehbrs/executables'
5
- require 'ehbrs_ruby_utils/videos/container'
5
+ require 'ehbrs_ruby_utils/videos/file'
6
6
  require 'ehbrs_ruby_utils/videos/convert_job'
7
7
 
8
8
  module Ehbrs
@@ -31,7 +31,7 @@ module Ehbrs
31
31
  end
32
32
 
33
33
  def keep_languages
34
- parsed.keep.map(&:strip).reject(&:blank?)
34
+ parsed.keep.map(&:strip).compact_blank
35
35
  end
36
36
 
37
37
  def include_audios?
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'ehbrs_ruby_utils/videos/container'
3
+ require 'ehbrs_ruby_utils/videos/file'
4
4
  require 'eac_ruby_base0/core_ext'
5
5
  require 'eac_ruby_utils/yaml'
6
6
 
@@ -25,7 +25,7 @@ module Ehbrs
25
25
  private
26
26
 
27
27
  def container_file_uncached
28
- ::EhbrsRubyUtils::Videos::Container.new(parsed.file_path)
28
+ ::EhbrsRubyUtils::Videos::File.new(parsed.file_path)
29
29
  end
30
30
  end
31
31
  end