ehbrs-tools 0.12.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ehbrs/executables.rb +1 -1
  3. data/lib/ehbrs/runner.rb +9 -13
  4. data/lib/ehbrs/runner/finances.rb +19 -0
  5. data/lib/ehbrs/runner/finances/bb_browser.rb +40 -0
  6. data/lib/ehbrs/runner/fs/used_space.rb +4 -4
  7. data/lib/ehbrs/runner/videos.rb +6 -11
  8. data/lib/ehbrs/runner/videos/probe.rb +35 -0
  9. data/lib/ehbrs/runner/web_utils.rb +26 -0
  10. data/lib/ehbrs/runner/web_utils/videos.rb +20 -0
  11. data/lib/ehbrs/runner/web_utils/videos/download.rb +66 -0
  12. data/lib/ehbrs/runner/web_utils/videos/upload.rb +78 -0
  13. data/lib/ehbrs/tools/version.rb +1 -1
  14. data/lib/ehbrs/videos/file.rb +2 -1
  15. data/lib/ehbrs/videos/unsupported/fix_profile.rb +1 -0
  16. data/vendor/eac_cli/eac_cli.gemspec +3 -3
  17. data/vendor/eac_cli/lib/eac_cli/core_ext.rb +4 -0
  18. data/vendor/eac_cli/lib/eac_cli/default_runner.rb +6 -14
  19. data/vendor/eac_cli/lib/eac_cli/definition.rb +72 -0
  20. data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +13 -0
  21. data/vendor/eac_cli/lib/eac_cli/{runner → definition}/base_option.rb +5 -1
  22. data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +13 -0
  23. data/vendor/eac_cli/lib/eac_cli/{runner → definition}/positional_argument.rb +5 -1
  24. data/vendor/eac_cli/lib/eac_cli/{runner/docopt_doc.rb → docopt/doc_builder.rb} +15 -8
  25. data/vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb +45 -0
  26. data/vendor/eac_cli/lib/eac_cli/parser.rb +14 -0
  27. data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +56 -0
  28. data/vendor/eac_cli/lib/eac_cli/parser/error.rb +15 -0
  29. data/vendor/eac_cli/lib/eac_cli/parser/options_collection.rb +105 -0
  30. data/vendor/eac_cli/lib/eac_cli/parser/parse_result.rb +21 -0
  31. data/vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb +49 -0
  32. data/vendor/eac_cli/lib/eac_cli/patches.rb +4 -0
  33. data/vendor/eac_cli/lib/eac_cli/patches/object.rb +5 -0
  34. data/vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb +24 -0
  35. data/vendor/eac_cli/lib/eac_cli/runner.rb +64 -7
  36. data/vendor/eac_cli/lib/eac_cli/runner/context.rb +18 -0
  37. data/vendor/eac_cli/lib/eac_cli/runner_with.rb +9 -0
  38. data/vendor/eac_cli/lib/eac_cli/runner_with/help.rb +19 -0
  39. data/vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb +26 -0
  40. data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
  41. data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +70 -0
  42. data/vendor/eac_docker/Gemfile +5 -0
  43. data/vendor/eac_docker/eac_docker.gemspec +18 -0
  44. data/vendor/eac_docker/lib/eac_docker.rb +7 -0
  45. data/vendor/eac_docker/lib/eac_docker/container.rb +50 -0
  46. data/vendor/eac_docker/lib/eac_docker/executables.rb +18 -0
  47. data/vendor/eac_docker/lib/eac_docker/images.rb +9 -0
  48. data/vendor/eac_docker/lib/eac_docker/images/base.rb +14 -0
  49. data/vendor/eac_docker/lib/eac_docker/images/named.rb +30 -0
  50. data/vendor/eac_docker/lib/eac_docker/rspec.rb +17 -0
  51. data/vendor/eac_docker/lib/eac_docker/version.rb +5 -0
  52. data/vendor/eac_docker/spec/lib/eac_docker/executables_spec.rb +9 -0
  53. data/vendor/eac_docker/spec/rubocop_spec.rb +7 -0
  54. data/vendor/eac_docker/spec/spec_helper.rb +103 -0
  55. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb +31 -0
  56. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +4 -4
  57. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner.rb +6 -0
  58. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb +2 -2
  59. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb +8 -2
  60. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb +1 -0
  61. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb +8 -0
  62. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb +12 -9
  63. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb +53 -0
  64. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb +25 -0
  65. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb +24 -0
  66. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb +34 -0
  67. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs_cache.rb +1 -0
  68. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable.rb +15 -0
  69. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/array_accessor.rb +32 -0
  70. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/base_accessor.rb +23 -0
  71. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/boolean_accessor.rb +16 -0
  72. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/class_methods.rb +20 -0
  73. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/common_accessor.rb +30 -0
  74. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb +46 -0
  75. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/instance_methods.rb +21 -0
  76. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +18 -0
  77. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +5 -0
  78. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb +3 -2
  79. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb +10 -0
  80. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb +22 -0
  81. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb +4 -0
  82. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +9 -0
  83. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +38 -11
  84. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +6 -2
  85. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +53 -0
  86. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/directory.rb +7 -1
  87. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/file.rb +8 -59
  88. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_not_found_error.rb +7 -0
  89. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers.rb +25 -0
  90. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/base.rb +23 -0
  91. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/entries_reader.rb +25 -0
  92. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/generic.rb +25 -0
  93. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb +29 -0
  94. data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
  95. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +15 -0
  96. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby_spec.rb +22 -0
  97. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +46 -0
  98. data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec.rb +1 -0
  99. data/vendor/ehbrs_ruby_utils/Gemfile +16 -0
  100. data/vendor/ehbrs_ruby_utils/ehbrs_ruby_utils.gemspec +20 -0
  101. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils.rb +7 -0
  102. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/executables.rb +28 -0
  103. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/version.rb +5 -0
  104. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos.rb +9 -0
  105. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container.rb +11 -0
  106. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/file.rb +31 -0
  107. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/info.rb +21 -0
  108. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/quality.rb +68 -0
  109. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/resolution.rb +68 -0
  110. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils.rb +9 -0
  111. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/instance.rb +32 -0
  112. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos.rb +11 -0
  113. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/file.rb +40 -0
  114. data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/files_list.rb +76 -0
  115. data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/resolution_spec.rb +18 -0
  116. data/vendor/ehbrs_ruby_utils/spec/rubocop_check_spec.rb +7 -0
  117. data/vendor/ehbrs_ruby_utils/spec/spec_helper.rb +100 -0
  118. metadata +92 -10
  119. data/vendor/eac_cli/lib/eac_cli/runner/argument_option.rb +0 -13
  120. data/vendor/eac_cli/lib/eac_cli/runner/boolean_option.rb +0 -13
  121. data/vendor/eac_cli/lib/eac_cli/runner/definition.rb +0 -64
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'ehbrs_ruby_utils/videos/resolution'
4
+
5
+ RSpec.describe ::EhbrsRubyUtils::Videos::Resolution do
6
+ describe '#quality' do
7
+ { [500, 720] => 480, [1080, 720] => 720, [1, 1] => 240, [9999, 9999] => 2160,
8
+ [480, 420] => 240, [480, 421] => 480 }.each do |resolution_parts, quality_height|
9
+ context "when resolution is #{described_class.new(*resolution_parts).to_xs}" do
10
+ let(:instance) { described_class.new(*resolution_parts) }
11
+
12
+ it "quality is #{::EhbrsRubyUtils::Videos::Quality.by_height(quality_height).to_xs}" do
13
+ expect(instance.quality.height).to eq(quality_height)
14
+ end
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'eac_ruby_gem_support/spec/examples/rubocop_check'
4
+
5
+ RSpec.describe ::RuboCop do
6
+ include_examples 'rubocop_check', ::File.expand_path('..', __dir__)
7
+ end
@@ -0,0 +1,100 @@
1
+ # frozen_string_literal: true
2
+
3
+ # This file was generated by the `rspec --init` command. Conventionally, all
4
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
5
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
6
+ # this file to always be loaded, without a need to explicitly require it in any
7
+ # files.
8
+ #
9
+ # Given that it is always loaded, you are encouraged to keep this file as
10
+ # light-weight as possible. Requiring heavyweight dependencies from this file
11
+ # will add to the boot time of your test suite on EVERY test run, even for an
12
+ # individual file that may not need all of that loaded. Instead, consider making
13
+ # a separate helper file that requires the additional dependencies and performs
14
+ # the additional setup, and require it from the spec files that actually need
15
+ # it.
16
+ #
17
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
18
+ RSpec.configure do |config|
19
+ # rspec-expectations config goes here. You can use an alternate
20
+ # assertion/expectation library such as wrong or the stdlib/minitest
21
+ # assertions if you prefer.
22
+ config.expect_with :rspec do |expectations|
23
+ # This option will default to `true` in RSpec 4. It makes the `description`
24
+ # and `failure_message` of custom matchers include text for helper methods
25
+ # defined using `chain`, e.g.:
26
+ # be_bigger_than(2).and_smaller_than(4).description
27
+ # # => "be bigger than 2 and smaller than 4"
28
+ # ...rather than:
29
+ # # => "be bigger than 2"
30
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
31
+ end
32
+
33
+ # rspec-mocks config goes here. You can use an alternate test double
34
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
35
+ config.mock_with :rspec do |mocks|
36
+ # Prevents you from mocking or stubbing a method that does not exist on
37
+ # a real object. This is generally recommended, and will default to
38
+ # `true` in RSpec 4.
39
+ mocks.verify_partial_doubles = true
40
+ end
41
+
42
+ # This option will default to `:apply_to_host_groups` in RSpec 4 (and will
43
+ # have no way to turn it off -- the option exists only for backwards
44
+ # compatibility in RSpec 3). It causes shared context metadata to be
45
+ # inherited by the metadata hash of host groups and examples, rather than
46
+ # triggering implicit auto-inclusion in groups with matching metadata.
47
+ config.shared_context_metadata_behavior = :apply_to_host_groups
48
+
49
+ # The settings below are suggested to provide a good initial experience
50
+ # with RSpec, but feel free to customize to your heart's content.
51
+ # # This allows you to limit a spec run to individual examples or groups
52
+ # # you care about by tagging them with `:focus` metadata. When nothing
53
+ # # is tagged with `:focus`, all examples get run. RSpec also provides
54
+ # # aliases for `it`, `describe`, and `context` that include `:focus`
55
+ # # metadata: `fit`, `fdescribe` and `fcontext`, respectively.
56
+ # config.filter_run_when_matching :focus
57
+ #
58
+ # # Allows RSpec to persist some state between runs in order to support
59
+ # # the `--only-failures` and `--next-failure` CLI options. We recommend
60
+ # # you configure your source control system to ignore this file.
61
+ # config.example_status_persistence_file_path = "spec/examples.txt"
62
+ #
63
+ # # Limits the available syntax to the non-monkey patched syntax that is
64
+ # # recommended. For more details, see:
65
+ # # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
66
+ # # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
67
+ # # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
68
+ # config.disable_monkey_patching!
69
+ #
70
+ # # This setting enables warnings. It's recommended, but in some cases may
71
+ # # be too noisy due to issues in dependencies.
72
+ # config.warnings = true
73
+ #
74
+ # # Many RSpec users commonly either run the entire suite or an individual
75
+ # # file, and it's useful to allow more verbose output when running an
76
+ # # individual spec file.
77
+ # if config.files_to_run.one?
78
+ # # Use the documentation formatter for detailed output,
79
+ # # unless a formatter has already been configured
80
+ # # (e.g. via a command-line flag).
81
+ # config.default_formatter = "doc"
82
+ # end
83
+ #
84
+ # # Print the 10 slowest examples and example groups at the
85
+ # # end of the spec run, to help surface which specs are running
86
+ # # particularly slow.
87
+ # config.profile_examples = 10
88
+ #
89
+ # # Run specs in random order to surface order dependencies. If you find an
90
+ # # order dependency and want to debug it, you can fix the order by providing
91
+ # # the seed, which is printed after each run.
92
+ # # --seed 1234
93
+ # config.order = :random
94
+ #
95
+ # # Seed global randomization in this process using the `--seed` CLI option.
96
+ # # Setting this allows you to use `--seed` to deterministically reproduce
97
+ # # test failures related to randomization by passing the same `--seed` value
98
+ # # as the one that triggered the failure.
99
+ # Kernel.srand config.seed
100
+ 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.12.0
4
+ version: 0.15.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: 2020-06-11 00:00:00.000000000 Z
11
+ date: 2020-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: avm-tools
@@ -107,6 +107,8 @@ files:
107
107
  - lib/ehbrs/observers/base.rb
