ehbrs-tools 0.16.0 → 0.16.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ehbrs/runner/videos/probe.rb +3 -3
  3. data/lib/ehbrs/tools/version.rb +1 -1
  4. data/lib/ehbrs/vg/wii/wit/parsers/dump.rb +10 -5
  5. data/lib/ehbrs/videos/file.rb +4 -8
  6. data/lib/ehbrs/videos/track.rb +5 -13
  7. data/lib/ehbrs/videos/unsupported/checks/codec_extra_unlisted.rb +3 -1
  8. data/lib/ehbrs/videos/unsupported/checks/codec_extra_unsupported.rb +3 -1
  9. data/lib/ehbrs/videos/unsupported/checks/codec_unlisted.rb +4 -2
  10. data/lib/ehbrs/videos/unsupported/checks/codec_unsupported.rb +3 -1
  11. data/lib/ehbrs/videos/unsupported/checks/invalid_extension.rb +2 -0
  12. data/lib/ehbrs/videos/unsupported/fix_profile.rb +0 -13
  13. data/lib/ehbrs/videos/unsupported/fixes/supported_codec.rb +10 -10
  14. data/lib/ehbrs/videos/unsupported/profiles/base.rb +17 -3
  15. data/lib/ehbrs/videos/unsupported/profiles/philco.rb +5 -4
  16. data/vendor/aranha-parsers/Gemfile +5 -0
  17. data/vendor/aranha-parsers/aranha-parsers.gemspec +23 -0
  18. data/vendor/aranha-parsers/lib/aranha/parsers.rb +9 -0
  19. data/vendor/aranha-parsers/lib/aranha/parsers/base.rb +79 -0
  20. data/vendor/aranha-parsers/lib/aranha/parsers/html.rb +11 -0
  21. data/vendor/aranha-parsers/lib/aranha/parsers/html/base.rb +47 -0
  22. data/vendor/aranha-parsers/lib/aranha/parsers/html/item.rb +24 -0
  23. data/vendor/aranha-parsers/lib/aranha/parsers/html/item_list.rb +29 -0
  24. data/vendor/aranha-parsers/lib/aranha/parsers/html/node.rb +13 -0
  25. data/vendor/aranha-parsers/lib/aranha/parsers/html/node/base.rb +36 -0
  26. data/vendor/aranha-parsers/lib/aranha/parsers/html/node/default.rb +126 -0
  27. data/vendor/aranha-parsers/lib/aranha/parsers/invalid_state_exception.rb +8 -0
  28. data/vendor/aranha-parsers/lib/aranha/parsers/patches.rb +11 -0
  29. data/vendor/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb +38 -0
  30. data/vendor/aranha-parsers/lib/aranha/parsers/source_address.rb +55 -0
  31. data/vendor/aranha-parsers/lib/aranha/parsers/source_address/file.rb +31 -0
  32. data/vendor/aranha-parsers/lib/aranha/parsers/source_address/hash_http_get.rb +25 -0
  33. data/vendor/aranha-parsers/lib/aranha/parsers/source_address/hash_http_post.rb +45 -0
  34. data/vendor/aranha-parsers/lib/aranha/parsers/source_address/http_get.rb +49 -0
  35. data/vendor/aranha-parsers/lib/aranha/parsers/source_target_fixtures.rb +77 -0
  36. data/vendor/aranha-parsers/lib/aranha/parsers/spec/source_target_fixtures_example.rb +78 -0
  37. data/vendor/aranha-parsers/lib/aranha/parsers/version.rb +7 -0
  38. data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_address/http_get_spec.rb +21 -0
  39. data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_address_spec.rb +74 -0
  40. data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec.rb +27 -0
  41. data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub1.source.txt +1 -0
  42. data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub1.target.html +1 -0
  43. data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub2.source.html +1 -0
  44. data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub3.target.yaml +1 -0
  45. data/vendor/aranha-parsers/spec/lib/rubocop_check_spec.rb +7 -0
  46. data/vendor/aranha-parsers/spec/spec_helper.rb +8 -0
  47. data/vendor/eac_cli/eac_cli.gemspec +1 -1
  48. data/vendor/eac_cli/lib/eac_cli/definition.rb +36 -31
  49. data/vendor/eac_cli/lib/eac_cli/definition/alternative.rb +83 -0
  50. data/vendor/eac_cli/lib/eac_cli/definition/help_formatter.rb +76 -0
  51. data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +15 -2
  52. data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb +18 -40
  53. data/vendor/eac_cli/lib/eac_cli/docopt/doc_builder/alternative.rb +50 -0
  54. data/vendor/eac_cli/lib/eac_cli/parser.rb +23 -3
  55. data/vendor/eac_cli/lib/eac_cli/parser/alternative.rb +92 -0
  56. data/vendor/eac_cli/lib/eac_cli/parser/alternative/argv.rb +17 -0
  57. data/vendor/eac_cli/lib/eac_cli/parser/alternative/double_dash.rb +24 -0
  58. data/vendor/eac_cli/lib/eac_cli/parser/alternative/options.rb +58 -0
  59. data/vendor/eac_cli/lib/eac_cli/parser/alternative/positionals.rb +30 -0
  60. data/vendor/eac_cli/lib/eac_cli/runner.rb +12 -4
  61. data/vendor/eac_cli/lib/eac_cli/runner/exit.rb +13 -0
  62. data/vendor/eac_cli/lib/eac_cli/runner_with/help.rb +18 -1
  63. data/vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb +5 -1
  64. data/vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb +6 -1
  65. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  66. data/vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb +14 -0
  67. data/vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb +10 -0
  68. data/vendor/eac_cli/spec/lib/eac_cli/parser/alternative_spec.rb +140 -0
  69. data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +17 -5
  70. data/vendor/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb +42 -0
  71. data/vendor/eac_cli/spec/lib/eac_cli/runner_with/output_file_spec.rb +53 -0
  72. data/vendor/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb +29 -1
  73. data/vendor/eac_docker/lib/eac_docker/container.rb +24 -0
  74. data/vendor/eac_docker/lib/eac_docker/images/coded.rb +39 -0
  75. data/vendor/eac_docker/lib/eac_docker/images/templatized.rb +26 -0
  76. data/vendor/eac_docker/lib/eac_docker/registry.rb +17 -0
  77. data/vendor/eac_docker/lib/eac_docker/version.rb +1 -1
  78. data/vendor/eac_docker/spec/lib/eac_docker/images/coded_spec.rb +12 -0
  79. data/vendor/eac_docker/spec/lib/eac_docker/images/coded_spec_files/image1/Dockerfile +1 -0
  80. data/vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec.rb +17 -0
  81. data/vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec_files/stub_docker_image/Dockerfile +1 -0
  82. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb +60 -0
  83. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +2 -50
  84. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb +52 -0
  85. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb +31 -0
  86. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb +53 -0
  87. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb +4 -69
  88. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/entry_reader.rb +81 -0
  89. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/password_entry_reader.rb +18 -0
  90. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/read_entry_options.rb +7 -2
  91. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/store_passwords_entry_reader.rb +27 -0
  92. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb +4 -6
  93. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/concat.rb +33 -0
  94. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/envvars.rb +24 -0
  95. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb +0 -21
  96. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb +10 -0
  97. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb +17 -0
  98. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb +2 -2
  99. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +7 -1
  100. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  101. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb +3 -2
  102. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/abstract_methods_spec.rb +28 -0
  103. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb +30 -17
  104. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb +66 -8
  105. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +12 -1
  106. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/version.rb +1 -1
  107. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container.rb +30 -2
  108. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/convert_job.rb +91 -0
  109. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/stream.rb +51 -0
  110. metadata +92 -13
  111. data/vendor/eac_cli/lib/eac_cli/parser/options_collection.rb +0 -127
  112. data/vendor/eac_cli/lib/eac_cli/parser/parse_result.rb +0 -38
  113. data/vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb +0 -77
  114. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/file.rb +0 -31
  115. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/info.rb +0 -21
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_utils/core_ext'
4
+
5
+ module EhbrsRubyUtils
6
+ module Videos
7
+ class Stream
8
+ enable_simple_cache
9
+ enable_listable
10
+
11
+ lists.add_symbol :codec_type, :audio, :video, :subtitle, :data, :attachment
12
+
13
+ common_constructor :ffprobe_data do
14
+ self.ffprobe_data = ffprobe_data.symbolize_keys.freeze
15
+ self.class.lists.codec_type.value_validate!(codec_type)
16
+ end
17
+
18
+ lists.codec_type.each_value do |v|
19
+ define_method "#{v}?" do
20
+ codec_type == v
21
+ end
22
+ end
23
+
24
+ def to_s
25
+ "#{index}|#{codec_type}|#{codec_name}|#{language}"
26
+ end
27
+
28
+ def to_h
29
+ ffprobe_data
30
+ end
31
+
32
+ %i[index codec_name codec_long_name].each do |method_name|
33
+ define_method method_name do
34
+ ffprobe_data.fetch(method_name)
35
+ end
36
+ end
37
+
38
+ def codec_type
39
+ ffprobe_data.fetch(:codec_type).to_sym
40
+ end
41
+
42
+ def tags
43
+ ffprobe_data[:tags].if_present({}, &:symbolize_keys)
44
+ end
45
+
46
+ def language
47
+ tags[:language]
48
+ end
49
+ end
50
+ end
51
+ end
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.16.0
4
+ version: 0.16.5
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: 2020-11-15 00:00:00.000000000 Z
11
+ date: 2020-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-tools
@@ -16,34 +16,54 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.44'
19
+ version: '0.82'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.44.2
22
+ version: 0.82.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
- version: '0.44'
29
+ version: '0.82'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.44.2
32
+ version: 0.82.1
33
+ - !ruby/object:Gem::Dependency
34
+ name: eac_cli
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '0.12'
40
+ - - "~>"
41
+ - !ruby/object:Gem::Version
42
+ version: 0.12.4
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.12'
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: 0.12.4
33
53
  - !ruby/object:Gem::Dependency
