ehbrs-tools 0.28.1 → 0.30.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +1 -1
- data/Gemfile +3 -1
- data/Gemfile.lock +130 -77
- data/lib/ehbrs/tools/runner/fs/selected.rb +1 -1
- data/lib/ehbrs/tools/runner/music/selected.rb +2 -2
- data/lib/ehbrs/tools/runner/music/spread.rb +40 -0
- data/lib/ehbrs/tools/runner/vg/wii.rb +2 -2
- data/lib/ehbrs/tools/runner/videos/series/rename.rb +1 -1
- data/lib/ehbrs/tools/runner/web_utils/finances/bills/consume.rb +43 -0
- data/lib/ehbrs/tools/runner/web_utils/finances/bills.rb +22 -0
- data/lib/ehbrs/tools/runner/web_utils/finances.rb +20 -0
- data/lib/ehbrs/tools/version.rb +1 -1
- data/lib/ehbrs/videos/unsupported/profiles/samsung.rb +2 -2
- data/lib/ehbrs/videos/unsupported/search.rb +2 -2
- metadata +6 -559
- data/lib/ehbrs/music/album.rb +0 -44
- data/vendor/aranha-parsers/Gemfile +0 -5
- data/vendor/aranha-parsers/aranha-parsers.gemspec +0 -24
- data/vendor/aranha-parsers/lib/aranha/parsers/base.rb +0 -79
- data/vendor/aranha-parsers/lib/aranha/parsers/html/base.rb +0 -47
- data/vendor/aranha-parsers/lib/aranha/parsers/html/item.rb +0 -24
- data/vendor/aranha-parsers/lib/aranha/parsers/html/item_list.rb +0 -29
- data/vendor/aranha-parsers/lib/aranha/parsers/html/node/base.rb +0 -36
- data/vendor/aranha-parsers/lib/aranha/parsers/html/node/default.rb +0 -126
- data/vendor/aranha-parsers/lib/aranha/parsers/html/node.rb +0 -13
- data/vendor/aranha-parsers/lib/aranha/parsers/html.rb +0 -11
- data/vendor/aranha-parsers/lib/aranha/parsers/invalid_state_exception.rb +0 -8
- data/vendor/aranha-parsers/lib/aranha/parsers/patches/ofx_parser.rb +0 -38
- data/vendor/aranha-parsers/lib/aranha/parsers/patches.rb +0 -11
- data/vendor/aranha-parsers/lib/aranha/parsers/rspec/setup.rb +0 -15
- data/vendor/aranha-parsers/lib/aranha/parsers/rspec/shared_examples/source_target_fixtures.rb +0 -78
- data/vendor/aranha-parsers/lib/aranha/parsers/rspec.rb +0 -11
- data/vendor/aranha-parsers/lib/aranha/parsers/source_address/fetch_content_error.rb +0 -10
- data/vendor/aranha-parsers/lib/aranha/parsers/source_address/file.rb +0 -31
- data/vendor/aranha-parsers/lib/aranha/parsers/source_address/hash_http_get.rb +0 -25
- data/vendor/aranha-parsers/lib/aranha/parsers/source_address/hash_http_post.rb +0 -45
- data/vendor/aranha-parsers/lib/aranha/parsers/source_address/http_get.rb +0 -62
- data/vendor/aranha-parsers/lib/aranha/parsers/source_address.rb +0 -57
- data/vendor/aranha-parsers/lib/aranha/parsers/source_target_fixtures.rb +0 -77
- data/vendor/aranha-parsers/lib/aranha/parsers/version.rb +0 -7
- data/vendor/aranha-parsers/lib/aranha/parsers.rb +0 -9
- data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_address/http_get_spec.rb +0 -21
- data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_address_spec.rb +0 -74
- data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec.rb +0 -27
- data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub1.source.txt +0 -1
- data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub1.target.html +0 -1
- data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub2.source.html +0 -1
- data/vendor/aranha-parsers/spec/lib/aranha/parsers/source_target_fixtures_spec_files/stub3.target.yaml +0 -1
- data/vendor/aranha-parsers/spec/lib/rubocop_check_spec.rb +0 -3
- data/vendor/aranha-parsers/spec/spec_helper.rb +0 -4
- data/vendor/aranha-selenium/Gemfile +0 -5
- data/vendor/aranha-selenium/aranha-selenium.gemspec +0 -19
- data/vendor/aranha-selenium/lib/aranha/selenium/driver_factory/base.rb +0 -84
- data/vendor/aranha-selenium/lib/aranha/selenium/driver_factory/chrome.rb +0 -33
- data/vendor/aranha-selenium/lib/aranha/selenium/driver_factory/firefox.rb +0 -68
- data/vendor/aranha-selenium/lib/aranha/selenium/driver_factory/firefox_auto_download_mime_types +0 -685
- data/vendor/aranha-selenium/lib/aranha/selenium/driver_factory.rb +0 -47
- data/vendor/aranha-selenium/lib/aranha/selenium/session.rb +0 -78
- data/vendor/aranha-selenium/lib/aranha/selenium/version.rb +0 -7
- data/vendor/aranha-selenium/lib/aranha/selenium.rb +0 -8
- data/vendor/aranha-selenium/spec/rubocop_check_spec.rb +0 -3
- data/vendor/aranha-selenium/spec/spec_helper.rb +0 -4
- data/vendor/eac_cli/Gemfile +0 -5
- data/vendor/eac_cli/eac_cli.gemspec +0 -20
- data/vendor/eac_cli/lib/eac_cli/config/entry/options.rb +0 -57
- data/vendor/eac_cli/lib/eac_cli/config/entry/undefined.rb +0 -26
- data/vendor/eac_cli/lib/eac_cli/config/entry.rb +0 -46
- data/vendor/eac_cli/lib/eac_cli/config.rb +0 -18
- data/vendor/eac_cli/lib/eac_cli/core_ext.rb +0 -6
- data/vendor/eac_cli/lib/eac_cli/default_runner.rb +0 -14
- data/vendor/eac_cli/lib/eac_cli/definition/alternative.rb +0 -80
- data/vendor/eac_cli/lib/eac_cli/definition/argument_option.rb +0 -21
- data/vendor/eac_cli/lib/eac_cli/definition/base_option/initialize_args_parser.rb +0 -47
- data/vendor/eac_cli/lib/eac_cli/definition/base_option.rb +0 -66
- data/vendor/eac_cli/lib/eac_cli/definition/boolean_option.rb +0 -27
- data/vendor/eac_cli/lib/eac_cli/definition/help_formatter.rb +0 -77
- data/vendor/eac_cli/lib/eac_cli/definition/positional_argument.rb +0 -61
- data/vendor/eac_cli/lib/eac_cli/definition.rb +0 -99
- data/vendor/eac_cli/lib/eac_cli/old_configs/entry_reader.rb +0 -80
- data/vendor/eac_cli/lib/eac_cli/old_configs/password_entry_reader.rb +0 -16
- data/vendor/eac_cli/lib/eac_cli/old_configs/read_entry_options.rb +0 -44
- data/vendor/eac_cli/lib/eac_cli/old_configs/store_passwords_entry_reader.rb +0 -25
- data/vendor/eac_cli/lib/eac_cli/old_configs.rb +0 -35
- data/vendor/eac_cli/lib/eac_cli/old_configs_bridge.rb +0 -39
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/argv.rb +0 -17
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/double_dash.rb +0 -24
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/long_options.rb +0 -37
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/option_argument.rb +0 -29
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/options.rb +0 -29
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/positionals.rb +0 -30
- data/vendor/eac_cli/lib/eac_cli/parser/alternative/short_options.rb +0 -47
- data/vendor/eac_cli/lib/eac_cli/parser/alternative.rb +0 -92
- data/vendor/eac_cli/lib/eac_cli/parser/collector.rb +0 -46
- data/vendor/eac_cli/lib/eac_cli/parser/error.rb +0 -15
- data/vendor/eac_cli/lib/eac_cli/parser.rb +0 -34
- data/vendor/eac_cli/lib/eac_cli/patches/object/runner_with.rb +0 -26
- data/vendor/eac_cli/lib/eac_cli/patches/object.rb +0 -5
- data/vendor/eac_cli/lib/eac_cli/patches.rb +0 -4
- data/vendor/eac_cli/lib/eac_cli/runner/after_class_methods.rb +0 -46
- data/vendor/eac_cli/lib/eac_cli/runner/context.rb +0 -36
- data/vendor/eac_cli/lib/eac_cli/runner/exit.rb +0 -13
- data/vendor/eac_cli/lib/eac_cli/runner/instance_methods.rb +0 -42
- data/vendor/eac_cli/lib/eac_cli/runner.rb +0 -49
- data/vendor/eac_cli/lib/eac_cli/runner_with/help/builder/alternative.rb +0 -56
- data/vendor/eac_cli/lib/eac_cli/runner_with/help/builder.rb +0 -73
- data/vendor/eac_cli/lib/eac_cli/runner_with/help.rb +0 -41
- data/vendor/eac_cli/lib/eac_cli/runner_with/subcommands/definition_concern.rb +0 -10
- data/vendor/eac_cli/lib/eac_cli/runner_with/subcommands.rb +0 -119
- data/vendor/eac_cli/lib/eac_cli/runner_with.rb +0 -9
- data/vendor/eac_cli/lib/eac_cli/runner_with_set.rb +0 -50
- data/vendor/eac_cli/lib/eac_cli/speaker/_constants.rb +0 -12
- data/vendor/eac_cli/lib/eac_cli/speaker/list.rb +0 -61
- data/vendor/eac_cli/lib/eac_cli/speaker/options.rb +0 -38
- data/vendor/eac_cli/lib/eac_cli/speaker.rb +0 -127
- data/vendor/eac_cli/lib/eac_cli/version.rb +0 -5
- data/vendor/eac_cli/lib/eac_cli.rb +0 -7
- data/vendor/eac_cli/spec/lib/eac_cli/definition/alternative_spec.rb +0 -18
- data/vendor/eac_cli/spec/lib/eac_cli/old_configs_spec.rb +0 -14
- data/vendor/eac_cli/spec/lib/eac_cli/parser/alternative_spec.rb +0 -140
- data/vendor/eac_cli/spec/lib/eac_cli/runner_spec.rb +0 -129
- data/vendor/eac_cli/spec/lib/eac_cli/runner_with/help_spec.rb +0 -42
- data/vendor/eac_cli/spec/lib/eac_cli/runner_with/subcommands_spec.rb +0 -85
- data/vendor/eac_cli/spec/lib/eac_cli/speaker_spec.rb +0 -32
- data/vendor/eac_cli/spec/rubocop_spec.rb +0 -3
- data/vendor/eac_cli/spec/spec_helper.rb +0 -4
- data/vendor/eac_config/Gemfile +0 -5
- data/vendor/eac_config/eac_config.gemspec +0 -19
- data/vendor/eac_config/lib/eac_config/entry.rb +0 -49
- data/vendor/eac_config/lib/eac_config/entry_path.rb +0 -41
- data/vendor/eac_config/lib/eac_config/envvars_node/entry.rb +0 -54
- data/vendor/eac_config/lib/eac_config/envvars_node.rb +0 -25
- data/vendor/eac_config/lib/eac_config/load_nodes_search.rb +0 -39
- data/vendor/eac_config/lib/eac_config/load_path.rb +0 -28
- data/vendor/eac_config/lib/eac_config/node.rb +0 -67
- data/vendor/eac_config/lib/eac_config/node_entry.rb +0 -18
- data/vendor/eac_config/lib/eac_config/node_uri.rb +0 -38
- data/vendor/eac_config/lib/eac_config/old_configs/base.rb +0 -43
- data/vendor/eac_config/lib/eac_config/old_configs/file.rb +0 -47
- data/vendor/eac_config/lib/eac_config/old_configs.rb +0 -75
- data/vendor/eac_config/lib/eac_config/paths_hash/entry_key_error.rb +0 -8
- data/vendor/eac_config/lib/eac_config/paths_hash/node.rb +0 -67
- data/vendor/eac_config/lib/eac_config/paths_hash/path_search.rb +0 -39
- data/vendor/eac_config/lib/eac_config/paths_hash.rb +0 -56
- data/vendor/eac_config/lib/eac_config/version.rb +0 -5
- data/vendor/eac_config/lib/eac_config/yaml_file_node/entry.rb +0 -37
- data/vendor/eac_config/lib/eac_config/yaml_file_node.rb +0 -48
- data/vendor/eac_config/lib/eac_config.rb +0 -7
- data/vendor/eac_config/spec/lib/eac_config/entry_path_spec.rb +0 -30
- data/vendor/eac_config/spec/lib/eac_config/envvars_node/entry_spec.rb +0 -14
- data/vendor/eac_config/spec/lib/eac_config/envvars_node_spec.rb +0 -40
- data/vendor/eac_config/spec/lib/eac_config/old_configs_spec.rb +0 -46
- data/vendor/eac_config/spec/lib/eac_config/paths_hash_spec.rb +0 -88
- data/vendor/eac_config/spec/lib/eac_config/yaml_file_node_spec.rb +0 -52
- data/vendor/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1.yaml +0 -6
- data/vendor/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_1.yaml +0 -2
- data/vendor/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2/storage1_2_1.yaml +0 -2
- data/vendor/eac_config/spec/lib/eac_config/yaml_file_node_spec_files/storage1_2.yaml +0 -4
- data/vendor/eac_config/spec/rubocop_spec.rb +0 -3
- data/vendor/eac_config/spec/spec_helper.rb +0 -4
- data/vendor/eac_docker/Gemfile +0 -5
- data/vendor/eac_docker/eac_docker.gemspec +0 -19
- data/vendor/eac_docker/lib/eac_docker/container.rb +0 -78
- data/vendor/eac_docker/lib/eac_docker/debug.rb +0 -15
- data/vendor/eac_docker/lib/eac_docker/executables.rb +0 -18
- data/vendor/eac_docker/lib/eac_docker/images/base.rb +0 -14
- data/vendor/eac_docker/lib/eac_docker/images/coded.rb +0 -43
- data/vendor/eac_docker/lib/eac_docker/images/named.rb +0 -30
- data/vendor/eac_docker/lib/eac_docker/images/templatized.rb +0 -41
- data/vendor/eac_docker/lib/eac_docker/images.rb +0 -9
- data/vendor/eac_docker/lib/eac_docker/registry.rb +0 -17
- data/vendor/eac_docker/lib/eac_docker/rspec/setup.rb +0 -17
- data/vendor/eac_docker/lib/eac_docker/rspec.rb +0 -9
- data/vendor/eac_docker/lib/eac_docker/version.rb +0 -5
- data/vendor/eac_docker/lib/eac_docker.rb +0 -7
- data/vendor/eac_docker/spec/lib/eac_docker/executables_spec.rb +0 -9
- data/vendor/eac_docker/spec/lib/eac_docker/images/coded_spec.rb +0 -12
- data/vendor/eac_docker/spec/lib/eac_docker/images/coded_spec_files/image1/Dockerfile +0 -1
- data/vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec.rb +0 -18
- data/vendor/eac_docker/spec/lib/eac_docker/images/templatized_spec_files/stub_docker_image/Dockerfile +0 -1
- data/vendor/eac_docker/spec/rubocop_spec.rb +0 -3
- data/vendor/eac_docker/spec/spec_helper.rb +0 -4
- data/vendor/eac_fs/Gemfile +0 -5
- data/vendor/eac_fs/eac_fs.gemspec +0 -20
- data/vendor/eac_fs/lib/eac_fs/cache.rb +0 -64
- data/vendor/eac_fs/lib/eac_fs/file_info.rb +0 -24
- data/vendor/eac_fs/lib/eac_fs/patches/module/fs_cache.rb +0 -10
- data/vendor/eac_fs/lib/eac_fs/patches/module.rb +0 -4
- data/vendor/eac_fs/lib/eac_fs/patches/object/fs_cache.rb +0 -10
- data/vendor/eac_fs/lib/eac_fs/patches/object.rb +0 -4
- data/vendor/eac_fs/lib/eac_fs/patches/pathname/info.rb +0 -12
- data/vendor/eac_fs/lib/eac_fs/patches/pathname.rb +0 -4
- data/vendor/eac_fs/lib/eac_fs/patches.rb +0 -4
- data/vendor/eac_fs/lib/eac_fs/version.rb +0 -5
- data/vendor/eac_fs/lib/eac_fs.rb +0 -7
- data/vendor/eac_fs/spec/lib/eac_fs/cache_spec.rb +0 -32
- data/vendor/eac_fs/spec/rubocop_spec.rb +0 -3
- data/vendor/eac_fs/spec/spec_helper.rb +0 -4
- data/vendor/eac_ruby_base0/Gemfile +0 -5
- data/vendor/eac_ruby_base0/eac_ruby_base0.gemspec +0 -21
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application.rb +0 -83
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/application_xdg.rb +0 -34
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/core_ext.rb +0 -5
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/jobs_runner.rb +0 -31
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class/jobs_runner.rb +0 -10
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/class.rb +0 -4
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object/runner_with.rb +0 -5
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches/object.rb +0 -5
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/patches.rb +0 -4
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner/test_all.rb +0 -22
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner.rb +0 -73
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/confirmation.rb +0 -43
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/filesystem_traverser.rb +0 -52
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/input.rb +0 -36
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with/output.rb +0 -58
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/runner_with.rb +0 -9
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0/version.rb +0 -5
- data/vendor/eac_ruby_base0/lib/eac_ruby_base0.rb +0 -7
- data/vendor/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/confirmation_spec.rb +0 -42
- data/vendor/eac_ruby_base0/spec/lib/eac_ruby_base0/runner_with/output_spec.rb +0 -81
- data/vendor/eac_ruby_base0/spec/rubocop_spec.rb +0 -3
- data/vendor/eac_ruby_base0/spec/spec_helper.rb +0 -4
- data/vendor/eac_ruby_gems_utils/Gemfile +0 -5
- data/vendor/eac_ruby_gems_utils/LICENCE +0 -16
- data/vendor/eac_ruby_gems_utils/README.rdoc +0 -3
- data/vendor/eac_ruby_gems_utils/eac_ruby_gems_utils.gemspec +0 -30
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/command.rb +0 -33
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem/version_file.rb +0 -41
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/gem.rb +0 -97
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/base.rb +0 -58
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/minitest.rb +0 -25
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/decorated_gem.rb +0 -48
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple/result.rb +0 -25
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/multiple.rb +0 -84
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests/rspec.rb +0 -21
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/tests.rb +0 -9
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils/version.rb +0 -5
- data/vendor/eac_ruby_gems_utils/lib/eac_ruby_gems_utils.rb +0 -7
- data/vendor/eac_ruby_gems_utils/spec/code/rubocop_check_spec.rb +0 -3
- data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec.rb +0 -14
- data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem/version_file_spec_files/a_version_file.rb +0 -7
- data/vendor/eac_ruby_gems_utils/spec/lib/eac_ruby_gems_utils/gem_spec.rb +0 -20
- data/vendor/eac_ruby_gems_utils/spec/spec_helper.rb +0 -4
- data/vendor/eac_ruby_gems_utils/spec/support/mygem/Gemfile +0 -5
- data/vendor/eac_ruby_gems_utils/spec/support/mygem/Gemfile.lock +0 -19
- data/vendor/eac_ruby_gems_utils/spec/support/mygem/Rakefile +0 -14
- data/vendor/eac_ruby_gems_utils/spec/support/mygem/exe/myrunner +0 -5
- data/vendor/eac_ruby_gems_utils/spec/support/mygem/lib/mygem/version.rb +0 -5
- data/vendor/eac_ruby_gems_utils/spec/support/mygem/lib/mygem.rb +0 -5
- data/vendor/eac_ruby_gems_utils/spec/support/mygem/mygem.gemspec +0 -16
- data/vendor/eac_ruby_utils/Gemfile +0 -16
- data/vendor/eac_ruby_utils/MIT-LICENCE +0 -16
- data/vendor/eac_ruby_utils/README.rdoc +0 -3
- data/vendor/eac_ruby_utils/eac_ruby_utils.gemspec +0 -23
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/abstract_methods.rb +0 -60
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb +0 -81
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb +0 -19
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb +0 -31
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb +0 -23
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb +0 -52
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb +0 -41
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +0 -20
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_initialize.rb +0 -29
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/instance_initialize.rb +0 -53
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/super_args.rb +0 -54
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb +0 -89
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/compact.rb +0 -22
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/context.rb +0 -31
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb +0 -21
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/core_ext.rb +0 -5
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/custom_format.rb +0 -53
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/base_env.rb +0 -28
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/concat.rb +0 -33
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/envvars.rb +0 -24
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb +0 -33
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb +0 -172
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb +0 -63
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb +0 -22
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/local_env.rb +0 -17
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/process.rb +0 -19
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/spawn.rb +0 -32
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb +0 -53
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb +0 -25
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb +0 -24
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb +0 -34
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb +0 -75
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/envs.rb +0 -23
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb +0 -57
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb +0 -30
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/logs.rb +0 -63
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/directory.rb +0 -16
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/file.rb +0 -34
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/temp.rb +0 -52
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traversable.rb +0 -47
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs/traverser.rb +0 -72
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/fs.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +0 -75
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +0 -35
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/array_accessor.rb +0 -32
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/base_accessor.rb +0 -23
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/boolean_accessor.rb +0 -16
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/class_methods.rb +0 -20
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/common_accessor.rb +0 -30
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/hash_accessor.rb +0 -46
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable/instance_methods.rb +0 -21
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/immutable.rb +0 -15
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +0 -29
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/class_methods.rb +0 -14
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/instance_methods.rb +0 -30
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/integer_list.rb +0 -23
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +0 -99
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/lists.rb +0 -59
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb +0 -19
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/symbol_list.rb +0 -19
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable/value.rb +0 -39
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/listable.rb +0 -17
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +0 -48
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/on_clean_ruby_environment.rb +0 -12
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/options_consumer.rb +0 -62
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patch.rb +0 -11
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb +0 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb +0 -45
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/current.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/stopped.rb +0 -14
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/options_consumer.rb +0 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb +0 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/hash.rb +0 -5
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb +0 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb +0 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/context.rb +0 -11
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb +0 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/listable.rb +0 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/patch.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/require_sub.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/simple_cache.rb +0 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module/speaker.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb +0 -14
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/compact.rb +0 -20
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb +0 -17
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb +0 -17
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb +0 -19
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb +0 -22
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb +0 -15
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb +0 -5
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb +0 -11
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb +0 -16
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/to_parser.rb +0 -10
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/delimited.rb +0 -16
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +0 -11
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb +0 -11
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/patches.rb +0 -4
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/recursive_builder.rb +0 -51
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/regexp_parser.rb +0 -34
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +0 -81
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/default_setup.rb +0 -20
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb +0 -17
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup.rb +0 -12
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup_manager.rb +0 -49
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/rspec.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb +0 -32
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb +0 -26
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/ruby.rb +0 -9
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb +0 -69
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb +0 -46
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +0 -67
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +0 -57
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker/sender.rb +0 -32
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/speaker.rb +0 -16
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/string_delimited.rb +0 -70
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +0 -63
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/version.rb +0 -5
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb +0 -105
- data/vendor/eac_ruby_utils/lib/eac_ruby_utils.rb +0 -6
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/abstract_methods_spec.rb +0 -28
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb +0 -17
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb +0 -16
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb +0 -65
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb +0 -125
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/compact_spec.rb +0 -20
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/custom_format_spec.rb +0 -60
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/executable_spec.rb +0 -37
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/ssh_env_spec.rb +0 -25
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb +0 -18
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/temp_spec.rb +0 -12
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb +0 -52
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +0 -16
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb +0 -212
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb +0 -17
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb +0 -45
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb +0 -39
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/current_spec.rb +0 -26
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/stopped_spec.rb +0 -32
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/options_consumer_spec.rb +0 -17
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/sym_keys_hash_spec.rb +0 -13
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/listable_spec.rb +0 -13
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/simple_cache_spec.rb +0 -13
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/speaker_spec.rb +0 -13
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/compact_spec.rb +0 -20
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/if_present_spec.rb +0 -13
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec_files/path/my_stub_with_template +0 -1
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb +0 -17
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/parent_n_spec.rb +0 -33
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb +0 -34
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/recursive_builder_spec.rb +0 -65
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_module_a.rb +0 -6
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec/stubbed_not_module.rb +0 -6
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub_spec.rb +0 -19
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby_spec.rb +0 -22
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb +0 -54
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb +0 -129
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +0 -57
- data/vendor/eac_ruby_utils/spec/lib/eac_ruby_utils/yaml_spec.rb +0 -75
- data/vendor/eac_ruby_utils/spec/locales/pt-BR.yml +0 -55
- data/vendor/eac_ruby_utils/spec/rubocop_check_spec.rb +0 -3
- data/vendor/eac_ruby_utils/spec/spec_helper.rb +0 -15
- data/vendor/eac_templates/Gemfile +0 -5
- data/vendor/eac_templates/eac_templates.gemspec +0 -19
- data/vendor/eac_templates/lib/eac_templates/directory.rb +0 -108
- data/vendor/eac_templates/lib/eac_templates/file.rb +0 -48
- data/vendor/eac_templates/lib/eac_templates/patches/module/erb_template.rb +0 -9
- data/vendor/eac_templates/lib/eac_templates/patches/module/template.rb +0 -10
- data/vendor/eac_templates/lib/eac_templates/patches/module.rb +0 -4
- data/vendor/eac_templates/lib/eac_templates/patches/object/erb_template.rb +0 -9
- data/vendor/eac_templates/lib/eac_templates/patches/object/template.rb +0 -9
- data/vendor/eac_templates/lib/eac_templates/patches/object.rb +0 -4
- data/vendor/eac_templates/lib/eac_templates/patches.rb +0 -4
- data/vendor/eac_templates/lib/eac_templates/searcher.rb +0 -53
- data/vendor/eac_templates/lib/eac_templates/variable_not_found_error.rb +0 -5
- data/vendor/eac_templates/lib/eac_templates/variable_providers/base.rb +0 -21
- data/vendor/eac_templates/lib/eac_templates/variable_providers/config_reader.rb +0 -27
- data/vendor/eac_templates/lib/eac_templates/variable_providers/entries_reader.rb +0 -23
- data/vendor/eac_templates/lib/eac_templates/variable_providers/generic.rb +0 -23
- data/vendor/eac_templates/lib/eac_templates/variable_providers/hash.rb +0 -27
- data/vendor/eac_templates/lib/eac_templates/variable_providers.rb +0 -23
- data/vendor/eac_templates/lib/eac_templates/version.rb +0 -5
- data/vendor/eac_templates/lib/eac_templates.rb +0 -7
- data/vendor/eac_templates/spec/lib/eac_templates/file_spec.rb +0 -35
- data/vendor/eac_templates/spec/lib/eac_templates/file_spec_files/expected_content +0 -2
- data/vendor/eac_templates/spec/lib/eac_templates/file_spec_files/source.template +0 -2
- data/vendor/eac_templates/spec/lib/eac_templates/searcher_spec.rb +0 -30
- data/vendor/eac_templates/spec/lib/eac_templates/searcher_spec_files/path1/subdir1/file1.template +0 -1
- data/vendor/eac_templates/spec/lib/eac_templates/searcher_spec_files/path1/subdir1/file2 +0 -1
- data/vendor/eac_templates/spec/lib/eac_templates/searcher_spec_files/path2/subdir1/file3.template +0 -1
- data/vendor/eac_templates/spec/lib/object/template_spec.rb +0 -23
- data/vendor/eac_templates/spec/lib/object/template_spec_files/path/my_stub_with_template +0 -1
- data/vendor/eac_templates/spec/rubocop_spec.rb +0 -3
- data/vendor/eac_templates/spec/spec_helper.rb +0 -4
- data/vendor/ehbrs_ruby_utils/Gemfile +0 -16
- data/vendor/ehbrs_ruby_utils/ehbrs_ruby_utils.gemspec +0 -27
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/core_ext.rb +0 -5
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/executables.rb +0 -28
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/finances/bb_browser/docker_image.rb +0 -18
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/fs/compressed_package.rb +0 -48
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/fs/selected/build.rb +0 -41
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/fs/selected/build_file.rb +0 -27
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/fs/selected.rb +0 -35
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/fs.rb +0 -10
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music/lyrics_book/album.rb +0 -42
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music/lyrics_book/resource.rb +0 -64
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music/lyrics_book/song.rb +0 -68
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music/lyrics_book.rb +0 -65
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/music.rb +0 -9
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/patches/object/template.rb +0 -6
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/patches/object.rb +0 -4
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/patches.rb +0 -4
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/version.rb +0 -5
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/container.rb +0 -70
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/convert_job.rb +0 -91
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/quality.rb +0 -68
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/resolution.rb +0 -68
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos/stream.rb +0 -61
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/videos.rb +0 -9
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/instance.rb +0 -32
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/file/rename.rb +0 -28
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/file.rb +0 -43
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos/files_list.rb +0 -76
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils/videos.rb +0 -11
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils/web_utils.rb +0 -9
- data/vendor/ehbrs_ruby_utils/lib/ehbrs_ruby_utils.rb +0 -7
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/resolution_spec.rb +0 -18
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec.rb +0 -13
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_attachment.source.yaml +0 -28
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_attachment.target.yaml +0 -7
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.source.yaml +0 -49
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_audio.target.yaml +0 -7
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_subtitle.source.yaml +0 -43
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_subtitle.target.yaml +0 -7
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_video.source.yaml +0 -59
- data/vendor/ehbrs_ruby_utils/spec/lib/ehbrs_ruby_utils/videos/stream_spec_files/menina_ovo_video.target.yaml +0 -7
- data/vendor/ehbrs_ruby_utils/spec/rubocop_check_spec.rb +0 -3
- data/vendor/ehbrs_ruby_utils/spec/spec_helper.rb +0 -4
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/Dockerfile +0 -44
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/Makefile +0 -35
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/README.md +0 -16
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/context/firefox.service +0 -8
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/finances/bb_browser/docker_image/context/startbrowser.sh +0 -9
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/album/inner.html.erb +0 -3
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/custom_style.css +0 -15
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/index.html.erb +0 -14
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/main.html.erb +0 -24
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/resource/main.html.erb +0 -8
- data/vendor/ehbrs_ruby_utils/template/ehbrs_ruby_utils/music/lyrics_book/song/inner.html.erb +0 -9
- data/vendor/ultimate_lyrics/Gemfile +0 -5
- data/vendor/ultimate_lyrics/bin/download_parser_spec_files.rb +0 -94
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/field.rb +0 -83
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/lyrics.rb +0 -13
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/parser.rb +0 -28
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/exclude_item.rb +0 -17
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/extract_item.rb +0 -21
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/item.rb +0 -48
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/replace_fields.rb +0 -13
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/rule.rb +0 -52
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider/url_format.rb +0 -21
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider.rb +0 -96
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/provider_search.rb +0 -43
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/providers_data.xml +0 -356
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/song_metadata/field.rb +0 -24
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/song_metadata.rb +0 -28
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics/version.rb +0 -5
- data/vendor/ultimate_lyrics/lib/ultimate_lyrics.rb +0 -7
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec.rb +0 -20
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__michael_jackson_thriller.source.html +0 -8
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__michael_jackson_thriller.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__michael_jackson_thriller.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__milton_nascimento_rouxinol.source.html +0 -8
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__milton_nascimento_rouxinol.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/encyclopaedia_metallum__milton_nascimento_rouxinol.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__michael_jackson_thriller.source.html +0 -193
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__michael_jackson_thriller.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__michael_jackson_thriller.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__milton_nascimento_rouxinol.source.html +0 -193
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__milton_nascimento_rouxinol.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/hindilyrics_net_bollywood_songs__milton_nascimento_rouxinol.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__michael_jackson_thriller.source.html +0 -87
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__michael_jackson_thriller.target.yaml +0 -36
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__michael_jackson_thriller.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__milton_nascimento_rouxinol.source.html +0 -4
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__milton_nascimento_rouxinol.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyrics_com__milton_nascimento_rouxinol.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__michael_jackson_thriller.source.html +0 -2
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__michael_jackson_thriller.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__michael_jackson_thriller.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__milton_nascimento_rouxinol.source.html +0 -2
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__milton_nascimento_rouxinol.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsplugin_com__milton_nascimento_rouxinol.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsreg_com__milton_nascimento_rouxinol.source.html +0 -101
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsreg_com__milton_nascimento_rouxinol.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/lyricsreg_com__milton_nascimento_rouxinol.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__michael_jackson_thriller.source.html +0 -29
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__michael_jackson_thriller.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__michael_jackson_thriller.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__milton_nascimento_rouxinol.source.html +0 -29
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__milton_nascimento_rouxinol.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/mp3lyrics_org__milton_nascimento_rouxinol.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/songlyrics_com__michael_jackson_thriller.source.html +0 -1301
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/songlyrics_com__michael_jackson_thriller.target.yaml +0 -3
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/parser_spec_files/songlyrics_com__michael_jackson_thriller.url +0 -1
- data/vendor/ultimate_lyrics/spec/lib/ultimate_lyrics/provider_search_spec.rb +0 -72
- data/vendor/ultimate_lyrics/spec/rubocop_spec.rb +0 -3
- data/vendor/ultimate_lyrics/spec/spec_helper.rb +0 -4
- data/vendor/ultimate_lyrics/ultimate_lyrics.gemspec +0 -21
@@ -1,65 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/recursive_builder'
|
4
|
-
|
5
|
-
RSpec.describe ::EacRubyUtils::RecursiveBuilder do
|
6
|
-
let(:item_class) do
|
7
|
-
::Class.new do
|
8
|
-
class << self
|
9
|
-
def create(label, dependencies_keys)
|
10
|
-
item = new(label, dependencies_keys)
|
11
|
-
registry[item.label] = item
|
12
|
-
item
|
13
|
-
end
|
14
|
-
|
15
|
-
def registry
|
16
|
-
@registry ||= {}
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
attr_reader :label, :dependencies_keys
|
21
|
-
|
22
|
-
def initialize(label, dependencies_keys)
|
23
|
-
@label = label
|
24
|
-
@dependencies_keys = dependencies_keys.freeze
|
25
|
-
end
|
26
|
-
|
27
|
-
def dependencies
|
28
|
-
dependencies_keys.map { |key| self.class.registry.fetch(key) }
|
29
|
-
end
|
30
|
-
|
31
|
-
def to_s
|
32
|
-
label
|
33
|
-
end
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
items = [
|
38
|
-
[:a, %w[c], %w[a c]],
|
39
|
-
[:b, %w[a], %w[b a c]],
|
40
|
-
[:c, [], %w[c]],
|
41
|
-
[:d, %w[a b c e], %w[d a b c e]],
|
42
|
-
[:e, %w[c b], %w[e c b a]]
|
43
|
-
]
|
44
|
-
|
45
|
-
items.each do |item|
|
46
|
-
let(item[0]) { item_class.create(item[0].to_s, item[1]) }
|
47
|
-
before { send(item[0]) }
|
48
|
-
end
|
49
|
-
|
50
|
-
describe '#result' do
|
51
|
-
items.each do |item|
|
52
|
-
context "when root is \"#{item[0]}\"" do
|
53
|
-
let(:root) { send(item[0]) }
|
54
|
-
let(:dependencies) { item[2].map { |d| send(d) } }
|
55
|
-
let(:builder) do
|
56
|
-
described_class.new(root, &:dependencies)
|
57
|
-
end
|
58
|
-
|
59
|
-
it "is #{item[2]}" do
|
60
|
-
expect(builder.result).to eq(dependencies)
|
61
|
-
end
|
62
|
-
end
|
63
|
-
end
|
64
|
-
end
|
65
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/require_sub'
|
4
|
-
|
5
|
-
RSpec.describe ::EacRubyUtils::RequireSub do
|
6
|
-
class RequireSubStubClass
|
7
|
-
end
|
8
|
-
|
9
|
-
let(:instance) { described_class.new(__FILE__, base: RequireSubStubClass, include_modules: true) }
|
10
|
-
|
11
|
-
before do
|
12
|
-
instance.apply
|
13
|
-
end
|
14
|
-
|
15
|
-
it do
|
16
|
-
expect(RequireSubStubClass.included_modules)
|
17
|
-
.to include(RequireSubStubClass::StubbedModuleA)
|
18
|
-
end
|
19
|
-
end
|
@@ -1,22 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/ruby'
|
4
|
-
|
5
|
-
RSpec.describe ::EacRubyUtils::Ruby do
|
6
|
-
describe '#on_clean_environment' do
|
7
|
-
let(:envvar_name) { 'BUNDLE_NOT_EXISTENT_ENV_VAR' }
|
8
|
-
let(:envvar_value) { 'any value' }
|
9
|
-
|
10
|
-
before do
|
11
|
-
ENV[envvar_name] = envvar_value
|
12
|
-
end
|
13
|
-
|
14
|
-
it do # rubocop:disable RSpec/MultipleExpectations
|
15
|
-
expect(ENV[envvar_name]).to eq(envvar_value)
|
16
|
-
described_class.on_clean_environment do
|
17
|
-
expect(ENV[envvar_name]).to eq(nil)
|
18
|
-
end
|
19
|
-
expect(ENV[envvar_name]).to eq(envvar_value)
|
20
|
-
end
|
21
|
-
end
|
22
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/settings_provider'
|
4
|
-
|
5
|
-
RSpec.describe ::EacRubyUtils::SettingsProvider do
|
6
|
-
class MyStubSettingsProvided
|
7
|
-
include ::EacRubyUtils::SettingsProvider
|
8
|
-
|
9
|
-
KEY_A = 'constant_a'
|
10
|
-
KEY_D = 'constant_d'
|
11
|
-
|
12
|
-
def key_a
|
13
|
-
'method_a'
|
14
|
-
end
|
15
|
-
|
16
|
-
def key_b
|
17
|
-
'method_b'
|
18
|
-
end
|
19
|
-
|
20
|
-
def settings
|
21
|
-
{ 'key_b' => 'setting_b', key_c: 'setting_c' }
|
22
|
-
end
|
23
|
-
end
|
24
|
-
|
25
|
-
let(:stub) { MyStubSettingsProvided.new }
|
26
|
-
|
27
|
-
describe '#setting_value' do
|
28
|
-
{
|
29
|
-
['key_a'] => 'method_a',
|
30
|
-
[:key_b] => 'setting_b',
|
31
|
-
['key_b', { order: %w[constant method settings_object] }] => 'method_b',
|
32
|
-
['key_c'] => 'setting_c',
|
33
|
-
['key_d'] => 'constant_d'
|
34
|
-
}.each do |args, expected_value|
|
35
|
-
it { expect(stub.setting_value(*args)).to eq(expected_value) }
|
36
|
-
end
|
37
|
-
|
38
|
-
it do
|
39
|
-
expect { stub.setting_value('key_e') }.to raise_error(::StandardError)
|
40
|
-
end
|
41
|
-
|
42
|
-
it do
|
43
|
-
expect(stub.setting_value('key_e', required: false)).to eq(nil)
|
44
|
-
end
|
45
|
-
|
46
|
-
it do
|
47
|
-
expect(stub.setting_value('key_e', default: nil)).to eq(nil)
|
48
|
-
end
|
49
|
-
|
50
|
-
it do
|
51
|
-
expect(stub.setting_value('key_e', default: 'default_e')).to eq('default_e')
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|
@@ -1,129 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/simple_cache'
|
4
|
-
|
5
|
-
class CacheableObject
|
6
|
-
include ::EacRubyUtils::SimpleCache
|
7
|
-
|
8
|
-
def my_method_uncached
|
9
|
-
@counter ||= 0
|
10
|
-
@counter += 1
|
11
|
-
end
|
12
|
-
|
13
|
-
def method_with_question_uncached?
|
14
|
-
'question'
|
15
|
-
end
|
16
|
-
|
17
|
-
def method_with_exclamation_uncached!
|
18
|
-
'exclamation'
|
19
|
-
end
|
20
|
-
|
21
|
-
def method_with_args_uncached(arg1)
|
22
|
-
@counter2 ||= 0
|
23
|
-
@counter2 += 1
|
24
|
-
"#{arg1}/#{@counter2}"
|
25
|
-
end
|
26
|
-
|
27
|
-
def method_with_reset_uncached
|
28
|
-
reset_cache
|
29
|
-
'result'
|
30
|
-
end
|
31
|
-
|
32
|
-
private
|
33
|
-
|
34
|
-
def private_method_uncached
|
35
|
-
@counter3 ||= 0
|
36
|
-
@counter3 += 1
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
RSpec.describe ::EacRubyUtils::SimpleCache do
|
41
|
-
let(:instance) { CacheableObject.new }
|
42
|
-
|
43
|
-
describe 'cached value' do
|
44
|
-
it 'uncached method return value should update at each call' do
|
45
|
-
expect(instance.my_method_uncached).not_to eq(instance.my_method_uncached)
|
46
|
-
end
|
47
|
-
|
48
|
-
it 'cached method should return same values at each call' do
|
49
|
-
expect(instance.my_method).to eq(instance.my_method)
|
50
|
-
end
|
51
|
-
|
52
|
-
it 'is able to call private uncached as cached' do
|
53
|
-
expect(instance.private_method).to eq(instance.private_method)
|
54
|
-
end
|
55
|
-
|
56
|
-
it 'return value even if reset cache' do
|
57
|
-
expect(instance.method_with_reset).to eq('result')
|
58
|
-
end
|
59
|
-
end
|
60
|
-
|
61
|
-
describe 'cache value with args' do
|
62
|
-
it do
|
63
|
-
expect(instance.method_with_args_uncached('123'))
|
64
|
-
.not_to eq(instance.method_with_args_uncached('123'))
|
65
|
-
end
|
66
|
-
|
67
|
-
it do
|
68
|
-
expect(instance.method_with_args_uncached('456'))
|
69
|
-
.not_to eq(instance.method_with_args_uncached('456'))
|
70
|
-
end
|
71
|
-
|
72
|
-
it do
|
73
|
-
expect(instance.method_with_args('123')).to eq(instance.method_with_args('123'))
|
74
|
-
end
|
75
|
-
|
76
|
-
it do
|
77
|
-
expect(instance.method_with_args('456')).to eq(instance.method_with_args('456'))
|
78
|
-
end
|
79
|
-
|
80
|
-
it do
|
81
|
-
expect(instance.method_with_args('456')).not_to eq(instance.method_with_args('123'))
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
describe 'method with marks' do
|
86
|
-
it 'found uncached method with exclamation mark' do
|
87
|
-
expect(instance.method_with_exclamation!).to eq('exclamation')
|
88
|
-
end
|
89
|
-
|
90
|
-
it 'found uncached method with question mark' do
|
91
|
-
expect(instance.method_with_question?).to eq('question')
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe '#respond_to?' do
|
96
|
-
it 'responds to cached method without args' do
|
97
|
-
expect(instance.respond_to?(:my_method)).to be(true)
|
98
|
-
end
|
99
|
-
|
100
|
-
it 'responds to cached method with args' do
|
101
|
-
expect(instance.respond_to?(:method_with_args)).to be(true)
|
102
|
-
end
|
103
|
-
|
104
|
-
it 'responds to cached method of uncached private method' do
|
105
|
-
expect(instance.respond_to?(:private_method)).to be(true)
|
106
|
-
end
|
107
|
-
|
108
|
-
it 'not respond to not existent method' do
|
109
|
-
expect(instance.respond_to?(:not_exist)).to be(false)
|
110
|
-
end
|
111
|
-
end
|
112
|
-
|
113
|
-
describe '#reset_cache' do
|
114
|
-
let(:instance) { CacheableObject.new }
|
115
|
-
let(:cached_value) { instance.my_method }
|
116
|
-
|
117
|
-
it 'cached method return should return cached value' do
|
118
|
-
expect(instance.my_method).to eq(cached_value)
|
119
|
-
end
|
120
|
-
|
121
|
-
context 'when reset_cache method is called' do
|
122
|
-
it 'cached method return should return new cached value' do
|
123
|
-
cached_value
|
124
|
-
instance.reset_cache
|
125
|
-
expect(instance.my_method).not_to eq(cached_value)
|
126
|
-
end
|
127
|
-
end
|
128
|
-
end
|
129
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/struct'
|
4
|
-
|
5
|
-
RSpec.describe ::EacRubyUtils::Struct do
|
6
|
-
let(:instance) { described_class.new('a' => 1, b: '') }
|
7
|
-
let(:other) { described_class.new('a' => 'm1', c: 'm2') }
|
8
|
-
|
9
|
-
describe '#[]' do
|
10
|
-
it { expect(instance[:a]).to eq(1) }
|
11
|
-
it { expect(instance['a']).to eq(1) }
|
12
|
-
it { expect(instance[:a?]).to eq(true) }
|
13
|
-
it { expect(instance['a?']).to eq(true) }
|
14
|
-
it { expect(instance[:b]).to eq('') }
|
15
|
-
it { expect(instance['b']).to eq('') }
|
16
|
-
it { expect(instance[:b?]).to eq(false) }
|
17
|
-
it { expect(instance['b?']).to eq(false) }
|
18
|
-
it { expect(instance[:c]).to eq(nil) }
|
19
|
-
it { expect(instance['c']).to eq(nil) }
|
20
|
-
it { expect(instance[:c?]).to eq(false) }
|
21
|
-
it { expect(instance['c?']).to eq(false) }
|
22
|
-
end
|
23
|
-
|
24
|
-
describe '#fetch' do
|
25
|
-
it { expect(instance.fetch(:a)).to eq(1) }
|
26
|
-
it { expect(instance.fetch('a')).to eq(1) }
|
27
|
-
it { expect(instance.fetch(:a?)).to eq(true) }
|
28
|
-
it { expect(instance.fetch('a?')).to eq(true) }
|
29
|
-
it { expect(instance.fetch(:b)).to eq('') }
|
30
|
-
it { expect(instance.fetch('b')).to eq('') }
|
31
|
-
it { expect(instance.fetch(:b?)).to eq(false) }
|
32
|
-
it { expect(instance.fetch('b?')).to eq(false) }
|
33
|
-
it { expect { instance.fetch(:c) }.to raise_error(::KeyError) }
|
34
|
-
it { expect { instance.fetch('c') }.to raise_error(::KeyError) }
|
35
|
-
it { expect { instance.fetch(:c?) }.to raise_error(::KeyError) }
|
36
|
-
it { expect { instance.fetch('c?') }.to raise_error(::KeyError) }
|
37
|
-
end
|
38
|
-
|
39
|
-
describe '#merge' do
|
40
|
-
let(:merged) { instance.merge(other) }
|
41
|
-
|
42
|
-
it { expect(merged.to_h).to eq(a: 'm1', b: '', c: 'm2') }
|
43
|
-
end
|
44
|
-
|
45
|
-
describe '#property_method' do
|
46
|
-
it { expect(instance.a).to eq(1) }
|
47
|
-
it { expect(instance.a?).to eq(true) }
|
48
|
-
it { expect(instance.b).to eq('') }
|
49
|
-
it { expect(instance.b?).to eq(false) }
|
50
|
-
it { expect { instance.c }.to raise_error(::NoMethodError) }
|
51
|
-
it { expect { instance.c? }.to raise_error(::NoMethodError) }
|
52
|
-
end
|
53
|
-
|
54
|
-
describe '#to_h' do
|
55
|
-
it { expect(instance.to_h).to eq(a: 1, b: '') }
|
56
|
-
end
|
57
|
-
end
|
@@ -1,75 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'active_support/hash_with_indifferent_access'
|
4
|
-
require 'eac_ruby_utils/yaml'
|
5
|
-
|
6
|
-
RSpec.describe ::EacRubyUtils::Yaml do
|
7
|
-
let(:unpermitted_class) do
|
8
|
-
Class.new do
|
9
|
-
def initialize(value)
|
10
|
-
@value = value
|
11
|
-
end
|
12
|
-
|
13
|
-
def to_s
|
14
|
-
@value.to_s
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
let(:arrayliable_class) do
|
20
|
-
Class.new do
|
21
|
-
def initialize(value)
|
22
|
-
@value = value
|
23
|
-
end
|
24
|
-
|
25
|
-
def to_a
|
26
|
-
[@value]
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
let(:source) do
|
32
|
-
{
|
33
|
-
a: 'a', b: :b, c: false, d: true, e: nil,
|
34
|
-
f: [
|
35
|
-
'f',
|
36
|
-
{
|
37
|
-
g: 'g',
|
38
|
-
h: ::ActiveSupport::HashWithIndifferentAccess.new(
|
39
|
-
'i' => ['i', unpermitted_class.new('j')],
|
40
|
-
k: arrayliable_class.new('k')
|
41
|
-
)
|
42
|
-
}
|
43
|
-
]
|
44
|
-
}
|
45
|
-
end
|
46
|
-
|
47
|
-
let(:target) do
|
48
|
-
{
|
49
|
-
a: 'a', b: :b, c: false, d: true, e: nil,
|
50
|
-
f: ['f', { g: 'g', h: { i: %w[i j], k: ['k'] } }]
|
51
|
-
}
|
52
|
-
end
|
53
|
-
|
54
|
-
describe '#dump' do
|
55
|
-
it { expect(described_class.load(described_class.dump(source))).to eq(target) }
|
56
|
-
end
|
57
|
-
|
58
|
-
describe '#sanitize' do
|
59
|
-
it { expect(described_class.sanitize(target)).to eq(target) }
|
60
|
-
end
|
61
|
-
|
62
|
-
describe '#yaml' do
|
63
|
-
{
|
64
|
-
['text'] => false,
|
65
|
-
'text' => false,
|
66
|
-
"--- Text\n\n" => true,
|
67
|
-
"---\n" + ":index: 0\n" + ":codec_name: h264\n" + ":codec_type: video\n" => true,
|
68
|
-
'--- - \n bla bla bla' => false
|
69
|
-
}.each do |source, result|
|
70
|
-
it "return #{result} to source \"#{source}\"" do
|
71
|
-
expect(described_class.yaml?(source)).to eq(result)
|
72
|
-
end
|
73
|
-
end
|
74
|
-
end
|
75
|
-
end
|
@@ -1,55 +0,0 @@
|
|
1
|
-
pt-BR:
|
2
|
-
eac_ruby_utils:
|
3
|
-
listable:
|
4
|
-
stub:
|
5
|
-
inteiro:
|
6
|
-
a:
|
7
|
-
label: Inteiro A
|
8
|
-
description: Inteiro A Descr.
|
9
|
-
b:
|
10
|
-
label: Inteiro BB
|
11
|
-
description: Inteiro BB Descr.
|
12
|
-
c:
|
13
|
-
label: Inteiro CCC
|
14
|
-
description: Inteiro CCC Descr.
|
15
|
-
cadeia:
|
16
|
-
a:
|
17
|
-
label: Cadeia AAA
|
18
|
-
description: Cadeia AAA Descr.
|
19
|
-
b:
|
20
|
-
label: Cadeia BB
|
21
|
-
description: Cadeia BB Descr.
|
22
|
-
c:
|
23
|
-
label: Cadeia C
|
24
|
-
description: Cadeia C Descr.
|
25
|
-
code:
|
26
|
-
a:
|
27
|
-
label: Código A
|
28
|
-
description: Código A Descr.
|
29
|
-
b:
|
30
|
-
label: Código B
|
31
|
-
description: Código B Descr.
|
32
|
-
type:
|
33
|
-
a:
|
34
|
-
label: Tipo A
|
35
|
-
description: Tipo A Descr.
|
36
|
-
b:
|
37
|
-
label: Tipo B
|
38
|
-
description: Tipo B Descr.
|
39
|
-
simbolo:
|
40
|
-
a:
|
41
|
-
label: Simbolo A
|
42
|
-
description: Simbolo A Descr.
|
43
|
-
b:
|
44
|
-
label: Simbolo B
|
45
|
-
description: Simbolo B Descr.
|
46
|
-
c:
|
47
|
-
label: Simbolo C
|
48
|
-
description: Simbolo C Descr.
|
49
|
-
tipado:
|
50
|
-
a:
|
51
|
-
label: Tipado A
|
52
|
-
description: Tipado A Descr.
|
53
|
-
b:
|
54
|
-
label: Tipado B
|
55
|
-
description: Tipado B Descr.
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.push File.expand_path('../lib', __dir__)
|
4
|
-
require 'tmpdir'
|
5
|
-
|
6
|
-
require 'i18n'
|
7
|
-
::I18n.load_path << ::File.join(__dir__, 'locales/pt-BR.yml')
|
8
|
-
::I18n.locale = 'pt-BR'
|
9
|
-
|
10
|
-
RSpec.configure do |config|
|
11
|
-
config.example_status_persistence_file_path = ::File.join(::Dir.tmpdir, 'eac_ruby_utils_rspec')
|
12
|
-
|
13
|
-
require 'eac_ruby_utils/rspec/default_setup'
|
14
|
-
::EacRubyUtils::Rspec.default_setup_create(::File.expand_path('..', __dir__), config)
|
15
|
-
end
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
$LOAD_PATH.push File.expand_path('lib', __dir__)
|
4
|
-
|
5
|
-
require 'eac_templates/version'
|
6
|
-
|
7
|
-
Gem::Specification.new do |s|
|
8
|
-
s.name = 'eac_templates'
|
9
|
-
s.version = EacTemplates::VERSION
|
10
|
-
s.authors = ['Put here the authors']
|
11
|
-
s.summary = 'Put here de description.'
|
12
|
-
|
13
|
-
s.files = Dir['{lib}/**/*']
|
14
|
-
|
15
|
-
s.add_dependency 'eac_config', '~> 0.5'
|
16
|
-
s.add_dependency 'eac_ruby_utils', '~> 0.64'
|
17
|
-
|
18
|
-
s.add_development_dependency 'eac_ruby_gem_support', '~> 0.2'
|
19
|
-
end
|
@@ -1,108 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_templates/file'
|
4
|
-
|
5
|
-
module EacTemplates
|
6
|
-
class Directory
|
7
|
-
TEMPLATE_EXTNAME = '.template'
|
8
|
-
|
9
|
-
attr_reader :path
|
10
|
-
|
11
|
-
def initialize(path)
|
12
|
-
@path = path.is_a?(::Pathname) ? path : ::Pathname.new(path.to_s)
|
13
|
-
end
|
14
|
-
|
15
|
-
def apply(variables_source, directory)
|
16
|
-
TemplateNode.new(self, '.', directory, variables_source).apply
|
17
|
-
end
|
18
|
-
|
19
|
-
def child(subpath)
|
20
|
-
child_path = ::File.join(path, subpath)
|
21
|
-
return ::EacTemplates::File.new(child_path) if ::File.file?(child_path)
|
22
|
-
return ::EacTemplates::Directory.new(child_path) if ::File.directory?(child_path)
|
23
|
-
|
24
|
-
raise "Child \"#{subpath}\" from \"#{path}\" not found"
|
25
|
-
end
|
26
|
-
|
27
|
-
def children
|
28
|
-
path.children.map do |path_child|
|
29
|
-
child(path_child.basename.to_path)
|
30
|
-
end
|
31
|
-
end
|
32
|
-
|
33
|
-
private
|
34
|
-
|
35
|
-
def apply_fs_object(source_relative, target)
|
36
|
-
if ::File.directory?(source_absolute(source_relative))
|
37
|
-
apply_directory(source_relative, target)
|
38
|
-
elsif ::File.file?(source_absolute(source_relative))
|
39
|
-
end
|
40
|
-
end
|
41
|
-
|
42
|
-
def source_absolute(source_relative)
|
43
|
-
::File.expand_path(source_relative, path)
|
44
|
-
end
|
45
|
-
|
46
|
-
class TemplateNode
|
47
|
-
attr_reader :source_directory, :source_relative, :target_root_directory, :variables_source
|
48
|
-
|
49
|
-
def initialize(source_directory, source_relative, target_root_directory, variables_source)
|
50
|
-
@source_directory = source_directory
|
51
|
-
@source_relative = source_relative
|
52
|
-
@target_root_directory = target_root_directory
|
53
|
-
@variables_source = variables_source
|
54
|
-
end
|
55
|
-
|
56
|
-
def apply
|
57
|
-
if file?
|
58
|
-
apply_file
|
59
|
-
elsif directory?
|
60
|
-
apply_directory
|
61
|
-
else
|
62
|
-
raise "Unknown filesystem type: #{source_absolute}"
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
private
|
67
|
-
|
68
|
-
def apply_directory
|
69
|
-
::FileUtils.mkdir_p(target_absolute)
|
70
|
-
Dir.entries(source_absolute).each do |entry|
|
71
|
-
child(entry).apply unless %w[. ..].include?(entry)
|
72
|
-
end
|
73
|
-
end
|
74
|
-
|
75
|
-
def apply_file
|
76
|
-
if ::File.extname(source_absolute) == TEMPLATE_EXTNAME
|
77
|
-
::EacTemplates::File.new(source_absolute).apply_to_file(
|
78
|
-
variables_source, target_absolute
|
79
|
-
)
|
80
|
-
else
|
81
|
-
::FileUtils.cp(source_absolute, target_absolute)
|
82
|
-
end
|
83
|
-
end
|
84
|
-
|
85
|
-
def child(entry)
|
86
|
-
TemplateNode.new(source_directory, ::File.join(source_relative, entry),
|
87
|
-
target_root_directory, variables_source)
|
88
|
-
end
|
89
|
-
|
90
|
-
def file?
|
91
|
-
::File.file?(source_absolute)
|
92
|
-
end
|
93
|
-
|
94
|
-
def directory?
|
95
|
-
::File.directory?(source_absolute)
|
96
|
-
end
|
97
|
-
|
98
|
-
def source_absolute
|
99
|
-
::File.expand_path(source_relative, source_directory.path)
|
100
|
-
end
|
101
|
-
|
102
|
-
def target_absolute
|
103
|
-
::File.expand_path(source_relative, target_root_directory)
|
104
|
-
.gsub(/#{::Regexp.quote(TEMPLATE_EXTNAME)}\z/, '')
|
105
|
-
end
|
106
|
-
end
|
107
|
-
end
|
108
|
-
end
|