ehbrs-tools 0.43.1 → 0.44.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.
Files changed (79) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +144 -130
  3. data/exe/ehbrs +1 -1
  4. data/lib/ehbrs/google/translate/session.rb +0 -2
  5. data/lib/ehbrs/google/translate.rb +0 -2
  6. data/lib/ehbrs/observers/base.rb +2 -4
  7. data/lib/ehbrs/observers/with_persistence.rb +0 -3
  8. data/lib/ehbrs/self/observers/used_space.rb +0 -2
  9. data/lib/ehbrs/self/observers/with_persistence.rb +0 -3
  10. data/lib/ehbrs/telegram/message_sending.rb +0 -3
  11. data/lib/ehbrs/tools/application.rb +7 -5
  12. data/lib/ehbrs/tools/core_ext.rb +0 -2
  13. data/lib/ehbrs/tools/executables.rb +0 -16
  14. data/lib/ehbrs/tools/instance.rb +0 -3
  15. data/lib/ehbrs/tools/runner/booking/accommodations.rb +0 -3
  16. data/lib/ehbrs/tools/runner/booking.rb +0 -2
  17. data/lib/ehbrs/tools/runner/cooking_book/build.rb +0 -4
  18. data/lib/ehbrs/tools/runner/cooking_book.rb +0 -3
  19. data/lib/ehbrs/tools/runner/finances/bb_browser.rb +0 -3
  20. data/lib/ehbrs/tools/runner/finances.rb +0 -2
  21. data/lib/ehbrs/tools/runner/fs/selected.rb +0 -5
  22. data/lib/ehbrs/tools/runner/fs/used_space.rb +0 -4
  23. data/lib/ehbrs/tools/runner/fs.rb +0 -2
  24. data/lib/ehbrs/tools/runner/google/translate.rb +0 -4
  25. data/lib/ehbrs/tools/runner/google.rb +0 -2
  26. data/lib/ehbrs/tools/runner/music/lyrics.rb +0 -4
  27. data/lib/ehbrs/tools/runner/music/lyrics_book.rb +0 -5
  28. data/lib/ehbrs/tools/runner/music/selected.rb +0 -3
  29. data/lib/ehbrs/tools/runner/music/sort/dump.rb +0 -4
  30. data/lib/ehbrs/tools/runner/music/sort/load.rb +0 -2
  31. data/lib/ehbrs/tools/runner/music/sort/shuffle.rb +0 -3
  32. data/lib/ehbrs/tools/runner/music/sort.rb +0 -3
  33. data/lib/ehbrs/tools/runner/music/spread.rb +0 -4
  34. data/lib/ehbrs/tools/runner/music.rb +0 -2
  35. data/lib/ehbrs/tools/runner/telegram/send_message.rb +0 -3
  36. data/lib/ehbrs/tools/runner/telegram.rb +0 -3
  37. data/lib/ehbrs/tools/runner/vg/patch.rb +2 -7
  38. data/lib/ehbrs/tools/runner/vg/ps2/rename.rb +0 -3
  39. data/lib/ehbrs/tools/runner/vg/ps2.rb +0 -2
  40. data/lib/ehbrs/tools/runner/vg/wii.rb +0 -5
  41. data/lib/ehbrs/tools/runner/vg.rb +0 -2
  42. data/lib/ehbrs/tools/runner/videos/extract.rb +0 -3
  43. data/lib/ehbrs/tools/runner/videos/languages/file_runner.rb +1 -4
  44. data/lib/ehbrs/tools/runner/videos/languages/labelized.rb +0 -2
  45. data/lib/ehbrs/tools/runner/videos/languages/language.rb +0 -3
  46. data/lib/ehbrs/tools/runner/videos/languages/track.rb +0 -3
  47. data/lib/ehbrs/tools/runner/videos/languages.rb +0 -5
  48. data/lib/ehbrs/tools/runner/videos/opensubtitles.rb +0 -3
  49. data/lib/ehbrs/tools/runner/videos/probe.rb +0 -4
  50. data/lib/ehbrs/tools/runner/videos/series/rename.rb +0 -5
  51. data/lib/ehbrs/tools/runner/videos/series.rb +0 -2
  52. data/lib/ehbrs/tools/runner/videos/subtitles/sanitize.rb +0 -3
  53. data/lib/ehbrs/tools/runner/videos/subtitles.rb +0 -2
  54. data/lib/ehbrs/tools/runner/videos/unsupported.rb +0 -5
  55. data/lib/ehbrs/tools/runner/videos.rb +0 -2
  56. data/lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb +0 -4
  57. data/lib/ehbrs/tools/runner/web_utils/finances/bills.rb +0 -2
  58. data/lib/ehbrs/tools/runner/web_utils/finances.rb +0 -2
  59. data/lib/ehbrs/tools/runner/web_utils/videos/download.rb +0 -3
  60. data/lib/ehbrs/tools/runner/web_utils/videos/upload.rb +0 -5
  61. data/lib/ehbrs/tools/runner/web_utils/videos.rb +0 -2
  62. data/lib/ehbrs/tools/runner/web_utils.rb +0 -3
  63. data/lib/ehbrs/tools/runner.rb +1 -7
  64. data/lib/ehbrs/tools/version.rb +1 -1
  65. data/lib/ehbrs/tools.rb +7 -2
  66. data/lib/ehbrs/user_dirs.rb +0 -3
  67. metadata +34 -46
  68. data/lib/ehbrs/google.rb +0 -9
  69. data/lib/ehbrs/music.rb +0 -9
  70. data/lib/ehbrs/observers.rb +0 -11
  71. data/lib/ehbrs/self.rb +0 -9
  72. data/lib/ehbrs/telegram.rb +0 -9
  73. data/lib/ehbrs/tools/vg/patches/applier_factory.rb +0 -43
  74. data/lib/ehbrs/tools/vg/patches/base_applier.rb +0 -37
  75. data/lib/ehbrs/tools/vg/patches/ips_applier.rb +0 -23
  76. data/lib/ehbrs/tools/vg/patches/temp_files.rb +0 -40
  77. data/lib/ehbrs/tools/vg/patches/vcdiff_applier.rb +0 -23
  78. data/lib/ehbrs/tools/vg/patches.rb +0 -13
  79. data/lib/ehbrs/tools/vg.rb +0 -11
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.43.1
4
+ version: 0.44.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: 2024-12-12 00:00:00.000000000 Z
11
+ date: 2025-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-files
@@ -16,68 +16,62 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.8'
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: 0.8.1
19
+ version: '0.9'
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.8'
30
- - - ">="
31
- - !ruby/object:Gem::Version
32
- version: 0.8.1
26
+ version: '0.9'
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: avm-tools
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
31
  - - "~>"