34
54
  name: eac_ruby_utils
35
55
  requirement: !ruby/object:Gem::Requirement
36
56
  requirements:
37
57
  - - "~>"
38
58
  - !ruby/object:Gem::Version
39
- version: '0.19'
59
+ version: '0.55'
40
60
  type: :runtime
41
61
  prerelease: false
42
62
  version_requirements: !ruby/object:Gem::Requirement
43
63
  requirements:
44
64
  - - "~>"
45
65
  - !ruby/object:Gem::Version
46
- version: '0.19'
66
+ version: '0.55'
47
67
  - !ruby/object:Gem::Dependency
48
68
  name: filesize
49
69
  requirement: !ruby/object:Gem::Requirement
@@ -182,6 +202,37 @@ files:
182
202
  - lib/ehbrs/videos/unsupported/profiles/samsung.rb
183
203
  - lib/ehbrs/videos/unsupported/search.rb
184
204
  - lib/ehbrs/videos/unsupported/track.rb
205
+ - vendor/aranha-parsers/Gemfile
206
+ - vendor/aranha-parsers/aranha-parsers.gemspec
207
+ - vendor/aranha-parsers/lib/aranha/parsers.rb
208
+ - vendor/aranha-parsers/lib/aranha/parsers/base.rb
209
+ - vendor/aranha-parsers/lib/aranha/parsers/html.rb
210
+ - vendor/aranha-parsers/lib/aranha/parsers/html/base.rb
211
+ - vendor/aranha-parsers/lib/aranha/parsers/html/item.rb
212
+ - vendor/aranha-parsers/lib/aranha/parsers/html/item_list.rb
213
+ - vendor/aranha-parsers/lib/aranha/parsers/html/node.rb
214
+ - vendor/aranha-parsers/lib/aranha/parsers/html/node/base.rb
215
+ - vendor/aranha-parsers/lib/aranha/parsers/html/node/default.rb
216
+ - vendor/aranha-parsers/lib/aranha/parsers/invalid_state_exception.rb
217
+ - vendor/aranha-parsers/lib/aranha/parsers/patches.rb
218
+ - vendor/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb
219
+ - vendor/aranha-parsers/lib/aranha/parsers/source_address.rb
220
+ - vendor/aranha-parsers/lib/aranha/parsers/source_address/file.rb
221
+ - vendor/aranha-parsers/lib/aranha/parsers/source_address/hash_http_get.rb
222
+ - vendor/aranha-parsers/lib/aranha/parsers/source_address/hash_http_post.rb
223
+ - vendor/aranha-parsers/lib/aranha/parsers/source_address/http_get.rb
224
+ - vendor/aranha-parsers/lib/aranha/parsers/source_target_fixtures.rb
225
+ - vendor/aranha-parsers/lib/aranha/parsers/spec/source_target_fixtures_example.rb
226
+ - vendor/aranha-parsers/lib/aranha/parsers/version.rb
227
+ - vendor/aranha-parsers/spec/lib/aranha/parsers/source_address/http_get_spec.rb
228
+ - vendor/aranha-parsers/spec/lib/aranha/parsers/source_address_spec.rb
229
+ - vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec.rb
230
+ - vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub1.source.txt
231
+ - vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub1.target.html
232
+ - vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub2.source.html
233
+ - vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub3.target.yaml
234
+ - vendor/aranha-parsers/spec/lib/rubocop_check_spec.rb
235
+ - vendor/aranha-parsers/spec/spec_helper.rb
185
236
  - vendor/aranha-selenium/Gemfile