108
108
  - lib/ehbrs/observers/with_persistence.rb
109
109
  - lib/ehbrs/runner.rb
110
+ - lib/ehbrs/runner/finances.rb
111
+ - lib/ehbrs/runner/finances/bb_browser.rb
110
112
  - lib/ehbrs/runner/fs.rb
111
113
  - lib/ehbrs/runner/fs/used_space.rb
112
114
  - lib/ehbrs/runner/google.rb
@@ -118,9 +120,14 @@ files:
118
120
  - lib/ehbrs/runner/vg/wii.rb
119
121
  - lib/ehbrs/runner/videos.rb
120
122
  - lib/ehbrs/runner/videos/extract.rb
123
+ - lib/ehbrs/runner/videos/probe.rb
121
124
  - lib/ehbrs/runner/videos/series.rb
122
125
  - lib/ehbrs/runner/videos/series/rename.rb
123
126
  - lib/ehbrs/runner/videos/unsupported.rb
127
+ - lib/ehbrs/runner/web_utils.rb
128
+ - lib/ehbrs/runner/web_utils/videos.rb
129
+ - lib/ehbrs/runner/web_utils/videos/download.rb
130
+ - lib/ehbrs/runner/web_utils/videos/upload.rb
124
131
  - lib/ehbrs/self.rb