38
32
  - !ruby/object:Gem::Version
39
- version: '0.162'
33
+ version: '0.163'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 0.163.3
40
37
  type: :runtime
41
38
  prerelease: false
42
39
  version_requirements: !ruby/object:Gem::Requirement
43
40
  requirements:
44
41
  - - "~>"
45
42
  - !ruby/object:Gem::Version
46
- version: '0.162'
43
+ version: '0.163'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 0.163.3
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: eac_cli
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.42'
53
+ version: '0.43'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '0.42'
60
+ version: '0.43'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: eac_fs
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '0.18'
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- version: 0.18.1
67
+ version: '0.19'
71
68
  type: :runtime
72
69
  prerelease: false
73
70
  version_requirements: !ruby/object:Gem::Requirement
74
71
  requirements:
75
72
  - - "~>"
76
73
  - !ruby/object:Gem::Version
77
- version: '0.18'
78
- - - ">="
79
- - !ruby/object:Gem::Version
80
- version: 0.18.1
74
+ version: '0.19'
81
75
  - !ruby/object:Gem::Dependency
82
76
  name: eac_ruby_base0
83
77
  requirement: !ruby/object:Gem::Requirement
@@ -85,6 +79,9 @@ dependencies:
85
79
  - - "~>"
86
80
  - !ruby/object:Gem::Version
87
81
  version: '0.19'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 0.19.2
88
85
  type: :runtime
89
86
  prerelease: false
90
87
  version_requirements: !ruby/object:Gem::Requirement
@@ -92,40 +89,43 @@ dependencies:
92
89
  - - "~>"
93
90
  - !ruby/object:Gem::Version
94
91
  version: '0.19'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 0.19.2
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: eac_ruby_utils
97
97
  requirement: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - "~>"
100
100
  - !ruby/object:Gem::Version
101
- version: '0.124'
101
+ version: '0.128'
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 0.128.2
102
105
  type: :runtime
