eac_tools 0.90.0 → 0.90.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +17 -35
- data/lib/eac_tools/version.rb +1 -1
- data/sub/{eac_templates/eac_templates.gemspec → avm-eac_ruby_base1/avm-eac_ruby_base1.gemspec} +7 -5
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/add_or_replace_gem_line.rb +56 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile/dependency.rb +19 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/gemfile.rb +34 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/depends_on.rb +25 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/gem_conflict.rb +44 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/in_gemfile.rb +17 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_buffer.rb +77 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_factory.rb +33 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/line_parser_base.rb +19 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/ruby_requirement.rb +16 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser/version_requirement.rb +26 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler/incompatible_parser.rb +25 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/bundler.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base/file_resource_name.rb +47 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats/base.rb +22 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/file_formats.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances/mixin.rb +19 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/instances.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/build.rb +126 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem/specification.rb +63 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher/gem.rb +13 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/local_project_mixin.rb +28 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish.rb +130 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes/base.rb +37 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/launcher_stereotypes.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/preferred_version_requirements.rb +43 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/setup.rb +16 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec/source_generator.rb +22 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rspec.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/configured.rb +31 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/envvar.rb +17 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop/gemfile.rb +42 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubocop.rb +55 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/add_or_replace_gem_line.rb +62 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec/dependency.rb +19 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/gemspec.rb +42 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems/version_file.rb +45 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/rubygems.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/lib_rename.rb +77 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base/rubocop.rb +30 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners/base.rb +18 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/runners.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/dependencies.rb +27 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/gemfile_lock.rb +27 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/options.rb +30 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base/version_builder.rb +52 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators/base.rb +111 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/source_generators.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundle_command.rb +39 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/bundler.rb +68 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rake.rb +42 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop.rb +28 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubocop_command.rb +73 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/rubygems.rb +43 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/update.rb +25 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version.rb +31 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base/version_bump.rb +19 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/base.rb +61 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/bundle_update.rb +23 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local/sibling.rb +53 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/gemfile_local.rb +69 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/namespace_replacer.rb +55 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundle.rb +29 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_local.rb +58 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock/git.rb +60 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/gemfile_lock.rb +89 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler/incompatible.rb +76 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/bundler.rb +19 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners/update_dependencies_requirements.rb +68 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/runners.rb +13 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/base.rb +59 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/minitest.rb +29 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/decorated_gem.rb +52 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple/result.rb +29 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/multiple.rb +90 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests/rspec.rb +25 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/tests.rb +13 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update/sub_update.rb +59 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources/update_dependency_requirements.rb +64 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/sources.rb +11 -0
- data/sub/avm-eac_ruby_base1/lib/avm/eac_ruby_base1/version.rb +7 -0
- data/sub/{eac_templates/lib/eac_templates/sources.rb → avm-eac_ruby_base1/lib/avm/eac_ruby_base1.rb} +2 -2
- data/sub/avm-eac_ruby_base1/locale/en.yml +9 -0
- data/sub/avm-eac_ruby_base1/locale/pt-BR.yml +9 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec.rb +7 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.source.out +192 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/1.target.yaml +300 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.source.out +245 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/2.target.yaml +355 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.source.out +0 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/bundler/incompatible_parser_spec_files/3.target.yaml +305 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec.rb +15 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.source +6 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/Gemfile.target +3 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.source +6 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/file_formats/base_spec_files/ruby_code.rb.target +5 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/build_spec.rb +46 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher/gem/specification_spec.rb +49 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base/publish_spec.rb +29 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/launcher_stereotypes/base_spec.rb +23 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/preferred_version_requirements_spec.rb +23 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec.rb +14 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/rubygems/version_file_spec_files/a_version_file.rb +7 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec.rb +36 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile +5 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir1/dir3/Gemfile.lock +27 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir4/false_command.rb +4 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec.rb +19 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/Gemfile.lock +1 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/_gitignore +2 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/dashed-mygem.gemspec +19 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem/version.rb +7 -0
- data/sub/{eac_templates/lib/eac_templates/modules.rb → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem/lib/dashed/mygem.rb} +2 -2
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile +8 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/Gemfile.lock +1 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/_gitignore +2 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem/version.rb +5 -0
- data/sub/{eac_templates/lib/eac_templates.rb → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/lib/mygem.rb} +1 -1
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/mygem.gemspec +19 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/spec_helper.rb +4 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec.rb +30 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile +5 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Gemfile.lock +19 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/Rakefile +14 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/exe/myrunner +5 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem/version.rb +5 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/lib/mygem.rb +5 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base/bundler_spec_files/mygem/mygem.gemspec +17 -0
- data/sub/avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/sources/base_spec.rb +16 -0
- data/sub/avm-eac_ruby_base1/spec/rubocop_spec.rb +3 -0
- data/sub/avm-eac_ruby_base1/spec/spec_helper.rb +4 -0
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/gemspec.template +19 -0
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/root_lib.template +7 -0
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/Gemfile +8 -0
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/rubocop_spec.rb +3 -0
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/static/spec/spec_helper.rb +4 -0
- data/sub/avm-eac_ruby_base1/template/avm/eac_ruby_base1/source_generators/base/version.template +5 -0
- metadata +149 -348
- data/sub/eac_ruby_utils/MIT-LICENCE +0 -16
- data/sub/eac_ruby_utils/README.rdoc +0 -3
- data/sub/eac_ruby_utils/eac_ruby_utils.gemspec +0 -26
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_abstract.rb +0 -100
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/array_accessor.rb +0 -25
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/base_accessor.rb +0 -57
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/boolean_accessor.rb +0 -16
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/class_methods.rb +0 -20
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/common_accessor.rb +0 -30
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/enumerable_accessor.rb +0 -52
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/hash_accessor.rb +0 -57
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/instance_methods.rb +0 -21
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable/set_accessor.rb +0 -25
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_immutable.rb +0 -15
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/acts_as_instance_method.rb +0 -34
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/arguments_consumer.rb +0 -80
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/bit.rb +0 -47
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/bit_array.rb +0 -81
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/blank_not_blank.rb +0 -19
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/boolean.rb +0 -31
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/by_reference.rb +0 -23
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/byte.rb +0 -106
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/byte_array.rb +0 -36
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/class_setup.rb +0 -52
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern/module_setup.rb +0 -41
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_concern.rb +0 -20
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_accessors.rb +0 -36
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/class_initialize.rb +0 -39
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/instance_initialize.rb +0 -64
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor/super_args.rb +0 -55
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/common_constructor.rb +0 -93
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/compact.rb +0 -32
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/compare_by.rb +0 -28
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/context.rb +0 -33
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/contextualizable.rb +0 -21
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/core_ext.rb +0 -7
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/custom_format.rb +0 -53
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/enum.rb +0 -102
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/enumerables_methods.rb +0 -42
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/append_command_options.rb +0 -38
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/concat.rb +0 -41
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/debugging.rb +0 -19
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/execution.rb +0 -52
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command/extra_options.rb +0 -28
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_command.rb +0 -45
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/base_env.rb +0 -28
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/envvars.rb +0 -27
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command/extra_options.rb +0 -23
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/command.rb +0 -67
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/composite_command.rb +0 -45
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/executable.rb +0 -93
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/execution_error.rb +0 -8
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/execution_result.rb +0 -45
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/file.rb +0 -22
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/local_env.rb +0 -17
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/process.rb +0 -27
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/spawn.rb +0 -32
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/dasho_options.rb +0 -53
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/identity_file.rb +0 -25
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/quiet.rb +0 -24
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env/terminal.rb +0 -34
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs/ssh_env.rb +0 -74
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/envs.rb +0 -23
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/clearable_directory.rb +0 -57
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/extname.rb +0 -30
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/directory.rb +0 -16
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp/file.rb +0 -34
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs/temp.rb +0 -52
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/fs.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry/gem.rb +0 -80
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/gems_registry.rb +0 -34
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/inflector.rb +0 -29
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/class_methods.rb +0 -14
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/instance_methods.rb +0 -30
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/integer_list.rb +0 -23
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/item.rb +0 -48
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/list.rb +0 -129
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/lists.rb +0 -51
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/string_list.rb +0 -19
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable/symbol_list.rb +0 -19
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/listable.rb +0 -17
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/local_time_zone.rb +0 -48
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_all_gems.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/from_gem.rb +0 -47
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales/module_i18n_translate.rb +0 -74
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/locales.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/method_class.rb +0 -30
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/base.rb +0 -34
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/hash.rb +0 -20
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable/set.rb +0 -19
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/module_ancestors_variable.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/options_consumer.rb +0 -62
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patch.rb +0 -11
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri/query_value.rb +0 -37
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable/uri.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/addressable.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/abstract.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/common_constructor.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/method_class.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/self_included_modules.rb +0 -7
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/settings_provider.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class/static_method_class.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/class.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable/boolean_combinations.rb +0 -45
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerable.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/current.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator/stopped.rb +0 -14
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/enumerator.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/if_key.rb +0 -12
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/options_consumer.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/sym_keys_hash.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash/to_struct.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/hash.rb +0 -5
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/ibr.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel/nyi.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/kernel.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/abstract_methods.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/acts_as_abstract.rb +0 -14
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/acts_as_immutable.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/acts_as_instance_method.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/common_concern.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/compare_by.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/context.rb +0 -11
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/i18n_translate.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/immutable.rb +0 -11
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/listable.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/module_parent.rb +0 -5
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/patch.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/require_sub.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/simple_cache.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module/speaker.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/module.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/asserts.rb +0 -25
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/call_if_proc.rb +0 -11
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/compact.rb +0 -20
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/debug.rb +0 -55
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/i18n_translate.rb +0 -13
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_nil.rb +0 -17
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_present.rb +0 -19
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/if_respond.rb +0 -22
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/recursive_build.rb +0 -12
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_bool.rb +0 -12
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_pathname.rb +0 -15
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object/to_uri.rb +0 -15
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/object.rb +0 -5
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/assert_parent.rb +0 -12
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_noext.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/basename_sub.rb +0 -13
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/child_of.rb +0 -16
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/if_exist.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/mkpath_s.rb +0 -12
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/parent_n.rb +0 -11
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/readlink_r.rb +0 -11
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname/reqdir_glob.rb +0 -13
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/pathname.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/if_match.rb +0 -16
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp/to_parser.rb +0 -10
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/regexp.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string/delimited.rb +0 -16
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string/inflector.rb +0 -11
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/string.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time/required_zone.rb +0 -11
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches/time.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/patches.rb +0 -4
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/recursive_builder.rb +0 -51
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/regexp_parser.rb +0 -39
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/require_sub/base.rb +0 -80
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/require_sub/sub_file.rb +0 -59
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/require_sub.rb +0 -11
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/default_setup.rb +0 -20
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/conditionals.rb +0 -17
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup/setup_manager.rb +0 -17
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup.rb +0 -27
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/setup_manager.rb +0 -49
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec/stub_speaker.rb +0 -39
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/rspec.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/command.rb +0 -32
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_clean_environment.rb +0 -71
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects/replace_instance_method.rb +0 -36
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby/on_replace_objects.rb +0 -52
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/ruby.rb +0 -9
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider/setting_value.rb +0 -79
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/settings_provider.rb +0 -50
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/simple_cache.rb +0 -77
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/receiver.rb +0 -64
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker/sender.rb +0 -37
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/speaker.rb +0 -16
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/static_method_class.rb +0 -12
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/string_delimited.rb +0 -70
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/struct.rb +0 -63
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/unimplemented_method_error.rb +0 -6
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/version.rb +0 -5
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/wildcards.rb +0 -26
- data/sub/eac_ruby_utils/lib/eac_ruby_utils/yaml.rb +0 -105
- data/sub/eac_ruby_utils/lib/eac_ruby_utils.rb +0 -6
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_abstract_spec.rb +0 -94
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_immutable/array_accessor_spec.rb +0 -43
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_immutable/common_accessor_spec.rb +0 -57
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_immutable/hash_accessor_spec.rb +0 -42
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/acts_as_immutable/set_accessor_spec.rb +0 -43
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/arguments_consumer_spec.rb +0 -17
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/bit_array_spec.rb +0 -22
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/blank_not_blank_spec.rb +0 -16
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/byte_spec.rb +0 -54
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_concern_spec.rb +0 -65
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/common_constructor_spec.rb +0 -151
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compact_spec.rb +0 -21
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/compare_by_spec.rb +0 -39
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/custom_format_spec.rb +0 -60
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/enum_spec.rb +0 -44
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/enumerables_methods_spec.rb +0 -50
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/base_example.rb +0 -97
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/local_env_spec.rb +0 -11
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/command/ssh_env_spec.rb +0 -17
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/executable_spec.rb +0 -37
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/envs/ssh_env_spec.rb +0 -25
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/extname_spec.rb +0 -18
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp/directory_spec.rb +0 -12
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/fs/temp_spec.rb +0 -52
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/inflector_spec.rb +0 -16
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/listable_spec.rb +0 -225
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/local_time_zone_spec.rb +0 -17
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/method_class_spec.rb +0 -46
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/module_ancestors_variable/hash_spec.rb +0 -57
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/module_ancestors_variable/set_spec.rb +0 -57
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/options_consumer_spec.rb +0 -80
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/addressable/uri/query_value_spec.rb +0 -25
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/abstract_spec.rb +0 -25
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/acts_as_abstract_spec.rb +0 -14
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/method_class_spec.rb +0 -20
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/self_included_modules_spec.rb +0 -30
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/class/static_method_class_spec.rb +0 -20
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb +0 -39
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/current_spec.rb +0 -26
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerator/stopped_spec.rb +0 -32
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/if_key_spec.rb +0 -23
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/options_consumer_spec.rb +0 -17
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/hash/sym_keys_hash_spec.rb +0 -13
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/compare_by_spec.rb +0 -37
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/listable_spec.rb +0 -15
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/simple_cache_spec.rb +0 -15
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/module/speaker_spec.rb +0 -15
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/call_if_proc_spec.rb +0 -11
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/compact_spec.rb +0 -20
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/if_present_spec.rb +0 -13
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/recursive_build_spec.rb +0 -62
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/assert_parent_spec.rb +0 -21
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_noext_spec.rb +0 -26
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/basename_sub_spec.rb +0 -17
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/child_of_spec.rb +0 -26
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/pathname/parent_n_spec.rb +0 -33
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/string/delimited_spec.rb +0 -34
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/recursive_builder_spec.rb +0 -65
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_module_a.rb +0 -6
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec/stubbed_not_module.rb +0 -6
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/require_sub/base_spec.rb +0 -19
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/rspec/setup/setup_manager_spec.rb +0 -17
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_clean_environment_spec.rb +0 -31
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/ruby/on_replace_objects_spec.rb +0 -65
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/settings_provider_spec.rb +0 -64
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/simple_cache_spec.rb +0 -129
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/static_method_class_spec.rb +0 -44
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/struct_spec.rb +0 -57
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/wildcards_spec.rb +0 -27
- data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/yaml_spec.rb +0 -76
- data/sub/eac_ruby_utils/spec/locales/pt-BR.yml +0 -58
- data/sub/eac_ruby_utils/spec/spec_helper.rb +0 -15
- data/sub/eac_templates/README.textile +0 -59
- data/sub/eac_templates/lib/eac_templates/abstract/directory.rb +0 -42
- data/sub/eac_templates/lib/eac_templates/abstract/file.rb +0 -25
- data/sub/eac_templates/lib/eac_templates/abstract/fs_object.rb +0 -94
- data/sub/eac_templates/lib/eac_templates/abstract/fs_object_by_pathname.rb +0 -13
- data/sub/eac_templates/lib/eac_templates/abstract/not_found_error.rb +0 -8
- data/sub/eac_templates/lib/eac_templates/abstract/with_directory_file_methods.rb +0 -46
- data/sub/eac_templates/lib/eac_templates/core_ext.rb +0 -4
- data/sub/eac_templates/lib/eac_templates/interface_methods.rb +0 -12
- data/sub/eac_templates/lib/eac_templates/modules/ancestor/directory.rb +0 -17
- data/sub/eac_templates/lib/eac_templates/modules/ancestor/file.rb +0 -16
- data/sub/eac_templates/lib/eac_templates/modules/ancestor/fs_object.rb +0 -23
- data/sub/eac_templates/lib/eac_templates/modules/ancestor.rb +0 -37
- data/sub/eac_templates/lib/eac_templates/modules/base/directory.rb +0 -44
- data/sub/eac_templates/lib/eac_templates/modules/base/file.rb +0 -27
- data/sub/eac_templates/lib/eac_templates/modules/base/fs_object.rb +0 -18
- data/sub/eac_templates/lib/eac_templates/modules/base.rb +0 -66
- data/sub/eac_templates/lib/eac_templates/patches/module/erb_template.rb +0 -9
- data/sub/eac_templates/lib/eac_templates/patches/module/template.rb +0 -9
- data/sub/eac_templates/lib/eac_templates/patches/module.rb +0 -4
- data/sub/eac_templates/lib/eac_templates/patches/object/erb_template.rb +0 -9
- data/sub/eac_templates/lib/eac_templates/patches/object/template.rb +0 -9
- data/sub/eac_templates/lib/eac_templates/patches/object.rb +0 -4
- data/sub/eac_templates/lib/eac_templates/patches.rb +0 -4
- data/sub/eac_templates/lib/eac_templates/sources/directory.rb +0 -37
- data/sub/eac_templates/lib/eac_templates/sources/file.rb +0 -13
- data/sub/eac_templates/lib/eac_templates/sources/from_all_gems.rb +0 -4
- data/sub/eac_templates/lib/eac_templates/sources/from_gem.rb +0 -37
- data/sub/eac_templates/lib/eac_templates/sources/fs_object.rb +0 -53
- data/sub/eac_templates/lib/eac_templates/sources/internal_set.rb +0 -22
- data/sub/eac_templates/lib/eac_templates/sources/set.rb +0 -56
- data/sub/eac_templates/lib/eac_templates/sources/single.rb +0 -29
- data/sub/eac_templates/lib/eac_templates/variables/content.rb +0 -52
- data/sub/eac_templates/lib/eac_templates/variables/directory.rb +0 -48
- data/sub/eac_templates/lib/eac_templates/variables/file.rb +0 -26
- data/sub/eac_templates/lib/eac_templates/variables/fs_object.rb +0 -65
- data/sub/eac_templates/lib/eac_templates/variables/not_found_error.rb +0 -7
- data/sub/eac_templates/lib/eac_templates/variables/providers/base.rb +0 -24
- data/sub/eac_templates/lib/eac_templates/variables/providers/config_reader.rb +0 -29
- data/sub/eac_templates/lib/eac_templates/variables/providers/entries_reader.rb +0 -25
- data/sub/eac_templates/lib/eac_templates/variables/providers/generic.rb +0 -25
- data/sub/eac_templates/lib/eac_templates/variables/providers/hash.rb +0 -29
- data/sub/eac_templates/lib/eac_templates/variables/providers.rb +0 -25
- data/sub/eac_templates/lib/eac_templates/variables.rb +0 -9
- data/sub/eac_templates/lib/eac_templates/version.rb +0 -5
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec.rb +0 -141
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/a_module/a/a_a +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/a_module/b +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/sub_class/a/a_c +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/super_class/a/a_b +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path1/super_class/b +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/a_module/a/a_b +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/a_module/b +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/a_module/c +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/prepended_module/c +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/sub_class/b +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/super_class/a/a_b +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/modules/base_spec_files/path2/super_class/b +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec.rb +0 -26
- data/sub/eac_templates/spec/lib/eac_templates/patches/object/template_spec_files/path/my_stub_with_template +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/sources/set_spec.rb +0 -42
- data/sub/eac_templates/spec/lib/eac_templates/sources/set_spec_files/path1/subdir1/file1.template +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/sources/set_spec_files/path1/subdir1/file2 +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/sources/set_spec_files/path2/subdir1/file3.template +0 -1
- data/sub/eac_templates/spec/lib/eac_templates/variables/content_spec.rb +0 -35
- data/sub/eac_templates/spec/lib/eac_templates/variables/content_spec_files/expected_content +0 -2
- data/sub/eac_templates/spec/lib/eac_templates/variables/content_spec_files/source.template +0 -2
- /data/sub/{eac_ruby_utils → avm-eac_ruby_base1}/Gemfile +0 -0
- /data/sub/{eac_ruby_utils/spec/lib/eac_ruby_utils/patches/object/template_spec_files/path/my_stub_with_template → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/runners/base/rubocop_spec_files/dir2/empty.rb} +0 -0
- /data/sub/{eac_templates → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem}/Gemfile +0 -0
- /data/sub/{eac_templates → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem}/spec/rubocop_spec.rb +0 -0
- /data/sub/{eac_templates → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/dashed-mygem}/spec/spec_helper.rb +0 -0
- /data/sub/{eac_ruby_utils/spec/rubocop_check_spec.rb → avm-eac_ruby_base1/spec/lib/avm/eac_ruby_base1/source_generators/base_spec_files/mygem/spec/rubocop_spec.rb} +0 -0
@@ -1,57 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/module_ancestors_variable/set'
|
4
|
-
|
5
|
-
RSpec.describe(EacRubyUtils::ModuleAncestorsVariable::Set) do
|
6
|
-
let(:included_module) do
|
7
|
-
Module.new do
|
8
|
-
def self.included(base)
|
9
|
-
base.extend(ClassMethods)
|
10
|
-
end
|
11
|
-
|
12
|
-
module ClassMethods # rubocop:disable Lint/ConstantDefinitionInBlock, RSpec/LeakyConstantDeclaration
|
13
|
-
def set_variable
|
14
|
-
@set_variable ||= ::EacRubyUtils::ModuleAncestorsVariable::Set.new(self, __method__)
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
|
20
|
-
let(:super_class) do
|
21
|
-
r = Class.new
|
22
|
-
r.include included_module
|
23
|
-
r
|
24
|
-
end
|
25
|
-
|
26
|
-
let(:sub_class) do
|
27
|
-
Class.new(super_class)
|
28
|
-
end
|
29
|
-
|
30
|
-
it { expect(super_class.set_variable).to be_a(described_class) }
|
31
|
-
it { expect(super_class.set_variable.self_variable).to eq(Set.new) }
|
32
|
-
it { expect(super_class.set_variable.ancestors_variable).to eq(Set.new) }
|
33
|
-
it { expect(super_class.set_variable.to_set).to eq(Set.new) }
|
34
|
-
|
35
|
-
it { expect(sub_class.set_variable).to be_a(described_class) }
|
36
|
-
it { expect(sub_class.set_variable.self_variable).to eq(Set.new) }
|
37
|
-
it { expect(sub_class.set_variable.ancestors_variable).to eq(Set.new) }
|
38
|
-
it { expect(sub_class.set_variable.to_set).to eq(Set.new) }
|
39
|
-
|
40
|
-
context 'when super class is changed' do
|
41
|
-
before do
|
42
|
-
super_class.set_variable << 1
|
43
|
-
end
|
44
|
-
|
45
|
-
it { expect(super_class.set_variable.to_set).to eq(Set.new([1])) }
|
46
|
-
it { expect(sub_class.set_variable.to_set).to eq(Set.new([1])) }
|
47
|
-
|
48
|
-
context 'when sub class is changed' do
|
49
|
-
before do
|
50
|
-
sub_class.set_variable << 2
|
51
|
-
end
|
52
|
-
|
53
|
-
it { expect(super_class.set_variable.to_set).to eq(Set.new([1])) }
|
54
|
-
it { expect(sub_class.set_variable.to_set).to eq(Set.new([1, 2])) }
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/options_consumer'
|
4
|
-
|
5
|
-
RSpec.describe EacRubyUtils::OptionsConsumer do
|
6
|
-
context 'with instance created with some data' do
|
7
|
-
subject(:instance) { described_class.new(a: 'a_value', b: 'b_value', c: 'c_value') }
|
8
|
-
|
9
|
-
let(:consumed_a) { instance.consume(:a) }
|
10
|
-
let(:consumed_b) { instance.consume(:b) }
|
11
|
-
let(:consumed_c) { instance.consume(:c) }
|
12
|
-
|
13
|
-
it 'left data should be Hash' do
|
14
|
-
expect(instance.left_data).to be_a(Hash)
|
15
|
-
end
|
16
|
-
|
17
|
-
it 'left data should be not empty' do
|
18
|
-
expect { instance.validate }.to raise_error(StandardError)
|
19
|
-
end
|
20
|
-
|
21
|
-
context 'when no data is consumed' do
|
22
|
-
it do
|
23
|
-
expect(instance.left_data).to eq({ a: 'a_value', b: 'b_value', c: 'c_value' }
|
24
|
-
.with_indifferent_access)
|
25
|
-
end
|
26
|
-
|
27
|
-
it { expect(consumed_a).to eq('a_value') }
|
28
|
-
end
|
29
|
-
|
30
|
-
context 'when A value is consumed' do
|
31
|
-
before { consumed_a }
|
32
|
-
|
33
|
-
it do
|
34
|
-
expect(instance.left_data).to eq({ b: 'b_value', c: 'c_value' }.with_indifferent_access)
|
35
|
-
end
|
36
|
-
|
37
|
-
it { expect(instance.consume(:c)).to eq('c_value') }
|
38
|
-
end
|
39
|
-
|
40
|
-
context 'when A and C values are consumed' do
|
41
|
-
before do
|
42
|
-
consumed_a
|
43
|
-
consumed_c
|
44
|
-
end
|
45
|
-
|
46
|
-
it { expect(instance.left_data).to eq({ b: 'b_value' }.with_indifferent_access) }
|
47
|
-
|
48
|
-
it { expect(consumed_b).to eq('b_value') }
|
49
|
-
end
|
50
|
-
|
51
|
-
context 'when all values are consumed' do
|
52
|
-
before do
|
53
|
-
consumed_a
|
54
|
-
consumed_b
|
55
|
-
consumed_c
|
56
|
-
end
|
57
|
-
|
58
|
-
it { expect(instance.left_data).to eq({}.with_indifferent_access) }
|
59
|
-
|
60
|
-
it do
|
61
|
-
expect { instance.validate }.not_to raise_error
|
62
|
-
end
|
63
|
-
end
|
64
|
-
|
65
|
-
it 'raises if validate has left data' do
|
66
|
-
expect(instance.left_data.empty?).to be(false)
|
67
|
-
end
|
68
|
-
end
|
69
|
-
|
70
|
-
describe '#consume_all' do
|
71
|
-
subject(:instance) { described_class.new(a: 'a_value', b: 'b_value', c: 'c_value') }
|
72
|
-
|
73
|
-
let(:all_consumed) { instance.consume_all(:a, :b, :c, :d) }
|
74
|
-
|
75
|
-
it { expect(all_consumed[0]).to eq('a_value') }
|
76
|
-
it { expect(all_consumed[1]).to eq('b_value') }
|
77
|
-
it { expect(all_consumed[2]).to eq('c_value') }
|
78
|
-
it { expect(all_consumed[3]).to be_nil }
|
79
|
-
end
|
80
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/addressable/uri/query_value'
|
4
|
-
|
5
|
-
RSpec.describe Addressable::URI, '#query_value' do
|
6
|
-
subject(:instance) { described_class.parse('http://example.net') }
|
7
|
-
|
8
|
-
it { expect(instance.query_values).to be_nil }
|
9
|
-
it { expect(instance.hash_query_values).to eq({}) }
|
10
|
-
|
11
|
-
it { expect(instance.query_value('param1')).to be_nil }
|
12
|
-
it { expect(instance.query_value(:param1)).to be_nil }
|
13
|
-
|
14
|
-
context 'when param is set' do
|
15
|
-
let(:set_result) { instance.query_value(:param1, :value1) }
|
16
|
-
|
17
|
-
before { set_result }
|
18
|
-
|
19
|
-
it { expect(set_result).to eq(instance) }
|
20
|
-
it { expect(instance.query_values).to eq({ 'param1' => 'value1' }) }
|
21
|
-
it { expect(instance.hash_query_values).to eq({ 'param1' => 'value1' }) }
|
22
|
-
it { expect(instance.query_value('param1')).to eq('value1') }
|
23
|
-
it { expect(instance.query_value(:param1)).to eq('value1') }
|
24
|
-
end
|
25
|
-
end
|
@@ -1,25 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/class/abstract'
|
4
|
-
|
5
|
-
RSpec.describe Class, '#abstract' do
|
6
|
-
let(:abstract_class) do
|
7
|
-
described_class.new do
|
8
|
-
acts_as_abstract
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
let(:concrect_class) do
|
13
|
-
described_class.new(abstract_class)
|
14
|
-
end
|
15
|
-
|
16
|
-
describe '#abstract' do
|
17
|
-
it do
|
18
|
-
expect(abstract_class).to be_abstract
|
19
|
-
end
|
20
|
-
|
21
|
-
it do
|
22
|
-
expect(concrect_class).not_to be_abstract
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/acts_as_abstract'
|
4
|
-
require 'eac_ruby_utils/patches/module/acts_as_abstract'
|
5
|
-
|
6
|
-
RSpec.describe Class, '#acts_as_abstract' do
|
7
|
-
let(:stub_class) do
|
8
|
-
described_class.new { acts_as_abstract }
|
9
|
-
end
|
10
|
-
|
11
|
-
describe '#acts_as_abstract' do
|
12
|
-
it { expect(stub_class.included_modules).to include(EacRubyUtils::ActsAsAbstract) }
|
13
|
-
end
|
14
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/method_class'
|
4
|
-
require 'eac_ruby_utils/patches/class/method_class'
|
5
|
-
|
6
|
-
RSpec.describe Class, '#method_class' do
|
7
|
-
let(:stub_method_class) do
|
8
|
-
described_class.new do
|
9
|
-
def self.name
|
10
|
-
'StubMethodClass'
|
11
|
-
end
|
12
|
-
|
13
|
-
enable_method_class
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
describe '#enable_simple_cache' do
|
18
|
-
it { expect(stub_method_class.included_modules).to include(EacRubyUtils::MethodClass) }
|
19
|
-
end
|
20
|
-
end
|
@@ -1,30 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/class/self_included_modules'
|
4
|
-
|
5
|
-
RSpec.describe Class, '#self_included_modules' do
|
6
|
-
let(:includeable_module) do
|
7
|
-
Module.new
|
8
|
-
end
|
9
|
-
|
10
|
-
let(:parent_class) do
|
11
|
-
module_to_include = includeable_module
|
12
|
-
described_class.new do
|
13
|
-
include module_to_include
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
let(:child_class) do
|
18
|
-
described_class.new(parent_class)
|
19
|
-
end
|
20
|
-
|
21
|
-
describe '#self_included_modules' do
|
22
|
-
it do
|
23
|
-
expect(parent_class.self_included_modules).to include(includeable_module)
|
24
|
-
end
|
25
|
-
|
26
|
-
it do
|
27
|
-
expect(child_class.self_included_modules).not_to include(includeable_module)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/method_class'
|
4
|
-
require 'eac_ruby_utils/patches/class/static_method_class'
|
5
|
-
|
6
|
-
RSpec.describe Class, '#static_method' do
|
7
|
-
let(:stub_method_class) do
|
8
|
-
described_class.new do
|
9
|
-
def self.name
|
10
|
-
'StubMethodClass'
|
11
|
-
end
|
12
|
-
|
13
|
-
enable_static_method_class
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
describe '#enable_static_method_class' do
|
18
|
-
it { expect(stub_method_class.included_modules).to include(EacRubyUtils::StaticMethodClass) }
|
19
|
-
end
|
20
|
-
end
|
data/sub/eac_ruby_utils/spec/lib/eac_ruby_utils/patches/enumerable/boolean_combinations_spec.rb
DELETED
@@ -1,39 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/enumerable/boolean_combinations'
|
4
|
-
|
5
|
-
RSpec.describe Enumerable, '#boolean_combinations' do
|
6
|
-
let(:empty_instance) { [].to_enum }
|
7
|
-
let(:a_instance) { [:a].to_enum }
|
8
|
-
let(:ab_instance) { %i[a b].to_enum }
|
9
|
-
|
10
|
-
describe '#bool_hash_combs' do
|
11
|
-
it do
|
12
|
-
expect(empty_instance.bool_hash_combs).to eq([])
|
13
|
-
end
|
14
|
-
|
15
|
-
it do
|
16
|
-
expect(a_instance.bool_hash_combs).to eq([{ a: false }, { a: true }])
|
17
|
-
end
|
18
|
-
|
19
|
-
it do
|
20
|
-
expect(ab_instance.bool_hash_combs)
|
21
|
-
.to eq([{ a: false, b: false }, { a: false, b: true }, { a: true, b: false },
|
22
|
-
{ a: true, b: true }])
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
describe '#bool_array_combs' do
|
27
|
-
it do
|
28
|
-
expect(empty_instance.bool_array_combs).to eq([])
|
29
|
-
end
|
30
|
-
|
31
|
-
it do
|
32
|
-
expect(a_instance.bool_array_combs).to eq([[], [:a]])
|
33
|
-
end
|
34
|
-
|
35
|
-
it do
|
36
|
-
expect(ab_instance.bool_array_combs).to eq([[], [:a], [:b], %i[a b]])
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
@@ -1,26 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/enumerator/current'
|
4
|
-
|
5
|
-
RSpec.describe Enumerator, '#current' do
|
6
|
-
let(:list) { %w[a b] }
|
7
|
-
let(:instance) { list.each }
|
8
|
-
|
9
|
-
it { expect(instance).to be_a(described_class) }
|
10
|
-
it { expect(instance.current).to eq('a') }
|
11
|
-
|
12
|
-
context 'with first next' do
|
13
|
-
before { instance.next }
|
14
|
-
|
15
|
-
it { expect(instance.current).to eq('b') }
|
16
|
-
end
|
17
|
-
|
18
|
-
context 'with last next' do
|
19
|
-
before do
|
20
|
-
instance.next
|
21
|
-
instance.next
|
22
|
-
end
|
23
|
-
|
24
|
-
it { expect(instance.current).to be_nil }
|
25
|
-
end
|
26
|
-
end
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/enumerator/stopped'
|
4
|
-
|
5
|
-
RSpec.describe Enumerator, '#stopped' do
|
6
|
-
let(:list) { %w[a b] }
|
7
|
-
let(:instance) { list.each }
|
8
|
-
|
9
|
-
it { expect(instance).to be_a(described_class) }
|
10
|
-
it { expect(instance.peek).to eq('a') }
|
11
|
-
it { expect(instance).to be_ongoing }
|
12
|
-
it { expect(instance).not_to be_stopped }
|
13
|
-
|
14
|
-
context 'with first next' do
|
15
|
-
before { instance.next }
|
16
|
-
|
17
|
-
it { expect(instance.peek).to eq('b') }
|
18
|
-
it { expect(instance).to be_ongoing }
|
19
|
-
it { expect(instance).not_to be_stopped }
|
20
|
-
end
|
21
|
-
|
22
|
-
context 'with last next' do
|
23
|
-
before do
|
24
|
-
instance.next
|
25
|
-
instance.next
|
26
|
-
end
|
27
|
-
|
28
|
-
it { expect { instance.peek }.to raise_error(StopIteration) }
|
29
|
-
it { expect(instance).not_to be_ongoing }
|
30
|
-
it { expect(instance).to be_stopped }
|
31
|
-
end
|
32
|
-
end
|
@@ -1,23 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/hash/if_key'
|
4
|
-
|
5
|
-
RSpec.describe Hash, '#if_key' do
|
6
|
-
subject(:instance) { { a: 'a_value' } }
|
7
|
-
|
8
|
-
it do
|
9
|
-
expect(instance.if_key(:a)).to eq('a_value')
|
10
|
-
end
|
11
|
-
|
12
|
-
it do
|
13
|
-
expect(instance.if_key(:a) { |v| "_#{v}_" }).to eq('_a_value_')
|
14
|
-
end
|
15
|
-
|
16
|
-
it do
|
17
|
-
expect(instance.if_key(:b)).to be_nil
|
18
|
-
end
|
19
|
-
|
20
|
-
it do
|
21
|
-
expect(instance.if_key(:b, 'default_value')).to eq('default_value')
|
22
|
-
end
|
23
|
-
end
|
@@ -1,17 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/hash/options_consumer'
|
4
|
-
|
5
|
-
RSpec.describe Hash, '#options_consumer' do
|
6
|
-
let(:a_hash) { { a: 'a_value', b: 'b_value', c: 'c_value' } }
|
7
|
-
let(:instance) { a_hash.to_options_consumer }
|
8
|
-
|
9
|
-
it 'returns a OptionsConsumer' do
|
10
|
-
expect(instance).to be_a(EacRubyUtils::OptionsConsumer)
|
11
|
-
end
|
12
|
-
|
13
|
-
it do
|
14
|
-
expect(instance.left_data).to eq({ a: 'a_value', b: 'b_value', c: 'c_value' }
|
15
|
-
.with_indifferent_access)
|
16
|
-
end
|
17
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/hash/sym_keys_hash'
|
4
|
-
|
5
|
-
RSpec.describe Hash, '#sym_keys_hash' do
|
6
|
-
let(:a_hash) { { 'a' => 'a_value', 1 => '1_value', s: 's_value' } }
|
7
|
-
|
8
|
-
describe '#to_sym_keys_hash' do
|
9
|
-
it 'converts all keys to symbols' do
|
10
|
-
expect(a_hash.to_sym_keys_hash).to eq(a: 'a_value', '1': '1_value', s: 's_value')
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/module/compare_by'
|
4
|
-
|
5
|
-
RSpec.describe Module, '#compare_by' do
|
6
|
-
let(:klass) do
|
7
|
-
Class.new do
|
8
|
-
compare_by :field1, :field2
|
9
|
-
attr_reader :field1, :field2
|
10
|
-
|
11
|
-
def initialize(field1, field2)
|
12
|
-
@field1 = field1
|
13
|
-
@field2 = field2
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
let(:o1) { klass.new(1, 2) } # rubocop:disable RSpec/IndexedLet
|
18
|
-
let(:o2) { klass.new(2, 1) } # rubocop:disable RSpec/IndexedLet
|
19
|
-
let(:o3) { klass.new(1, 1) } # rubocop:disable RSpec/IndexedLet
|
20
|
-
|
21
|
-
describe '#comparable' do
|
22
|
-
it { expect(o1).to be < o2 }
|
23
|
-
it { expect(o1).to be > o3 }
|
24
|
-
it { expect(o2).to be > o3 }
|
25
|
-
it { expect([o1, o2, o3].sort).to eq([o3, o1, o2]) }
|
26
|
-
end
|
27
|
-
|
28
|
-
describe '#equality' do
|
29
|
-
it { expect(o1).not_to eq(o2) }
|
30
|
-
it { expect(o1).not_to eq(o3) }
|
31
|
-
it { expect(o2).not_to eq(o3) }
|
32
|
-
|
33
|
-
it { expect(o1).to eq(klass.new(1, 2)) }
|
34
|
-
it { expect(o2).to eq(klass.new(2, 1)) }
|
35
|
-
it { expect(o3).to eq(klass.new(1, 1)) }
|
36
|
-
end
|
37
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/module/listable'
|
4
|
-
|
5
|
-
RSpec.describe Module, '#listable' do
|
6
|
-
let(:stub_class) do
|
7
|
-
Class.new do
|
8
|
-
enable_listable
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
describe '#enable_listable' do
|
13
|
-
it { expect(stub_class.included_modules).to include(EacRubyUtils::Listable) }
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/module/simple_cache'
|
4
|
-
|
5
|
-
RSpec.describe Module, '#simple_cache' do
|
6
|
-
let(:stub_class) do
|
7
|
-
Class.new do
|
8
|
-
enable_simple_cache
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
describe '#enable_simple_cache' do
|
13
|
-
it { expect(stub_class.included_modules).to include(EacRubyUtils::SimpleCache) }
|
14
|
-
end
|
15
|
-
end
|
@@ -1,15 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/module/speaker'
|
4
|
-
|
5
|
-
RSpec.describe Module, '#speaker' do
|
6
|
-
let(:stub_class) do
|
7
|
-
Class.new do
|
8
|
-
enable_speaker
|
9
|
-
end
|
10
|
-
end
|
11
|
-
|
12
|
-
describe '#enable_speaker' do
|
13
|
-
it { expect(stub_class.included_modules).to include(EacRubyUtils::Speaker::Sender) }
|
14
|
-
end
|
15
|
-
end
|
@@ -1,11 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/object/call_if_proc'
|
4
|
-
|
5
|
-
RSpec.describe Object, '#call_if_proc' do
|
6
|
-
describe '#call_if_proc' do
|
7
|
-
it { expect(nil.call_if_proc).to be_nil }
|
8
|
-
it { expect('a string'.call_if_proc).to eq('a string') }
|
9
|
-
it { expect(-> { 'a returned value' }.call_if_proc).to eq('a returned value') }
|
10
|
-
end
|
11
|
-
end
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/object/compact'
|
4
|
-
|
5
|
-
RSpec.describe Object, '#compact' do
|
6
|
-
let(:instance) { Struct.new(:a_attr, :b_attr).new('a_value', 'b_value') }
|
7
|
-
let(:attributes) { %w[a_attr b_attr] }
|
8
|
-
|
9
|
-
describe '#compact' do
|
10
|
-
it do
|
11
|
-
expect(instance.compact_to_a(*attributes)).to eq(%w[a_value b_value])
|
12
|
-
end
|
13
|
-
end
|
14
|
-
|
15
|
-
describe '#to_h' do
|
16
|
-
it do
|
17
|
-
expect(instance.compact_to_h(*attributes)).to eq(a_attr: 'a_value', b_attr: 'b_value')
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/object/if_present'
|
4
|
-
|
5
|
-
RSpec.describe Object, '#if_present' do
|
6
|
-
describe '#if_present' do
|
7
|
-
it { expect(nil.if_present).to be_nil }
|
8
|
-
it { expect(nil.if_present('default')).to eq('default') }
|
9
|
-
it { expect(nil.if_present('default') { |_v| 'calculated' }).to eq('default') }
|
10
|
-
it { expect('present'.if_present('default')).to eq('present') }
|
11
|
-
it { expect('present'.if_present { |v| "#{v}_calculated" }).to eq('present_calculated') }
|
12
|
-
end
|
13
|
-
end
|
@@ -1,62 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/object/recursive_build'
|
4
|
-
|
5
|
-
RSpec.describe Object, '#recursive_build' 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
|
-
|
56
|
-
it "is #{item[2]}" do
|
57
|
-
expect(root.recursive_build(&:dependencies)).to eq(dependencies)
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
61
|
-
end
|
62
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
require 'eac_ruby_utils/patches/pathname/parent_n'
|
4
|
-
|
5
|
-
RSpec.describe Pathname, '#assert_parent' do
|
6
|
-
let(:root) { temp_dir }
|
7
|
-
let(:parent_dir) { root.join('parent_dir') }
|
8
|
-
let(:instance) { parent_dir.join('the_file') }
|
9
|
-
let(:result) { instance.assert_parent }
|
10
|
-
|
11
|
-
it { expect(parent_dir).not_to exist }
|
12
|
-
it { expect(instance).not_to exist }
|
13
|
-
|
14
|
-
context 'when parent is asserted' do
|
15
|
-
before { result }
|
16
|
-
|
17
|
-
it { expect(parent_dir).to exist }
|
18
|
-
it { expect(instance).not_to exist }
|
19
|
-
it { expect(result).to eq(instance) }
|
20
|
-
end
|
21
|
-
end
|