125
132
  - lib/ehbrs/self/observers/used_space.rb
126
133
  - lib/ehbrs/self/observers/with_persistence.rb
@@ -190,23 +197,53 @@ files:
190
197
  - vendor/eac_cli/Gemfile
191
198
  - vendor/eac_cli/eac_cli.gemspec
192
199
  - vendor/eac_cli/lib/eac_cli.rb
200
+ - vendor/eac_cli/lib/eac_cli/core_ext.rb
193
201
  - vendor/eac_cli/lib/eac_cli/default_runner.rb
202
+ - vendor/eac_cli/lib/eac_cli/definition.rb
203
+ - vendor/eac_cli/lib/eac_cli/definition/argument_option.rb
204
+ - vendor/eac_cli/lib/eac_cli/definition/base_option.rb
205
+ - vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb
206
+ - vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb
207
+ - vendor/eac_cli/lib/eac_cli/docopt/doc_builder.rb
208
+ - vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb
209
+ - vendor/eac_cli/lib/eac_cli/parser.rb
210
+ - vendor/eac_cli/lib/eac_cli/parser/collector.rb
211
+ - 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
+ - vendor/eac_cli/lib/eac_cli/patches.rb
216
+ - vendor/eac_cli/lib/eac_cli/patches/object.rb
217
+ - vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb
194
218
  - vendor/eac_cli/lib/eac_cli/runner.rb
