ehbrs_ruby_utils 0.36.0 → 0.37.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ehbrs_ruby_utils/executables.rb +9 -1
- data/lib/ehbrs_ruby_utils/fs/compressed_package.rb +5 -4
- data/lib/ehbrs_ruby_utils/version.rb +1 -1
- data/lib/ehbrs_ruby_utils/vg/wii/file_move.rb +3 -3
- data/lib/ehbrs_ruby_utils/vg/wii/game_file.rb +2 -1
- data/lib/ehbrs_ruby_utils/vg/wii/wit/image_format.rb +2 -2
- data/lib/ehbrs_ruby_utils/vg/wii/wit/parsers/info.rb +0 -2
- data/lib/ehbrs_ruby_utils/videos/series/rename/line_result_group.rb +1 -1
- data/lib/ehbrs_ruby_utils/videos/series/rename/season_group.rb +1 -1
- metadata +18 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0365428616b36993e94133bfda1881b65c61c70bd8cc2ae01ec04519f526aa90'
|
4
|
+
data.tar.gz: 7e78ef2db711de57520a6972d866a12dd1bda77f9005afde8cbd00205f0400fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99b4c9666e6ffc6354ceb8844f00cbbde6589babd2e2510b3b79532ac2ca11c7fa1e33e922981dd84350e07b60bdb5404e24de20205bda44cb6c9f8cbe51e24d
|
7
|
+
data.tar.gz: 49319dd7d128cbf917be5b8a0b8fcbf466b12a557a90d68f8c5d835bc1cee1a1691d4c3259520cfcb37791f6d763dae85b670aaae34120075aa1b451eb09da13
|
@@ -15,7 +15,9 @@ module EhbrsRubyUtils
|
|
15
15
|
private
|
16
16
|
|
17
17
|
{
|
18
|
-
'
|
18
|
+
'-?' => %w[rar],
|
19
|
+
'-h' => %w[unzip],
|
20
|
+
'-version' => %w[ffmpeg ffprobe tar wit]
|
19
21
|
}.each do |validate_arg, commands|
|
20
22
|
commands.each do |command|
|
21
23
|
define_method("#{command}_uncached") do
|
@@ -28,6 +30,12 @@ module EhbrsRubyUtils
|
|
28
30
|
def mudslide_uncached
|
29
31
|
env.executable('mudslide', exec_args: %w[npx mudslide@latest], check_args: %w[--version])
|
30
32
|
end
|
33
|
+
|
34
|
+
# !method sevenzip
|
35
|
+
# @return [EacRubyUtils::Envs::Executable]
|
36
|
+
def sevenzip_uncached
|
37
|
+
env.executable('7z', '--help')
|
38
|
+
end
|
31
39
|
end
|
32
40
|
end
|
33
41
|
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'eac_fs/file_info'
|
4
4
|
require 'eac_ruby_utils/core_ext'
|
5
|
+
require 'ehbrs_ruby_utils/executables'
|
5
6
|
|
6
7
|
module EhbrsRubyUtils
|
7
8
|
module Fs
|
@@ -29,19 +30,19 @@ module EhbrsRubyUtils
|
|
29
30
|
end
|
30
31
|
|
31
32
|
def sevenzip_extract_command(target_dir)
|
32
|
-
::
|
33
|
+
::EhbrsRubyUtils::Executables.sevenzip.command('x', path, '-o', target_dir)
|
33
34
|
end
|
34
35
|
|
35
36
|
def tar_extract_command(target_dir)
|
36
|
-
::
|
37
|
+
::EhbrsRubyUtils::Executables.tar.command('-xf', path, '-C', target_dir)
|
37
38
|
end
|
38
39
|
|
39
40
|
def rar_extract_command(target_dir)
|
40
|
-
::
|
41
|
+
::EhbrsRubyUtils::Executables.rar.command('x', path.expand_path).chdir(target_dir)
|
41
42
|
end
|
42
43
|
|
43
44
|
def zip_extract_command(target_dir)
|
44
|
-
::
|
45
|
+
::EhbrsRubyUtils::Executables.unzip.command(path, '-d', target_dir)
|
45
46
|
end
|
46
47
|
end
|
47
48
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'eac_ruby_utils/core_ext'
|
4
|
-
require '
|
4
|
+
require 'ehbrs_ruby_utils/executables'
|
5
5
|
require 'ehbrs_ruby_utils/vg/wii/wit/image_format'
|
6
6
|
require 'ehbrs_ruby_utils/vg/wii/wit/path'
|
7
7
|
require 'fileutils'
|
@@ -47,7 +47,7 @@ module EhbrsRubyUtils
|
|
47
47
|
end
|
48
48
|
|
49
49
|
def change_path_and_type
|
50
|
-
::
|
50
|
+
::EhbrsRubyUtils::Executables.wit.command
|
51
51
|
.append(change_path_and_type_args)
|
52
52
|
.system!
|
53
53
|
check_target
|
@@ -61,7 +61,7 @@ module EhbrsRubyUtils
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def change_type
|
64
|
-
::
|
64
|
+
::EhbrsRubyUtils::Executables.wit.command
|
65
65
|
.append(change_type_args)
|
66
66
|
.system!
|
67
67
|
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'eac_ruby_utils/core_ext'
|
4
4
|
require 'eac_ruby_utils/custom_format'
|
5
|
+
require 'ehbrs_ruby_utils/executables'
|
5
6
|
require 'ehbrs_ruby_utils/vg/wii/wit/parsers/dump'
|
6
7
|
require 'ehbrs_ruby_utils/vg/wii/wit/path'
|
7
8
|
require 'pathname'
|
@@ -76,7 +77,7 @@ module EhbrsRubyUtils
|
|
76
77
|
private
|
77
78
|
|
78
79
|
def properties_uncached
|
79
|
-
r = ::
|
80
|
+
r = ::EhbrsRubyUtils::Executables.wit.command.append(['dump', to_s]).execute
|
80
81
|
return nil unless r.fetch(:exit_code).zero?
|
81
82
|
|
82
83
|
::EhbrsRubyUtils::Vg::Wii::Wit::Parsers::Dump.new(r.fetch(:stdout)).properties
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'eac_ruby_utils/core_ext'
|
4
|
-
require '
|
4
|
+
require 'ehbrs_ruby_utils/executables'
|
5
5
|
require 'ehbrs_ruby_utils/vg/wii/wit/parsers/info'
|
6
6
|
|
7
7
|
module EhbrsRubyUtils
|
@@ -33,7 +33,7 @@ module EhbrsRubyUtils
|
|
33
33
|
end
|
34
34
|
|
35
35
|
def info_output
|
36
|
-
::
|
36
|
+
::EhbrsRubyUtils::Executables.wit.command
|
37
37
|
.append(%w[info image-format --sections])
|
38
38
|
.execute!
|
39
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ehbrs_ruby_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.37.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eduardo H. Bogoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aranha
|
@@ -64,14 +64,14 @@ dependencies:
|
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '0.
|
67
|
+
version: '0.81'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '0.
|
74
|
+
version: '0.81'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: dentaku
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
@@ -154,6 +154,20 @@ dependencies:
|
|
154
154
|
- - "~>"
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0.5'
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: inifile
|
159
|
+
requirement: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - "~>"
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '3.0'
|
164
|
+
type: :runtime
|
165
|
+
prerelease: false
|
166
|
+
version_requirements: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - "~>"
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '3.0'
|
157
171
|
- !ruby/object:Gem::Dependency
|
158
172
|
name: srt
|
159
173
|
requirement: !ruby/object:Gem::Requirement
|