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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a51803bc2fc98c7439c7e0e8808e00866d7130f898e1f9738c1c9f1483b326aa
4
- data.tar.gz: a4146dc9718ed5356187a725e1537895c679301ca63d67619f9f3edaa8374223
3
+ metadata.gz: '0365428616b36993e94133bfda1881b65c61c70bd8cc2ae01ec04519f526aa90'
4
+ data.tar.gz: 7e78ef2db711de57520a6972d866a12dd1bda77f9005afde8cbd00205f0400fd
5
5
  SHA512:
6
- metadata.gz: 91760450578b621f60892d253f686ee1c5f8662c70a0177bace04b9f3cead3b4148999f0c8b7492f0de473be71e15e52e79d58957fd7fbcc04f59c939105e7ae
7
- data.tar.gz: 2b9b4af1d0b6a47e99930adc678487721da804b6978d23700d5c33f2cdb04bf5757401c598c4ddc06212309c2bb3ac68bded943aaf4365a618bc169e4217ddac
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.0'
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
@@ -10,7 +10,7 @@ module EhbrsRubyUtils
10
10
  attr_reader :name, :children
11
11
 
12
12
  def initialize(name, files)
13
- super
13
+ super()
14
14
  @name = name
15
15
  @children = build_children(files)
16
16
  end
@@ -10,7 +10,7 @@ module EhbrsRubyUtils
10
10
  attr_reader :season, :files
11
11
 
12
12
  def initialize(season, files)
13
- super
13
+ super()
14
14
  @season = season
15
15
  @files = files.sort_by { |f| [f.episode] }
16
16
  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.36.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-10-30 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