195
- - vendor/eac_cli/lib/eac_cli/runner/argument_option.rb
196
- - vendor/eac_cli/lib/eac_cli/runner/base_option.rb
197
- - vendor/eac_cli/lib/eac_cli/runner/boolean_option.rb
198
- - vendor/eac_cli/lib/eac_cli/runner/definition.rb
199
- - vendor/eac_cli/lib/eac_cli/runner/docopt_doc.rb
200
- - vendor/eac_cli/lib/eac_cli/runner/positional_argument.rb
219
+ - vendor/eac_cli/lib/eac_cli/runner/context.rb
220
+ - vendor/eac_cli/lib/eac_cli/runner_with.rb
221
+ - vendor/eac_cli/lib/eac_cli/runner_with/help.rb
222
+ - vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb
201
223
  - vendor/eac_cli/lib/eac_cli/version.rb
224
+ - vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb
202
225
  - vendor/eac_cli/spec/rubocop_spec.rb
203
226
  - vendor/eac_cli/spec/spec_helper.rb
227
+ - vendor/eac_docker/Gemfile
228
+ - vendor/eac_docker/eac_docker.gemspec
229
+ - vendor/eac_docker/lib/eac_docker.rb
230
+ - vendor/eac_docker/lib/eac_docker/container.rb
231
+ - vendor/eac_docker/lib/eac_docker/executables.rb
232
+ - vendor/eac_docker/lib/eac_docker/images.rb
233
+ - vendor/eac_docker/lib/eac_docker/images/base.rb
234
+ - vendor/eac_docker/lib/eac_docker/images/named.rb
235
+ - vendor/eac_docker/lib/eac_docker/rspec.rb
236
+ - vendor/eac_docker/lib/eac_docker/version.rb
237
+ - vendor/eac_docker/spec/lib/eac_docker/executables_spec.rb
238
+ - vendor/eac_docker/spec/rubocop_spec.rb
239
+ - vendor/eac_docker/spec/spec_helper.rb
204
240
  - vendor/eac_ruby_utils/Gemfile
