ehbrs_ruby_utils 0.36.1 → 0.37.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: 50cae2381085d9ecdd71d98619b6c8cb7927ee977c1d856d604edddd56ccb39a
4
- data.tar.gz: 9ef89d0c3e2927f842c4f8d18e597470fb1452ae28b9d1efc975544375eb6761
3
+ metadata.gz: '0365428616b36993e94133bfda1881b65c61c70bd8cc2ae01ec04519f526aa90'
4
+ data.tar.gz: 7e78ef2db711de57520a6972d866a12dd1bda77f9005afde8cbd00205f0400fd
5
5
  SHA512:
6
- metadata.gz: b3cc8c03801f13eb8a7a4e729fe8a67d13102e667fe98c8997f1f71ad1d44e4621f59204a992fe0072b144e0f0b1b8400fc889550cd452cd5f2624f91329fb5d
7
- data.tar.gz: 3a965527bef8c654a67ce2f05b24ad40d6ef8ed4da58aa86543c591685c84e66871e874a5e92f6ab4288271db23befb46390dde3058a9bbb03175d5117956b84
6
+ metadata.gz: 99b4c9666e6ffc6354ceb8844f00cbbde6589babd2e2510b3b79532ac2ca11c7fa1e33e922981dd84350e07b60bdb5404e24de20205bda44cb6c9f8cbe51e24d
7
+ data.tar.gz: 49319dd7d128cbf917be5b8a0b8fcbf466b12a557a90d68f8c5d835bc1cee1a1691d4c3259520cfcb37791f6d763dae85b670aaae34120075aa1b451eb09da13
@@ -15,7 +15,9 @@ module EhbrsRubyUtils
15
15
  private
16
16
 
17
17
  {
18
- '-version' => %w[ffmpeg ffprobe]
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
- ::Ehbrs::Executables.sevenzip.command('x', path, '-o', target_dir)
33
+ ::EhbrsRubyUtils::Executables.sevenzip.command('x', path, '-o', target_dir)
33
34
  end
34
35
 
35
36
  def tar_extract_command(target_dir)
36
- ::Ehbrs::Executables.tar.command('-xf', path, '-C', target_dir)
37
+ ::EhbrsRubyUtils::Executables.tar.command('-xf', path, '-C', target_dir)
37
38
  end
38
39
 
39
40
  def rar_extract_command(target_dir)
40
- ::Ehbrs::Executables.rar.command('x', path.expand_path).chdir(target_dir)
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
- ::Ehbrs::Executables.unzip.command(path, '-d', target_dir)
45
+ ::EhbrsRubyUtils::Executables.unzip.command(path, '-d', target_dir)
45
46
  end
46
47
  end
47
48
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EhbrsRubyUtils
4
- VERSION = '0.36.1'
4
+ VERSION = '0.37.0'
5
5
  end
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
- require 'ehbrs/executables'
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
- ::Ehbrs::Executables.wit.command
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
- ::Ehbrs::Executables.wit.command
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 = ::Ehbrs::Executables.wit.command.append(['dump', to_s]).execute
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 'ehbrs/executables'
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
- ::Ehbrs::Executables.wit.command
36
+ ::EhbrsRubyUtils::Executables.wit.command
37
37
  .append(%w[info image-format --sections])
38
38
  .execute!
39
39
  end
@@ -1,8 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'eac_ruby_utils/core_ext'
4
- require 'ehbrs/executables'
5
- require 'fileutils'
6
4
  require 'inifile'
7
5
 
8
6
  module EhbrsRubyUtils
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.36.1
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-10-31 00:00:00.000000000 Z
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.80'
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.80'
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