ehbrs-tools 0.43.0 → 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.
- checksums.yaml +4 -4
- data/Gemfile.lock +166 -152
- data/exe/ehbrs +1 -1
- data/lib/ehbrs/google/translate/session.rb +0 -2
- data/lib/ehbrs/google/translate.rb +0 -2
- data/lib/ehbrs/observers/base.rb +2 -4
- data/lib/ehbrs/observers/with_persistence.rb +0 -3
- data/lib/ehbrs/self/observers/used_space.rb +0 -2
- data/lib/ehbrs/self/observers/with_persistence.rb +0 -3
- data/lib/ehbrs/telegram/message_sending.rb +0 -3
- data/lib/ehbrs/tools/application.rb +7 -5
- data/lib/ehbrs/tools/core_ext.rb +0 -2
- data/lib/ehbrs/tools/executables.rb +0 -16
- data/lib/ehbrs/tools/instance.rb +0 -3
- data/lib/ehbrs/tools/runner/booking/accommodations.rb +0 -3
- data/lib/ehbrs/tools/runner/booking.rb +0 -2
- data/lib/ehbrs/tools/runner/cooking_book/build.rb +0 -4
- data/lib/ehbrs/tools/runner/cooking_book.rb +0 -3
- data/lib/ehbrs/tools/runner/finances/bb_browser.rb +0 -3
- data/lib/ehbrs/tools/runner/finances.rb +0 -2
- data/lib/ehbrs/tools/runner/fs/selected.rb +0 -5
- data/lib/ehbrs/tools/runner/fs/used_space.rb +0 -4
- data/lib/ehbrs/tools/runner/fs.rb +0 -2
- data/lib/ehbrs/tools/runner/google/translate.rb +0 -4
- data/lib/ehbrs/tools/runner/google.rb +0 -2
- data/lib/ehbrs/tools/runner/music/lyrics.rb +0 -4
- data/lib/ehbrs/tools/runner/music/lyrics_book.rb +0 -5
- data/lib/ehbrs/tools/runner/music/selected.rb +0 -3
- data/lib/ehbrs/tools/runner/music/sort/dump.rb +0 -4
- data/lib/ehbrs/tools/runner/music/sort/load.rb +0 -2
- data/lib/ehbrs/tools/runner/music/sort/shuffle.rb +0 -3
- data/lib/ehbrs/tools/runner/music/sort.rb +0 -3
- data/lib/ehbrs/tools/runner/music/spread.rb +0 -4
- data/lib/ehbrs/tools/runner/music.rb +0 -2
- data/lib/ehbrs/tools/runner/telegram/send_message.rb +0 -3
- data/lib/ehbrs/tools/runner/telegram.rb +0 -3
- data/lib/ehbrs/tools/runner/vg/patch.rb +2 -7
- data/lib/ehbrs/tools/runner/vg/ps2/rename.rb +0 -3
- data/lib/ehbrs/tools/runner/vg/ps2.rb +0 -2
- data/lib/ehbrs/tools/runner/vg/wii.rb +0 -5
- data/lib/ehbrs/tools/runner/vg.rb +0 -2
- data/lib/ehbrs/tools/runner/videos/extract.rb +0 -3
- data/lib/ehbrs/tools/runner/videos/languages/file_runner.rb +1 -4
- data/lib/ehbrs/tools/runner/videos/languages/labelized.rb +0 -2
- data/lib/ehbrs/tools/runner/videos/languages/language.rb +0 -3
- data/lib/ehbrs/tools/runner/videos/languages/track.rb +0 -3
- data/lib/ehbrs/tools/runner/videos/languages.rb +0 -5
- data/lib/ehbrs/tools/runner/videos/opensubtitles.rb +0 -3
- data/lib/ehbrs/tools/runner/videos/probe.rb +0 -4
- data/lib/ehbrs/tools/runner/videos/series/rename.rb +0 -5
- data/lib/ehbrs/tools/runner/videos/series.rb +0 -2
- data/lib/ehbrs/tools/runner/videos/subtitles/sanitize.rb +0 -3
- data/lib/ehbrs/tools/runner/videos/subtitles.rb +0 -2
- data/lib/ehbrs/tools/runner/videos/unsupported.rb +0 -5
- data/lib/ehbrs/tools/runner/videos.rb +0 -2
- data/lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb +0 -4
- data/lib/ehbrs/tools/runner/web_utils/finances/bills.rb +0 -2
- data/lib/ehbrs/tools/runner/web_utils/finances.rb +0 -2
- data/lib/ehbrs/tools/runner/web_utils/videos/download.rb +0 -3
- data/lib/ehbrs/tools/runner/web_utils/videos/upload.rb +0 -5
- data/lib/ehbrs/tools/runner/web_utils/videos.rb +0 -2
- data/lib/ehbrs/tools/runner/web_utils.rb +0 -3
- data/lib/ehbrs/tools/runner.rb +1 -7
- data/lib/ehbrs/tools/version.rb +1 -1
- data/lib/ehbrs/tools.rb +7 -2
- data/lib/ehbrs/user_dirs.rb +0 -3
- metadata +34 -28
- data/lib/ehbrs/google.rb +0 -9
- data/lib/ehbrs/music.rb +0 -9
- data/lib/ehbrs/observers.rb +0 -11
- data/lib/ehbrs/self.rb +0 -9
- data/lib/ehbrs/telegram.rb +0 -9
- data/lib/ehbrs/tools/vg/patches/applier_factory.rb +0 -43
- data/lib/ehbrs/tools/vg/patches/base_applier.rb +0 -37
- data/lib/ehbrs/tools/vg/patches/ips_applier.rb +0 -23
- data/lib/ehbrs/tools/vg/patches/temp_files.rb +0 -40
- data/lib/ehbrs/tools/vg/patches/vcdiff_applier.rb +0 -23
- data/lib/ehbrs/tools/vg/patches.rb +0 -13
- 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.
|
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:
|
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,56 +16,62 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.9'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
26
|
+
version: '0.9'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: avm-tools
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0.
|
33
|
+
version: '0.163'
|
34
|
+
- - ">="
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: 0.163.3
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
41
|
- - "~>"
|
39
42
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0.
|
43
|
+
version: '0.163'
|
44
|
+
- - ">="
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.163.3
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: eac_cli
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
53
|
+
version: '0.43'
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
60
|
+
version: '0.43'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: eac_fs
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
65
|
- - "~>"
|
60
66
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
67
|
+
version: '0.19'
|
62
68
|
type: :runtime
|
63
69
|
prerelease: false
|
64
70
|
version_requirements: !ruby/object:Gem::Requirement
|
65
71
|
requirements:
|
66
72
|
- - "~>"
|
67
73
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
74
|
+
version: '0.19'
|
69
75
|
- !ruby/object:Gem::Dependency
|
70
76
|
name: eac_ruby_base0
|
71
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -73,6 +79,9 @@ dependencies:
|
|
73
79
|
- - "~>"
|
74
80
|
- !ruby/object:Gem::Version
|
75
81
|
version: '0.19'
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.19.2
|
76
85
|
type: :runtime
|
77
86
|
prerelease: false
|
78
87
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -80,34 +89,43 @@ dependencies:
|
|
80
89
|
- - "~>"
|
81
90
|
- !ruby/object:Gem::Version
|
82
91
|
version: '0.19'
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.19.2
|
83
95
|
- !ruby/object:Gem::Dependency
|
84
96
|
name: eac_ruby_utils
|
85
97
|
requirement: !ruby/object:Gem::Requirement
|
86
98
|
requirements:
|
87
99
|
- - "~>"
|
88
100
|
- !ruby/object:Gem::Version
|
89
|
-
version: '0.
|
101
|
+
version: '0.128'
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 0.128.2
|
90
105
|
type: :runtime
|
91
106
|
prerelease: false
|
92
107
|
version_requirements: !ruby/object:Gem::Requirement
|
93
108
|
requirements:
|
94
109
|
- - "~>"
|
95
110
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0.
|
111
|
+
version: '0.128'
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: 0.128.2
|
97
115
|
- !ruby/object:Gem::Dependency
|
98
116
|
name: ehbrs_ruby_utils
|
99
117
|
requirement: !ruby/object:Gem::Requirement
|
100
118
|
requirements:
|
101
119
|
- - "~>"
|
102
120
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
121
|
+
version: '0.45'
|
104
122
|
type: :runtime
|
105
123
|
prerelease: false
|
106
124
|
version_requirements: !ruby/object:Gem::Requirement
|
107
125
|
requirements:
|
108
126
|
- - "~>"
|
109
127
|
- !ruby/object:Gem::Version
|
110
|
-
version: '0.
|
128
|
+
version: '0.45'
|
111
129
|
- !ruby/object:Gem::Dependency
|
112
130
|
name: filesize
|
113
131
|
requirement: !ruby/object:Gem::Requirement
|
@@ -162,14 +180,14 @@ dependencies:
|
|
162
180
|
requirements:
|
163
181
|
- - "~>"
|
164
182
|
- !ruby/object:Gem::Version
|
165
|
-
version: '0.
|
183
|
+
version: '0.12'
|
166
184
|
type: :development
|
167
185
|
prerelease: false
|
168
186
|
version_requirements: !ruby/object:Gem::Requirement
|
169
187
|
requirements:
|
170
188
|
- - "~>"
|
171
189
|
- !ruby/object:Gem::Version
|
172
|
-
version: '0.
|
190
|
+
version: '0.12'
|
173
191
|
description:
|
174
192
|
email:
|
175
193
|
executables:
|
@@ -182,17 +200,12 @@ files:
|
|
182
200
|
- Gemfile.lock
|
183
201
|
- exe/ehbrs
|
184
202
|
- lib/ehbrs.rb
|
185
|
-
- lib/ehbrs/google.rb
|
186
203
|
- lib/ehbrs/google/translate.rb
|
187
204
|
- lib/ehbrs/google/translate/session.rb
|
188
|
-
- lib/ehbrs/music.rb
|
189
|
-
- lib/ehbrs/observers.rb
|
190
205
|
- lib/ehbrs/observers/base.rb
|
191
206
|
- lib/ehbrs/observers/with_persistence.rb
|
192
|
-
- lib/ehbrs/self.rb
|
193
207
|
- lib/ehbrs/self/observers/used_space.rb
|
194
208
|
- lib/ehbrs/self/observers/with_persistence.rb
|
195
|
-
- lib/ehbrs/telegram.rb
|
196
209
|
- lib/ehbrs/telegram/message_sending.rb
|
197
210
|
- lib/ehbrs/tools.rb
|
198
211
|
- lib/ehbrs/tools/application.rb
|
@@ -249,13 +262,6 @@ files:
|
|
249
262
|
- lib/ehbrs/tools/runner/web_utils/videos/download.rb
|
250
263
|
- lib/ehbrs/tools/runner/web_utils/videos/upload.rb
|
251
264
|
- lib/ehbrs/tools/version.rb
|
252
|
-
- lib/ehbrs/tools/vg.rb
|
253
|
-
- lib/ehbrs/tools/vg/patches.rb
|
254
|
-
- lib/ehbrs/tools/vg/patches/applier_factory.rb
|
255
|
-
- lib/ehbrs/tools/vg/patches/base_applier.rb
|
256
|
-
- lib/ehbrs/tools/vg/patches/ips_applier.rb
|
257
|
-
- lib/ehbrs/tools/vg/patches/temp_files.rb
|
258
|
-
- lib/ehbrs/tools/vg/patches/vcdiff_applier.rb
|
259
265
|
- lib/ehbrs/user_dirs.rb
|
260
266
|
- template/ehbrs/cooking_book/build/base_page/layout.html.erb
|
261
267
|
- template/ehbrs/cooking_book/build/index_page/inner.html.erb
|
data/lib/ehbrs/google.rb
DELETED
data/lib/ehbrs/music.rb
DELETED
data/lib/ehbrs/observers.rb
DELETED
data/lib/ehbrs/self.rb
DELETED
data/lib/ehbrs/telegram.rb
DELETED
@@ -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
|