205
241
  - vendor/eac_ruby_utils/MIT-LICENCE
206
242
  - vendor/eac_ruby_utils/README.rdoc
207
243
  - vendor/eac_ruby_utils/eac_ruby_utils.gemspec
208
244
  - vendor/eac_ruby_utils/lib/eac_ruby_utils.rb
209
245
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb
246
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb
210
247
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb
211
248
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb
212
249
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb
@@ -237,6 +274,10 @@ files:
237
274
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/process.rb
238
275
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/spawn.rb
239
276
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb
277
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb
278
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb
279
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
280
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb
240
281
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb
241
282
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs.rb
242
283
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb
@@ -246,6 +287,15 @@ files:
246
287
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traversable.rb
247
288
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traverser.rb
248
289
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/fs_cache.rb
290
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable.rb
291
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/array_accessor.rb
292
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/base_accessor.rb
293
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/boolean_accessor.rb
294
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/class_methods.rb
295
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/common_accessor.rb
296
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb
297
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/instance_methods.rb
298
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb
249
299
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/listable.rb
250
300
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/class_methods.rb
251
301
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/instance_methods.rb
@@ -269,6 +319,7 @@ files:
269
319
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb
270
320
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb
271
321
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/console_speaker.rb
322
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb
272
323
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/listable.rb
273
324
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/patch.rb
274
325
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/require_sub.rb
@@ -276,12 +327,15 @@ files:
276
327
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
277
328
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
278
329
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
330
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
279
331
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
280
332
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb
281
333
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb
282
334
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb
283
335
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb
284
336
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb
337
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb
338
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb
285
339
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb
286
340
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/default_time_zone_set.rb
287
341
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/local_time_zone.rb
@@ -295,10 +349,17 @@ files:
295
349
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb
296
350
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb
297
351
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb
352
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb
298
353
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates.rb
299
354
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/directory.rb
300
355
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/file.rb
301
356
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/searcher.rb
357
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_not_found_error.rb
358
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers.rb
359
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/base.rb
360
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/entries_reader.rb
361
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/generic.rb
362
+ - vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/variable_providers/hash.rb
302
363
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb
303
364
  - vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb
304
365
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb
@@ -315,6 +376,7 @@ files:
315
376
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
316
377
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/temp_spec.rb
317
378
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb
379
+ - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb
318
380
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb
319
381
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb
320
382
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb
@@ -331,8 +393,10 @@ files:
331
393
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec.rb
332
394
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_module_a.rb
333
395
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_not_module.rb
396
+ - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby_spec.rb
334
397
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb
335
398
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb
399
+ - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb
336
400
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec.rb
337
401
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec_files/expected_content
338
402
  - vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec_files/source.template
@@ -344,6 +408,25 @@ files:
344
408
  - vendor/eac_ruby_utils/spec/locales/pt-BR.yml
345
409
  - vendor/eac_ruby_utils/spec/rubocop_check_spec.rb
346
410
  - vendor/eac_ruby_utils/spec/spec_helper.rb
411
+ - vendor/ehbrs_ruby_utils/Gemfile
412
+ - vendor/ehbrs_ruby_utils/ehbrs_ruby_utils.gemspec
413
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils.rb
414
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/executables.rb
415
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/version.rb
416
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos.rb
417
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container.rb
418
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/file.rb
419
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/info.rb
420
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/quality.rb
421
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/resolution.rb
422
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils.rb
423
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/instance.rb
424
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos.rb
425
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/file.rb
426
+ - vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/files_list.rb
427
+ - vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/resolution_spec.rb
428
+ - vendor/ehbrs_ruby_utils/spec/rubocop_check_spec.rb
429
+ - vendor/ehbrs_ruby_utils/spec/spec_helper.rb
347
430
  homepage:
348
431
  licenses: []
349
432
  metadata: {}
@@ -362,8 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
362
445
  - !ruby/object:Gem::Version
363
446
  version: '0'
364
447
  requirements: []
365
- rubyforge_project:
366
- rubygems_version: 2.7.7
448
+ rubygems_version: 3.0.8
367
449
  signing_key:
368
450
  specification_version: 4
369
451
  summary: Tools for EHB/RS.
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner/base_option'
4
-
5
- module EacCli
6
- module Runner
7
- class ArgumentOption < ::EacCli::Runner::BaseOption
8
- def argument?
9
- true
10
- end
11
- end
12
- end
13
- end
@@ -1,13 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner/base_option'
4
-
5
- module EacCli
6
- module Runner
7
- class BooleanOption < ::EacCli::Runner::BaseOption
8
- def argument?
9
- false
10
- end
11
- end
12
- end
13
- end
@@ -1,64 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'eac_cli/runner/argument_option'
4
- require 'eac_cli/runner/boolean_option'
5
- require 'eac_cli/runner/positional_argument'
6
- require 'eac_ruby_utils/core_ext'
7
-
8
- module EacCli
9
- module Runner
10
- class Definition
11
- require_sub __FILE__
12
- attr_accessor :description
13
- attr_accessor :options_argument
14
-
15
- def initialize
16
- self.description = '-- NO DESCRIPTION SET --'
17
- self.options_argument = true
18
- end
19
-
20
- def alt(&block)
21
- r = ::EacCli::Runner::Definition.new
22
- r.instance_eval(&block)
23
- alternatives << r
24
- r
25
- end
26
-
27
- def alternatives
28
- @alternatives ||= []
29
- end
30
-
31
- def arg_opt(short, long, description, option_options = {})
32
- options << ArgumentOption.new(short, long, description, option_options)
33
- end
34
-
35
- def bool_opt(short, long, description, option_options = {})
36
- options << BooleanOption.new(short, long, description, option_options)
37
- end
38
-
39
- def desc(description)
40
- self.description = description
41
- end
42
-
43
- def options_arg(options_argument)
44
- self.options_argument = options_argument
45
- end
46
-
47
- def options
48
- @options ||= []
49
- end
50
-
51
- def pos_arg(name, arg_options = {})
52
- positional << PositionalArgument.new(name, arg_options)
53
- end
54
-
55
- def positional
56
- @positional ||= []
57
- end
58
-
59
- def subcommands
60
- positional << PositionalArgument.new('subcommand', subcommand: true)
61
- end
62
- end
63
- end
64
- end