186
237
  - vendor/aranha-selenium/aranha-selenium.gemspec
187
238
  - vendor/aranha-selenium/lib/aranha/selenium.rb
@@ -200,30 +251,40 @@ files:
200
251
  - vendor/eac_cli/lib/eac_cli/core_ext.rb
201
252
  - vendor/eac_cli/lib/eac_cli/default_runner.rb
202
253
  - vendor/eac_cli/lib/eac_cli/definition.rb
254
+ - vendor/eac_cli/lib/eac_cli/definition/alternative.rb
203
255
  - vendor/eac_cli/lib/eac_cli/definition/argument_option.rb
204
256
  - vendor/eac_cli/lib/eac_cli/definition/base_option.rb
205
257
  - vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb
258
+ - vendor/eac_cli/lib/eac_cli/definition/help_formatter.rb
206
259
  - vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb
207
260
  - vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb
261
+ - vendor/eac_cli/lib/eac_cli/docopt/doc_builder/alternative.rb
208
262
  - vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb
209
263
  - vendor/eac_cli/lib/eac_cli/parser.rb
264
+ - vendor/eac_cli/lib/eac_cli/parser/alternative.rb
265
+ - vendor/eac_cli/lib/eac_cli/parser/alternative/argv.rb
266
+ - vendor/eac_cli/lib/eac_cli/parser/alternative/double_dash.rb
267
+ - vendor/eac_cli/lib/eac_cli/parser/alternative/options.rb
268
+ - vendor/eac_cli/lib/eac_cli/parser/alternative/positionals.rb
210
269
  - vendor/eac_cli/lib/eac_cli/parser/collector.rb
