ehbrs-tools 0.13.0 → 0.16.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/executables.rb +1 -1
- data/lib/ehbrs/runner.rb +10 -17
- data/lib/ehbrs/runner/finances.rb +4 -7
- data/lib/ehbrs/runner/finances/bb_browser.rb +5 -10
- data/lib/ehbrs/runner/fs.rb +4 -7
- data/lib/ehbrs/runner/fs/used_space.rb +8 -9
- data/lib/ehbrs/runner/google.rb +4 -7
- data/lib/ehbrs/runner/google/translate.rb +7 -12
- data/lib/ehbrs/runner/self.rb +4 -7
- data/lib/ehbrs/runner/self/test.rb +5 -10
- data/lib/ehbrs/runner/vg.rb +4 -7
- data/lib/ehbrs/runner/vg/ips.rb +9 -14
- data/lib/ehbrs/runner/vg/wii.rb +10 -13
- data/lib/ehbrs/runner/videos.rb +7 -14
- data/lib/ehbrs/runner/videos/extract.rb +10 -13
- data/lib/ehbrs/runner/videos/probe.rb +32 -0
- data/lib/ehbrs/runner/videos/series.rb +5 -8
- data/lib/ehbrs/runner/videos/series/rename.rb +9 -12
- data/lib/ehbrs/runner/videos/unsupported.rb +9 -13
- data/lib/ehbrs/runner/web_utils.rb +24 -0
- data/lib/ehbrs/runner/web_utils/videos.rb +18 -0
- data/lib/ehbrs/runner/web_utils/videos/download.rb +63 -0
- data/lib/ehbrs/runner/web_utils/videos/upload.rb +75 -0
- data/lib/ehbrs/tools/version.rb +1 -1
- data/lib/ehbrs/videos/file.rb +2 -1
- data/lib/ehbrs/videos/series/rename/file/options.rb +3 -13
- data/lib/ehbrs/videos/unsupported/fix_profile.rb +1 -0
- data/vendor/eac_cli/eac_cli.gemspec +3 -3
- data/vendor/eac_cli/lib/eac_cli/core_ext.rb +4 -0
- data/vendor/eac_cli/lib/eac_cli/default_runner.rb +6 -14
- data/vendor/eac_cli/lib/eac_cli/definition.rb +94 -0
- data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +13 -0
- data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +42 -0
- data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +13 -0
- data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +31 -0
- data/vendor/eac_cli/lib/eac_cli/{runner/docopt_doc.rb → docopt/doc_builder.rb} +15 -8
- data/vendor/eac_cli/lib/eac_cli/docopt/runner_extension.rb +46 -0
- data/vendor/eac_cli/lib/eac_cli/parser.rb +14 -0
- data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +60 -0
- data/vendor/eac_cli/lib/eac_cli/parser/error.rb +15 -0
- data/vendor/eac_cli/lib/eac_cli/parser/options_collection.rb +127 -0
- data/vendor/eac_cli/lib/eac_cli/parser/parse_result.rb +38 -0
- data/vendor/eac_cli/lib/eac_cli/parser/positional_collection.rb +77 -0
- data/vendor/eac_cli/lib/eac_cli/patches.rb +4 -0
- data/vendor/eac_cli/lib/eac_cli/patches/object.rb +5 -0
- data/vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb +25 -0
- data/vendor/eac_cli/lib/eac_cli/runner.rb +68 -7
- data/vendor/eac_cli/lib/eac_cli/runner/context.rb +35 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with.rb +9 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with/help.rb +19 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with/output_file.rb +26 -0
- data/vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb +96 -0
- data/vendor/eac_cli/lib/eac_cli/version.rb +1 -1
- data/vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb +25 -0
- data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +78 -0
- data/vendor/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb +57 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb +19 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb +31 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +4 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/base.rb +43 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/file.rb +12 -31
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb +8 -40
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/read_entry_options.rb +41 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner.rb +6 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb +2 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_subcommands.rb +8 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb +12 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb +53 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb +25 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb +24 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb +34 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb +57 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/array_accessor.rb +4 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb +4 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +18 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +5 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb +3 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb +4 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/current.rb +9 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/stopped.rb +14 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb +22 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb +4 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +9 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash.rb +21 -58
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/entry_key_error.rb +8 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/node.rb +67 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/path_search.rb +39 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +8 -8
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb +2 -1
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +6 -2
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +57 -0
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +1 -1
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb +16 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/configs_spec.rb +15 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +15 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/current_spec.rb +26 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/stopped_spec.rb +32 -0
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/paths_hash_spec.rb +52 -13
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +46 -0
- data/vendor/ehbrs_ruby_utils/Gemfile +16 -0
- data/vendor/ehbrs_ruby_utils/ehbrs_ruby_utils.gemspec +20 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils.rb +7 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/executables.rb +28 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/version.rb +5 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos.rb +9 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container.rb +11 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/file.rb +31 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container/info.rb +21 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/quality.rb +68 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/resolution.rb +68 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils.rb +9 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/instance.rb +32 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos.rb +11 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/file.rb +40 -0
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/files_list.rb +76 -0
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/resolution_spec.rb +18 -0
- data/vendor/ehbrs_ruby_utils/spec/rubocop_check_spec.rb +7 -0
- data/vendor/ehbrs_ruby_utils/spec/spec_helper.rb +100 -0
- metadata +77 -10
- data/vendor/eac_cli/lib/eac_cli/runner/argument_option.rb +0 -13
- data/vendor/eac_cli/lib/eac_cli/runner/base_option.rb +0 -22
- data/vendor/eac_cli/lib/eac_cli/runner/boolean_option.rb +0 -13
- data/vendor/eac_cli/lib/eac_cli/runner/definition.rb +0 -64
- data/vendor/eac_cli/lib/eac_cli/runner/positional_argument.rb +0 -23
@@ -0,0 +1,32 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'eac_ruby_utils/core_ext'
|
4
|
+
require 'avm/instances/base'
|
5
|
+
require 'httpclient'
|
6
|
+
|
7
|
+
module EhbrsRubyUtils
|
8
|
+
module WebUtils
|
9
|
+
class Instance < ::Avm::Instances::Base
|
10
|
+
def root_url
|
11
|
+
read_entry(:url)
|
12
|
+
end
|
13
|
+
|
14
|
+
def resource_url(resource_url_suffix)
|
15
|
+
root_url + '/' + resource_url_suffix.gsub(%r{\A/+}, '')
|
16
|
+
end
|
17
|
+
|
18
|
+
def http_request(resource_url_suffix, options = {})
|
19
|
+
method = options.delete(:method) || 'get'
|
20
|
+
url = resource_url(resource_url_suffix)
|
21
|
+
http_client.request(method, url, options)
|
22
|
+
end
|
23
|
+
|
24
|
+
def http_client_uncached
|
25
|
+
client = HTTPClient.new
|
26
|
+
client.force_basic_auth = true
|
27
|
+
client.set_basic_auth(root_url, read_entry(:admin_username), read_entry(:admin_password))
|
28
|
+
client
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
32
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'ostruct'
|
4
|
+
|
5
|
+
module EhbrsRubyUtils
|
6
|
+
module WebUtils
|
7
|
+
module Videos
|
8
|
+
class File < ::SimpleDelegator
|
9
|
+
def initialize(data)
|
10
|
+
super(::OpenStruct.new(data))
|
11
|
+
end
|
12
|
+
|
13
|
+
def exist?
|
14
|
+
::File.exist?(original_path)
|
15
|
+
end
|
16
|
+
|
17
|
+
def path_changed?
|
18
|
+
original_path != new_path
|
19
|
+
end
|
20
|
+
|
21
|
+
def can_rename?
|
22
|
+
::File.exist?(original_path) && !::File.exist?(new_path)
|
23
|
+
end
|
24
|
+
|
25
|
+
def remove
|
26
|
+
return unless exist?
|
27
|
+
|
28
|
+
::File.unlink(original_path)
|
29
|
+
end
|
30
|
+
|
31
|
+
def rename
|
32
|
+
return unless can_rename?
|
33
|
+
|
34
|
+
::FileUtils.mkdir_p(::File.dirname(new_path))
|
35
|
+
::FileUtils.mv(original_path, new_path)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'active_support/json'
|
4
|
+
require 'eac_ruby_utils/fs/temp'
|
5
|
+
require 'ehbrs_ruby_utils/executables'
|
6
|
+
|
7
|
+
module EhbrsRubyUtils
|
8
|
+
module WebUtils
|
9
|
+
module Videos
|
10
|
+
class FilesList
|
11
|
+
enable_console_speaker
|
12
|
+
enable_simple_cache
|
13
|
+
|
14
|
+
common_constructor :type_class, :root_path, :options do
|
15
|
+
self.root_path = root_path.to_pathname
|
16
|
+
raise "\"#{root_path}\" is not a directory" unless root_path.directory?
|
17
|
+
|
18
|
+
self.options = options.with_indifferent_access.freeze
|
19
|
+
end
|
20
|
+
|
21
|
+
def write_to(path = nil)
|
22
|
+
path ||= ::EacRubyUtils::Fs::Temp.file.to_path
|
23
|
+
::File.write(path, data.to_json)
|
24
|
+
path
|
25
|
+
end
|
26
|
+
|
27
|
+
def data
|
28
|
+
{
|
29
|
+
root_path: root_path.to_path,
|
30
|
+
type: type_class,
|
31
|
+
files: files_data
|
32
|
+
}
|
33
|
+
end
|
34
|
+
|
35
|
+
def files_data
|
36
|
+
case type_class
|
37
|
+
when 'Videos::MovieFile' then movies_files_data
|
38
|
+
when 'Videos::SeriesDirectory' then series_files_data
|
39
|
+
else raise "Unknown type class: \"#{type_class}\""
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
def movies_files_data
|
44
|
+
r = []
|
45
|
+
Dir["#{root_path}/**/*"].each do |path|
|
46
|
+
r << file_data(path) if ::File.file?(path)
|
47
|
+
end
|
48
|
+
r
|
49
|
+
end
|
50
|
+
|
51
|
+
def series_files_data
|
52
|
+
r = []
|
53
|
+
Dir["#{root_path}/*"].each do |path|
|
54
|
+
r << file_data(path) if ::File.directory?(path)
|
55
|
+
end
|
56
|
+
r
|
57
|
+
end
|
58
|
+
|
59
|
+
def file_data(path)
|
60
|
+
r = { original_path: path }
|
61
|
+
r[:ffprobe_data] = file_ffprobe_data(path) if ::File.file?(path)
|
62
|
+
r
|
63
|
+
end
|
64
|
+
|
65
|
+
def file_ffprobe_data(path)
|
66
|
+
return {} unless options.fetch(:ffprobe)
|
67
|
+
|
68
|
+
infom "Probing \"#{path}\"..."
|
69
|
+
::JSON.parse(::EhbrsRubyUtils::Executables.ffprobe.command(
|
70
|
+
'-hide_banner', '-print_format', 'json', '-show_format', '-show_streams', path
|
71
|
+
).execute!)
|
72
|
+
end
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
@@ -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,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.
|
4
|
+
version: 0.16.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-
|
11
|
+
date: 2020-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: avm-tools
|
@@ -120,9 +120,14 @@ files:
|
|
120
120
|
- lib/ehbrs/runner/vg/wii.rb
|
121
121
|
- lib/ehbrs/runner/videos.rb
|
122
122
|
- lib/ehbrs/runner/videos/extract.rb
|
123
|
+
- lib/ehbrs/runner/videos/probe.rb
|
123
124
|
- lib/ehbrs/runner/videos/series.rb
|
124
125
|
- lib/ehbrs/runner/videos/series/rename.rb
|
125
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
|
126
131
|
- lib/ehbrs/self.rb
|
127
132
|
- lib/ehbrs/self/observers/used_space.rb
|
128
133
|
- lib/ehbrs/self/observers/with_persistence.rb
|
@@ -192,15 +197,34 @@ files:
|
|
192
197
|
- vendor/eac_cli/Gemfile
|
193
198
|
- vendor/eac_cli/eac_cli.gemspec
|
194
199
|
- vendor/eac_cli/lib/eac_cli.rb
|
200
|
+
- vendor/eac_cli/lib/eac_cli/core_ext.rb
|
195
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
|
196
218
|
- vendor/eac_cli/lib/eac_cli/runner.rb
|
197
|
-
- vendor/eac_cli/lib/eac_cli/runner/
|
198
|
-
- vendor/eac_cli/lib/eac_cli/
|
199
|
-
- vendor/eac_cli/lib/eac_cli/
|
200
|
-
- vendor/eac_cli/lib/eac_cli/
|
201
|
-
- vendor/eac_cli/lib/eac_cli/
|
202
|
-
- 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
|
223
|
+
- vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb
|
203
224
|
- vendor/eac_cli/lib/eac_cli/version.rb
|
225
|
+
- vendor/eac_cli/spec/lib/eac_cli/docopt/runner_extension_spec.rb
|
226
|
+
- vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb
|
227
|
+
- vendor/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb
|
204
228
|
- vendor/eac_cli/spec/rubocop_spec.rb
|
205
229
|
- vendor/eac_cli/spec/spec_helper.rb
|
206
230
|
- vendor/eac_docker/Gemfile
|
@@ -222,13 +246,17 @@ files:
|
|
222
246
|
- vendor/eac_ruby_utils/eac_ruby_utils.gemspec
|
223
247
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils.rb
|
224
248
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb
|
249
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb
|
250
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb
|
225
251
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb
|
226
252
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb
|
227
253
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb
|
228
254
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/configs.rb
|
255
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/base.rb
|
229
256
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/configs/file.rb
|
230
257
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/console.rb
|
231
258
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs.rb
|
259
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/console/configs/read_entry_options.rb
|
232
260
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner.rb
|
233
261
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_class_methods.rb
|
234
262
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/console/docopt_runner/_doc.rb
|
@@ -252,8 +280,13 @@ files:
|
|
252
280
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/process.rb
|
253
281
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/spawn.rb
|
254
282
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb
|
283
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb
|
284
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb
|
285
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb
|
286
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb
|
255
287
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/filesystem_cache.rb
|
256
288
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/fs.rb
|
289
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb
|
257
290
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb
|
258
291
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp.rb
|
259
292
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/directory.rb
|
@@ -269,6 +302,7 @@ files:
|
|
269
302
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/common_accessor.rb
|
270
303
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb
|
271
304
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/instance_methods.rb
|
305
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb
|
272
306
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/listable.rb
|
273
307
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/class_methods.rb
|
274
308
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/instance_methods.rb
|
@@ -286,6 +320,9 @@ files:
|
|
286
320
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb
|
287
321
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb
|
288
322
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb
|
323
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb
|
324
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/current.rb
|
325
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/stopped.rb
|
289
326
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash.rb
|
290
327
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/options_consumer.rb
|
291
328
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb
|
@@ -300,16 +337,22 @@ files:
|
|
300
337
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb
|
301
338
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb
|
302
339
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb
|
340
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb
|
303
341
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/template.rb
|
304
342
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb
|
305
343
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb
|
306
344
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb
|
307
345
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb
|
308
346
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb
|
347
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb
|
348
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb
|
309
349
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb
|
310
350
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/default_time_zone_set.rb
|
311
351
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/local_time_zone.rb
|
312
352
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash.rb
|
353
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/entry_key_error.rb
|
354
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/node.rb
|
355
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/paths_hash/path_search.rb
|
313
356
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb
|
314
357
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec.rb
|
315
358
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/conditional.rb
|
@@ -319,6 +362,7 @@ files:
|
|
319
362
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb
|
320
363
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb
|
321
364
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb
|
365
|
+
- vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb
|
322
366
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/templates.rb
|
323
367
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/directory.rb
|
324
368
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/templates/file.rb
|
@@ -332,6 +376,7 @@ files:
|
|
332
376
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb
|
333
377
|
- vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb
|
334
378
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb
|
379
|
+
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb
|
335
380
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb
|
336
381
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb
|
337
382
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/configs_spec.rb
|
@@ -345,9 +390,12 @@ files:
|
|
345
390
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb
|
346
391
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/temp_spec.rb
|
347
392
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb
|
393
|
+
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb
|
348
394
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb
|
349
395
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb
|
350
396
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb
|
397
|
+
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/current_spec.rb
|
398
|
+
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/stopped_spec.rb
|
351
399
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/options_consumer_spec.rb
|
352
400
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/sym_keys_hash_spec.rb
|
353
401
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/console_speaker_spec.rb
|
@@ -364,6 +412,7 @@ files:
|
|
364
412
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby_spec.rb
|
365
413
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb
|
366
414
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb
|
415
|
+
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb
|
367
416
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec.rb
|
368
417
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec_files/expected_content
|
369
418
|
- vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/templates/file_spec_files/source.template
|
@@ -375,6 +424,25 @@ files:
|
|
375
424
|
- vendor/eac_ruby_utils/spec/locales/pt-BR.yml
|
376
425
|
- vendor/eac_ruby_utils/spec/rubocop_check_spec.rb
|
377
426
|
- vendor/eac_ruby_utils/spec/spec_helper.rb
|
427
|
+
- vendor/ehbrs_ruby_utils/Gemfile
|
428
|
+
- vendor/ehbrs_ruby_utils/ehbrs_ruby_utils.gemspec
|
429
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils.rb
|
430
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/executables.rb
|
431
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/version.rb
|
432
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos.rb
|
433
|
+
- 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
|
436
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/quality.rb
|
437
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/resolution.rb
|
438
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils.rb
|
439
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/instance.rb
|
440
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos.rb
|
441
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/file.rb
|
442
|
+
- vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/files_list.rb
|
443
|
+
- vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/resolution_spec.rb
|
444
|
+
- vendor/ehbrs_ruby_utils/spec/rubocop_check_spec.rb
|
445
|
+
- vendor/ehbrs_ruby_utils/spec/spec_helper.rb
|
378
446
|
homepage:
|
379
447
|
licenses: []
|
380
448
|
metadata: {}
|
@@ -393,8 +461,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
393
461
|
- !ruby/object:Gem::Version
|
394
462
|
version: '0'
|
395
463
|
requirements: []
|
396
|
-
|
397
|
-
rubygems_version: 2.7.7
|
464
|
+
rubygems_version: 3.0.8
|
398
465
|
signing_key:
|
399
466
|
specification_version: 4
|
400
467
|
summary: Tools for EHB/RS.
|