103
106
  prerelease: false
104
107
  version_requirements: !ruby/object:Gem::Requirement
105
108
  requirements:
106
109
  - - "~>"
107
110
  - !ruby/object:Gem::Version
108
- version: '0.124'
111
+ version: '0.128'
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 0.128.2
109
115
  - !ruby/object:Gem::Dependency
110
116
  name: ehbrs_ruby_utils
111
117
  requirement: !ruby/object:Gem::Requirement
112
118
  requirements:
113
119
  - - "~>"
114
120
  - !ruby/object:Gem::Version
115
- version: '0.44'
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: 0.44.3
121
+ version: '0.45'
119
122
  type: :runtime
120
123
  prerelease: false
121
124
  version_requirements: !ruby/object:Gem::Requirement
122
125
  requirements:
123
126
  - - "~>"
124
127
  - !ruby/object:Gem::Version
125
- version: '0.44'
126
- - - ">="
127
- - !ruby/object:Gem::Version
128
- version: 0.44.3
128
+ version: '0.45'
129
129
  - !ruby/object:Gem::Dependency
130
130
  name: filesize
131
131
  requirement: !ruby/object:Gem::Requirement
@@ -180,14 +180,14 @@ dependencies:
180
180
  requirements:
181
181
  - - "~>"
182
182
  - !ruby/object:Gem::Version
183
- version: '0.10'
183
+ version: '0.12'
184
184
  type: :development
185
185
  prerelease: false
186
186
  version_requirements: !ruby/object:Gem::Requirement
187
187
  requirements:
188
188
  - - "~>"
189
189
  - !ruby/object:Gem::Version
190
- version: '0.10'
190
+ version: '0.12'
191
191
  description:
192
192
  email:
193
193
  executables:
@@ -200,17 +200,12 @@ files:
200
200
  - Gemfile.lock
201
201
  - exe/ehbrs
202
202
  - lib/ehbrs.rb
203
- - lib/ehbrs/google.rb
204
203
  - lib/ehbrs/google/translate.rb
205
204
  - lib/ehbrs/google/translate/session.rb
206
- - lib/ehbrs/music.rb
207
- - lib/ehbrs/observers.rb
208
205
  - lib/ehbrs/observers/base.rb
209
206
  - lib/ehbrs/observers/with_persistence.rb
210
- - lib/ehbrs/self.rb
211
207
  - lib/ehbrs/self/observers/used_space.rb
212
208
  - lib/ehbrs/self/observers/with_persistence.rb
213
- - lib/ehbrs/telegram.rb
214
209
  - lib/ehbrs/telegram/message_sending.rb
215
210
  - lib/ehbrs/tools.rb
216
211
  - lib/ehbrs/tools/application.rb
@@ -267,13 +262,6 @@ files:
267
262
  - lib/ehbrs/tools/runner/web_utils/videos/download.rb
268
263
  - lib/ehbrs/tools/runner/web_utils/videos/upload.rb
269
264
  - lib/ehbrs/tools/version.rb
270
- - lib/ehbrs/tools/vg.rb
271
- - lib/ehbrs/tools/vg/patches.rb
272
- - lib/ehbrs/tools/vg/patches/applier_factory.rb
273
- - lib/ehbrs/tools/vg/patches/base_applier.rb
274
- - lib/ehbrs/tools/vg/patches/ips_applier.rb
275
- - lib/ehbrs/tools/vg/patches/temp_files.rb
276
- - lib/ehbrs/tools/vg/patches/vcdiff_applier.rb
277
265
  - lib/ehbrs/user_dirs.rb
278
266
  - template/ehbrs/cooking_book/build/base_page/layout.html.erb
279
267
  - template/ehbrs/cooking_book/build/index_page/inner.html.erb