211
270
  - vendor/eac_cli/lib/eac_cli/parser/error.rb
212
- - vendor/eac_cli/lib/eac_cli/parser/options_collection.rb
213
- - vendor/eac_cli/lib/eac_cli/parser/parse_result.rb
214
- - vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb
215
271
  - vendor/eac_cli/lib/eac_cli/patches.rb
216
272
  - vendor/eac_cli/lib/eac_cli/patches/object.rb
217
273
  - vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
218
274
  - vendor/eac_cli/lib/eac_cli/runner.rb
219
275
  - vendor/eac_cli/lib/eac_cli/runner/context.rb
276
+ - vendor/eac_cli/lib/eac_cli/runner/exit.rb
220
277
  - vendor/eac_cli/lib/eac_cli/runner_with.rb
221
278
  - vendor/eac_cli/lib/eac_cli/runner_with/help.rb
222
279
  - vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb
223
280
  - vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb
224
281
  - vendor/eac_cli/lib/eac_cli/version.rb
282
+ - vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb
225
283
  - vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb
284
+ - vendor/eac_cli/spec/lib/eac_cli/parser/alternative_spec.rb
226
285
  - vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb
286
+ - vendor/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb
287
+ - vendor/eac_cli/spec/lib/eac_cli/runner_with/output_file_spec.rb
227
288
  - vendor/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb
228
289
  - vendor/eac_cli/spec/rubocop_spec.rb
229
290
  - vendor/eac_cli/spec/spec_helper.rb
@@ -234,10 +295,17 @@ files:
234
295
  - vendor/eac_docker/lib/eac_docker/executables.rb
235
296
  - vendor/eac_docker/lib/eac_docker/images.rb
236
297
  - vendor/eac_docker/lib/eac_docker/images/base.rb
298
+ - vendor/eac_docker/lib/eac_docker/images/coded.rb
237
299
  - vendor/eac_docker/lib/eac_docker/images/named.rb
300
+ - vendor/eac_docker/lib/eac_docker/images/templatized.rb
301
+ - vendor/eac_docker/lib/eac_docker/registry.rb
238
302
  - vendor/eac_docker/lib/eac_docker/rspec.rb
239
303
  - vendor/eac_docker/lib/eac_docker/version.rb
240
304
  - vendor/eac_docker/spec/lib/eac_docker/executables_spec.rb
305
+ - vendor/eac_docker/spec/lib/eac_docker/images/coded_spec.rb
306
+ - vendor/eac_docker/spec/lib/eac_docker/images/coded_spec_files/image1/Dockerfile
307
+ - vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec.rb
308
+ - vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec_files/stub_docker_image/Dockerfile
241
309
  - vendor/eac_docker/spec/rubocop_spec.rb
242
310
  - vendor/eac_docker/spec/spec_helper.rb
243
311
  - vendor/eac_ruby_utils/Gemfile
@@ -245,18 +313,24 @@ files:
245
313
  - vendor/eac_ruby_utils/README.rdoc
246
314
  - vendor/eac_ruby_utils/eac_ruby_utils.gemspec
247
315
  - vendor/eac_ruby_utils/lib/eac_ruby_utils.rb
316
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb
248
317
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb
249
318
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
250
319
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb
251
320
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb
252
321
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb
322
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb
323
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb
253
324
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb
254
325
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/configs.rb
255
326
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/base.rb
256
327
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/file.rb
257
328
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console.rb
258
329
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb
330
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/entry_reader.rb
331
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/password_entry_reader.rb
259
332
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/read_entry_options.rb
333
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/store_passwords_entry_reader.rb
260
334
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner.rb
261
335
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
262
336
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_doc.rb
@@ -273,6 +347,8 @@ files:
273
347
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs.rb
274
348
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/base_env.rb
275
349
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb
350
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/concat.rb
351
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/envvars.rb
276
352
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb
277
353
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb
278
354
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb
@@ -327,6 +403,7 @@ files:
327
403
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/options_consumer.rb
328
404
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb
329
405
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb
406
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb
330
407
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb
331
408
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/console_speaker.rb
332
409
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb
@@ -336,6 +413,7 @@ files:
336
413
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/simple_cache.rb
337
414
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
338
415
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
416
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb
339
417
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
340
418
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
341
419
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
@@ -375,6 +453,7 @@ files:
375
453
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
376
454
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb
377
455
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb
456
+ - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/abstract_methods_spec.rb
378
457
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb
379
458
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb
380
459
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb
@@ -431,10 +510,10 @@ files:
431
510
  - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/version.rb
432
511
  - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos.rb
433
512
  - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container.rb
434
- - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/file.rb
435
- - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/info.rb
513
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/convert_job.rb
436
514
  - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/quality.rb
437
515
  - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/resolution.rb
516
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/stream.rb
438
517
  - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils.rb
439
518
  - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/instance.rb
440
519
  - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos.rb
@@ -1,127 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_ruby_utils/core_ext'
4
- require 'optparse'
5
-
6
- module EacCli
7
- class Parser
8
- class OptionsCollection
9
- SEP = ' '
10
- IDENT = SEP * 2
11
- OPTION_DESC_SEP = IDENT * 2
12
-
13
- enable_simple_cache
14
- common_constructor(:definition, :argv, :collector) { collect }
15
- attr_reader :arguments
16
-
17
- def options_first?
18
- definition.options_first? || definition.subcommands?
19
- end
20
-
21
- private
22
-
23
- def check_required_options
24
- definition.options.each do |option|
25
- next unless option.required?
26
- next if collector.supplied?(option)
27
-
28
- raise ::EacCli::Parser::Error.new(
29
- definition, argv, "Option \"#{option}\" is required and a value was not supplied"
30
- )
31
- end
32
- end
33
-
34
- def collect
35
- build_banner
36
- build_options
37
- parse_argv
38
- check_required_options
39
- end
40
-
41
- def option_parser_uncached
42
- ::OptionParser.new
43
- end
44
-
45
- def parse_argv
46
- @arguments = options_first? ? option_parser.order(argv) : option_parser.parse(argv)
47
- rescue ::OptionParser::InvalidOption => e
48
- raise ::EacCli::Parser::Error.new(definition, argv, e.message)
49
- end
50
-
51
- def build_banner
52
- option_parser.banner = "#{definition.description}\n\n#{section('usage')}"
53
- end
54
-
55
- def build_options
56
- definition.options.each do |option|
57
- build_option(option)
58
- end
59
- end
60
-
61
- def build_option(option)
62
- option_parser.on(
63
- *[option_short(option), option_long(option), option.description].reject(&:blank?)
64
- ) do |value|
65
- collector.collect(option, value)
66
- end
67
- end
68
-
69
- def positional_argument(positional)
70
- if positional.subcommand?
71
- ::EacRubyUtils::Console::DocoptRunner::SUBCOMMANDS_MACRO
72
- else
73
- r = "<#{positional.name}>"
74
- r += '...' if positional.repeat?
75
- r = "[#{r}]" if positional.optional?
76
- r
77
- end
78
- end
79
-
80
- def option_argument(option)
81
- option_long(option)
82
- end
83
-
84
- def option_long(option)
85
- b = option.long
86
- b += '=VALUE' if option.argument?
87
- b
88
- end
89
-
90
- def option_short(option)
91
- b = option.short
92
- b += 'VALUE' if option.argument?
93
- b
94
- end
95
-
96
- def section(header, include_header = true)
97
- b = include_header ? "#{header.humanize}:\n" : ''
98
- b += send("self_#{header}") + "\n"
99
- # TO-DO: implement alternatives
100
- b
101
- end
102
-
103
- def self_options
104
- definition.options.map { |option| IDENT + option_definition(option) }.join("\n")
105
- end
106
-
107
- def self_usage
108
- IDENT + self_usage_arguments.join(SEP)
109
- end
110
-
111
- def self_usage_arguments
112
- [::EacRubyUtils::Console::DocoptRunner::PROGRAM_MACRO] +
113
- definition.options_argument.if_present([]) { |_v| ['[options]'] } +
114
- self_usage_arguments_options +
115
- self_usage_arguments_positional
116
- end
117
-
118
- def self_usage_arguments_options
119
- definition.options.select(&:show_on_usage?).map { |option| option_argument(option) }
120
- end
121
-
122
- def self_usage_arguments_positional
123
- definition.positional.map { |p| positional_argument(p) }
124
- end
125
- end
126
- end
127
- end
@@ -1,38 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/parser/error'
4
- require 'eac_ruby_utils/core_ext'
5
-
6
- module EacCli
7
- class Parser
8
- class ParseResult
9
- common_constructor :definition, :argv
10
-
11
- def result
12
- result_or_error = parse(definition)
13
- return result_or_error unless result_or_error.is_a?(::Exception)
14
-
15
- definition.alternatives.each do |alternative|
16
- alt_result_or_error = parse(alternative)
17
- return alt_result_or_error unless alt_result_or_error.is_a?(::Exception)
18
- end
19
-
20
- raise result_or_error
21
- end
22
-
23
- private
24
-
25
- def parse(definition)
26
- ::EacCli::Parser::Collector.to_data(definition) do |collector|
27
- ::EacCli::Parser::PositionalCollection.new(
28
- definition,
29
- ::EacCli::Parser::OptionsCollection.new(definition, argv, collector).arguments,
30
- collector
31
- )
32
- end
33
- rescue ::EacCli::Parser::Error => e
34
- e
35
- end
36
- end
37
- end
38
- end