data/lib/ehbrs/google.rb DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Google
7
- require_sub __FILE__
8
- end
9
- end
data/lib/ehbrs/music.rb DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Music
7
- require_sub __FILE__
8
- end
9
- end
@@ -1,11 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Fs
7
- module Observers
8
- require_sub __FILE__
9
- end
10
- end
11
- end
data/lib/ehbrs/self.rb DELETED
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Self
7
- require_sub __FILE__
8
- end
9
- end
@@ -1,9 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Telegram
7
- require_sub __FILE__
8
- end
9
- end
@@ -1,43 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_fs/core_ext'
4
- require 'ehbrs/tools/vg/patches/ips_applier'
5
- require 'ehbrs/tools/vg/patches/vcdiff_applier'
6
-
7
- module Ehbrs
8
- module Tools
9
- module Vg
10
- module Patches
11
- class ApplierFactory
12
- APPLIERS_BY_TYPE = {
13
- 'IPS patch file' => ::Ehbrs::Tools::Vg::Patches::IpsApplier,
14
- 'VCDIFF binary diff' => ::Ehbrs::Tools::Vg::Patches::VcdiffApplier
15
- }.freeze
16
-
17
- enable_simple_cache
18
- common_constructor :patch_path do
19
- self.patch_path = patch_path.to_pathname
20
- end
21
- delegate :apply, to: :applier_instance
22
-
23
- # @return [String]
24
- def patch_type
25
- patch_path.info.description
26
- end
27
-
28
- protected
29
-
30
- # @return [Class]
31
- def applier_class_uncached
32
- APPLIERS_BY_TYPE.fetch(patch_type)
33
- end
34
-
35
- # @return [Object]
36
- def applier_instance_uncached
37
- applier_class.new(patch_path)
38
- end
39
- end
40
- end
41
- end
42
- end
43
- end
@@ -1,37 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Tools
7
- module Vg
8
- module Patches
9
- class BaseApplier
10
- acts_as_abstract
11
- common_constructor :patch_path
12
-
13
- # @param source_path [Pathname]
14
- # @param output_path [Pathname]
15
- # @raise [RuntimeError] Se o arquivo de saída não é criado.
16
- def apply(source_path, output_path)
17
- source_path = source_path.to_pathname
18
- output_path = output_path.to_pathname
19
- command(source_path, output_path).system!
20
-
21
- return if output_path.exist?
22
-
23
- fatal_error("Applier returned without error, but output file \"#{output_path}\"" \
24
- 'does not exist')
25
- end
26
-
27
- # @param source_path [Pathname]
28
- # @param output_path [Pathname]
29
- # @return [EacRubyUtils::Envs::Command]
30
- def command(source_path, output_path)
31
- raise_abstract_method __method__, source_path, output_path
32
- end
33
- end
34
- end
35
- end
36
- end
37
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'ehbrs/tools/executables'
5
- require 'ehbrs/tools/vg/patches/base_applier'
6
-
7
- module Ehbrs
8
- module Tools
9
- module Vg
10
- module Patches
11
- class IpsApplier < ::Ehbrs::Tools::Vg::Patches::BaseApplier
12
- # @param source_path [Pathname]
13
- # @param output_path [Pathname]
14
- # @return [EacRubyUtils::Envs::Command]
15
- def command(source_path, output_path)
16
- ::Ehbrs::Tools::Executables.flips.command
17
- .append(['--apply', patch_path, source_path, output_path])
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,40 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Tools
7
- module Vg
8
- module Patches
9
- class TempFiles
10
- common_constructor :initial, :temp0, :temp1
11
-
12
- def input
13
- swaped? ? temp0 : initial
14
- end
15
-
16
- def move_result_to(dest)
17
- return unless swaped?
18
-
19
- ::FileUtils.mv(temp0.to_path, dest.to_path)
20
- end
21
-
22
- def output
23
- temp1
24
- end
25
-
26
- def swap
27
- temp0_current = temp0
28
- self.temp0 = temp1
29
- self.temp1 = temp0_current
30
- @swaped = true
31
- end
32
-
33
- def swaped?
34
- @swaped ? true : false
35
- end
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'ehbrs/tools/executables'
5
- require 'ehbrs/tools/vg/patches/base_applier'
6
-
7
- module Ehbrs
8
- module Tools
9
- module Vg
10
- module Patches
11
- class VcdiffApplier < ::Ehbrs::Tools::Vg::Patches::BaseApplier
12
- # @param source_path [Pathname]
13
- # @param output_path [Pathname]
14
- # @return [EacRubyUtils::Envs::Command]
15
- def command(source_path, output_path)
16
- ::Ehbrs::Tools::Executables.xdelta3.command
17
- .append(['-d', '-s', source_path, patch_path, output_path])
18
- end
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
-
5
- module Ehbrs
6
- module Tools
7
- module Vg
8
- module Patches
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 Tools
7
- module Vg
8
- require_sub __FILE__
9
- end
10
- end
11
- end