convenient_service 0.17.0 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -7
- data/lib/convenient_service/commands/is_service.rb +28 -0
- data/lib/convenient_service/commands/is_service_class.rb +30 -0
- data/lib/convenient_service/commands.rb +4 -0
- data/lib/convenient_service/common/plugins/ensures_negated_j_send_result/middleware.rb +22 -0
- data/lib/convenient_service/common/plugins/ensures_negated_j_send_result.rb +3 -0
- data/lib/convenient_service/common/plugins/has_around_callbacks/concern.rb +8 -1
- data/lib/convenient_service/common/plugins/has_around_callbacks/middleware.rb +28 -7
- data/lib/convenient_service/common/plugins/has_callbacks/concern.rb +19 -9
- data/lib/convenient_service/common/plugins/has_callbacks/entities/callback_collection.rb +49 -1
- data/lib/convenient_service/common/plugins/has_callbacks/middleware.rb +21 -3
- data/lib/convenient_service/common/plugins/has_callbacks.rb +0 -1
- data/lib/convenient_service/common/plugins/has_instance_proxy/entities/instance_proxy.rb +1 -1
- data/lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/has_cache/concern.rb +12 -0
- data/lib/convenient_service/common/plugins.rb +3 -3
- data/lib/convenient_service/core/concern/class_methods.rb +3 -0
- data/lib/convenient_service/core/entities/config/entities/concerns/entities/stack.rb +22 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/container/concern/instance_methods.rb +1 -1
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/observable/entities/event.rb +13 -15
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/commands/normalize_env.rb +55 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/commands.rb +1 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/concern/instance_methods.rb +3 -3
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/classic.rb +14 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/stack.rb +22 -0
- data/lib/convenient_service/core/entities/config/exceptions.rb +2 -0
- data/lib/convenient_service/core/entities/config.rb +3 -0
- data/lib/convenient_service/dependencies/built_in.rb +0 -7
- data/lib/convenient_service/dependencies/extractions/ds.rb +45 -0
- data/lib/convenient_service/dependencies/only_queries.rb +29 -0
- data/lib/convenient_service/dependencies/queries/gems/active_model.rb +38 -0
- data/lib/convenient_service/dependencies/queries/gems/logger.rb +39 -0
- data/lib/convenient_service/dependencies/queries/gems/paint.rb +39 -0
- data/lib/convenient_service/dependencies/queries/gems/rspec.rb +60 -0
- data/lib/convenient_service/dependencies/queries/ruby.rb +103 -0
- data/lib/convenient_service/dependencies/queries/version/null_version.rb +87 -0
- data/lib/convenient_service/dependencies/queries/version.rb +87 -0
- data/lib/convenient_service/dependencies/queries.rb +536 -0
- data/lib/convenient_service/dependencies.rb +2 -430
- data/lib/convenient_service/feature/configs/standard.rb +0 -2
- data/lib/convenient_service/logger.rb +9 -1
- data/lib/convenient_service/rspec/matchers/classes/call_chain_next.rb +41 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/commands/generate_printable_method.rb +46 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/delegation.rb +89 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/inputs.rb +223 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/outputs.rb +38 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matcher_collection.rb +157 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/arguments/commands/apply_stub_to_track_delegations.rb +77 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/arguments/commands/generate_printable_arguments.rb +94 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/arguments.rb +89 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/base.rb +99 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/return_custom_value.rb +91 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/return_delegation_value.rb +129 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/with_any_arguments.rb +31 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb +31 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers/without_arguments.rb +31 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/sub_matchers.rb +11 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities.rb +5 -1
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/exceptions.rb +65 -0
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to.rb +163 -41
- data/lib/convenient_service/service/configs/amazing_print_inspect/aliases.rb +7 -0
- data/lib/convenient_service/service/configs/amazing_print_inspect.rb +61 -0
- data/lib/convenient_service/service/configs/awesome_print_inspect.rb +1 -1
- data/lib/convenient_service/service/configs/{minimal.rb → essential.rb} +40 -93
- data/lib/convenient_service/service/configs/standard/v1.rb +47 -34
- data/lib/convenient_service/service/configs/standard.rb +70 -68
- data/lib/convenient_service/service/configs.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_connected_steps/concern.rb +503 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/and.rb +136 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/base.rb +126 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb +104 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/group.rb +118 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/not.rb +118 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/or.rb +145 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb +133 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions.rb +10 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/step_collection.rb +224 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities.rb +4 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/exceptions.rb +95 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/middleware.rb +30 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps.rb +6 -0
- data/lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb +18 -0
- data/lib/convenient_service/service/plugins/can_have_fallbacks/exceptions.rb +22 -4
- data/lib/convenient_service/service/plugins/can_have_fallbacks/middleware.rb +3 -3
- data/lib/convenient_service/service/plugins/can_have_rollbacks/middleware.rb +66 -0
- data/lib/convenient_service/service/plugins/can_have_rollbacks.rb +3 -0
- data/lib/convenient_service/service/plugins/can_have_sequential_steps/concern.rb +76 -0
- data/lib/convenient_service/service/plugins/{can_have_steps → can_have_sequential_steps}/entities/step_collection.rb +61 -10
- data/lib/convenient_service/service/plugins/can_have_sequential_steps/entities.rb +3 -0
- data/lib/convenient_service/service/plugins/{can_have_steps → can_have_sequential_steps}/middleware.rb +7 -3
- data/lib/convenient_service/service/plugins/can_have_sequential_steps.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/commands/is_step.rb +34 -0
- data/lib/convenient_service/service/plugins/can_have_steps/commands.rb +1 -0
- data/lib/convenient_service/service/plugins/can_have_steps/concern.rb +4 -57
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/define_method_in_container.rb +45 -26
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/reassignment.rb +0 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/exceptions.rb +4 -24
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/concern/instance_methods.rb +166 -83
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/exceptions.rb +19 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/{can_be_result_step → can_be_method_step}/can_be_executed/exceptions.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_executed/middleware.rb +52 -6
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_executed.rb +1 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb +7 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_alternative_steps.rb +3 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/concern.rb +0 -46
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/exceptions.rb +53 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/middleware.rb +75 -6
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks.rb +1 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_parent_result/middleware.rb +13 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_amazing_print_inspect/concern.rb +46 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_amazing_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_awesome_print_inspect/concern.rb +3 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_result/concern.rb +34 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_result/middleware.rb +58 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_result.rb +4 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins.rb +2 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities.rb +0 -1
- data/lib/convenient_service/service/plugins/can_have_steps.rb +41 -1
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands/fetch_all_services_stubbed_results_cache.rb +2 -2
- data/lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments/exceptions.rb +53 -0
- data/lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments/middleware.rb +108 -0
- data/lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments.rb +4 -0
- data/lib/convenient_service/service/plugins/has_amazing_print_inspect/concern.rb +39 -0
- data/lib/convenient_service/service/plugins/has_amazing_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/{can_have_steps/entities/step/plugins/can_be_result_step → has_j_send_result/entities/result/plugins/can_be_from_exception}/concern.rb +7 -5
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_exception.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_checked_status/concern.rb +2 -2
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_checked_status.rb +0 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_step/concern.rb +7 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect/concern.rb +41 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_awesome_print_inspect/concern.rb +2 -2
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/concern/instance_methods.rb +0 -7
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/has_amazing_print_inspect/concern.rb +46 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/has_amazing_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_amazing_print_inspect/concern.rb +46 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_amazing_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/has_amazing_print_inspect/concern.rb +46 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/has_amazing_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/concern/instance_methods.rb +45 -17
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/can_be_checked/concern.rb +38 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/can_be_checked/middleware.rb +51 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/can_be_checked.rb +4 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/has_amazing_print_inspect/concern.rb +46 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/has_amazing_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins.rb +1 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/exceptions.rb +15 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_negated_result/concern.rb +72 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_negated_result.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/helps_to_learn_similarities_with_common_objects/concern/instance_methods.rb +161 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/helps_to_learn_similarities_with_common_objects/concern.rb +27 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/helps_to_learn_similarities_with_common_objects/exceptions.rb +34 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/helps_to_learn_similarities_with_common_objects.rb +4 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/raises_on_not_checked_result_status/middleware.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result.rb +0 -1
- data/lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/middleware.rb +4 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/concern.rb +6 -1
- data/lib/convenient_service/service/plugins/has_negated_j_send_result/concern.rb +23 -0
- data/lib/convenient_service/service/plugins/has_negated_j_send_result.rb +3 -0
- data/lib/convenient_service/service/plugins/has_negated_result/concern.rb +33 -0
- data/lib/convenient_service/service/plugins/{has_j_send_result → has_negated_result}/exceptions.rb +3 -3
- data/lib/convenient_service/service/plugins/has_negated_result.rb +4 -0
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/middleware.rb +1 -0
- data/lib/convenient_service/service/plugins/{wraps_result_in_db_transaction → wraps_result_in_d_b_transaction}/middleware.rb +1 -1
- data/lib/convenient_service/service/plugins.rb +10 -3
- data/lib/convenient_service/specification.rb +28 -0
- data/lib/convenient_service/support/backtrace_cleaner.rb +6 -1
- data/lib/convenient_service/support/cache/entities/caches/base.rb +3 -0
- data/lib/convenient_service/support/counter.rb +2 -0
- data/lib/convenient_service/support/method_parameters.rb +121 -0
- data/lib/convenient_service/support/middleware/stack_builder.rb +37 -0
- data/lib/convenient_service/support/never_reach_here.rb +21 -0
- data/lib/convenient_service/support/thread_safe_counter.rb +1 -0
- data/lib/convenient_service/support/unique_value.rb +3 -0
- data/lib/convenient_service/support/value.rb +78 -0
- data/lib/convenient_service/support.rb +3 -3
- data/lib/convenient_service/utils/array/find_last.rb +8 -3
- data/lib/convenient_service/utils/object/get_own_method.rb +54 -0
- data/lib/convenient_service/utils/object/instance_variable_delete.rb +1 -1
- data/lib/convenient_service/utils/object/safe_send.rb +84 -0
- data/lib/convenient_service/utils/object.rb +24 -0
- data/lib/convenient_service/utils/string/enclose.rb +52 -0
- data/lib/convenient_service/utils/string.rb +5 -0
- data/lib/convenient_service/version.rb +1 -1
- data/lib/convenient_service.rb +85 -0
- metadata +256 -322
- data/.dev/.tmuxinator.yml +0 -22
- data/.dockerignore +0 -1
- data/.gem_release.yml +0 -11
- data/.github/contributing.md +0 -15
- data/.github/issue_template.md +0 -35
- data/.github/pull_request_template.md +0 -31
- data/.github/workflows/cd.yml +0 -68
- data/.github/workflows/ci.yml +0 -212
- data/.gitignore +0 -66
- data/.inch.yml +0 -7
- data/.rspec +0 -3
- data/.rubocop.yml +0 -45
- data/.rubocop_rspec.yml +0 -58
- data/.ruby-version +0 -1
- data/.tool-versions +0 -1
- data/.vscode/CacheItsValue.code-snippets +0 -15
- data/.vscode/DelegateTo.code-snippets +0 -15
- data/.vscode/cache_its_value.code-snippets +0 -17
- data/.vscode/comparison.code-snippets +0 -41
- data/.vscode/delegate_to.code-snippets +0 -20
- data/.yardopts +0 -16
- data/Appraisals +0 -146
- data/CHANGELOG.md +0 -504
- data/Gemfile +0 -17
- data/ROADMAP.md +0 -92
- data/Rakefile +0 -54
- data/Taskfile.yml +0 -679
- data/benchmark/commit_config/ips.rb +0 -18
- data/benchmark/commit_config/profile.rb +0 -30
- data/benchmark/empty_service/ips.rb +0 -123
- data/benchmark/has_committed_config/ips.rb +0 -78
- data/benchmark/has_committed_config/profile.rb +0 -30
- data/convenient_service.gemspec +0 -233
- data/coverage/.gitkeep +0 -0
- data/docker/2.7/Dockerfile +0 -73
- data/docker/3.0/Dockerfile +0 -73
- data/docker/3.1/Dockerfile +0 -73
- data/docker/3.2/Dockerfile +0 -73
- data/docker/jruby-9.4/Dockerfile +0 -88
- data/docker/truffleruby-22.3/Dockerfile +0 -91
- data/docs/.gitkeep +0 -0
- data/docs/api/.gitkeep +0 -0
- data/env.rb +0 -23
- data/gemfiles/.gitkeep +0 -0
- data/lib/convenient_service/common/plugins/has_callbacks/container.rb +0 -17
- data/lib/convenient_service/common/plugins/normalizes_env/middleware.rb +0 -31
- data/lib/convenient_service/common/plugins/normalizes_env.rb +0 -3
- data/lib/convenient_service/examples/dry/gemfile/dry_service/config.rb +0 -45
- data/lib/convenient_service/examples/dry/gemfile/dry_service.rb +0 -3
- data/lib/convenient_service/examples/dry/gemfile/services/assert_file_exists.rb +0 -29
- data/lib/convenient_service/examples/dry/gemfile/services/assert_file_not_empty.rb +0 -29
- data/lib/convenient_service/examples/dry/gemfile/services/assert_node_available.rb +0 -26
- data/lib/convenient_service/examples/dry/gemfile/services/assert_npm_package_available.rb +0 -39
- data/lib/convenient_service/examples/dry/gemfile/services/assert_valid_ruby_syntax.rb +0 -41
- data/lib/convenient_service/examples/dry/gemfile/services/format.rb +0 -37
- data/lib/convenient_service/examples/dry/gemfile/services/format_body.rb +0 -93
- data/lib/convenient_service/examples/dry/gemfile/services/format_gems_with_envs.rb +0 -96
- data/lib/convenient_service/examples/dry/gemfile/services/format_gems_without_envs.rb +0 -84
- data/lib/convenient_service/examples/dry/gemfile/services/format_header.rb +0 -74
- data/lib/convenient_service/examples/dry/gemfile/services/parse_content.rb +0 -93
- data/lib/convenient_service/examples/dry/gemfile/services/print_shell_command.rb +0 -44
- data/lib/convenient_service/examples/dry/gemfile/services/read_file_content.rb +0 -31
- data/lib/convenient_service/examples/dry/gemfile/services/run_shell_command.rb +0 -45
- data/lib/convenient_service/examples/dry/gemfile/services/strip_comments.rb +0 -109
- data/lib/convenient_service/examples/dry/gemfile/services.rb +0 -18
- data/lib/convenient_service/examples/dry/gemfile.rb +0 -27
- data/lib/convenient_service/examples/dry/v1/gemfile/dry_service/config.rb +0 -47
- data/lib/convenient_service/examples/dry/v1/gemfile/dry_service.rb +0 -3
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_file_exists.rb +0 -31
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_file_not_empty.rb +0 -31
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_node_available.rb +0 -28
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_npm_package_available.rb +0 -41
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_valid_ruby_syntax.rb +0 -43
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format.rb +0 -39
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format_body.rb +0 -95
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format_gems_with_envs.rb +0 -98
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format_gems_without_envs.rb +0 -86
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format_header.rb +0 -76
- data/lib/convenient_service/examples/dry/v1/gemfile/services/parse_content.rb +0 -95
- data/lib/convenient_service/examples/dry/v1/gemfile/services/read_file_content.rb +0 -33
- data/lib/convenient_service/examples/dry/v1/gemfile/services/run_shell_command.rb +0 -43
- data/lib/convenient_service/examples/dry/v1/gemfile/services/strip_comments.rb +0 -111
- data/lib/convenient_service/examples/dry/v1/gemfile/services.rb +0 -17
- data/lib/convenient_service/examples/dry/v1/gemfile.rb +0 -29
- data/lib/convenient_service/examples/rails/gemfile/rails_service/config.rb +0 -56
- data/lib/convenient_service/examples/rails/gemfile/rails_service.rb +0 -3
- data/lib/convenient_service/examples/rails/gemfile/services/assert_file_exists.rb +0 -25
- data/lib/convenient_service/examples/rails/gemfile/services/assert_file_not_empty.rb +0 -25
- data/lib/convenient_service/examples/rails/gemfile/services/assert_node_available.rb +0 -26
- data/lib/convenient_service/examples/rails/gemfile/services/assert_npm_package_available.rb +0 -35
- data/lib/convenient_service/examples/rails/gemfile/services/assert_valid_ruby_syntax.rb +0 -35
- data/lib/convenient_service/examples/rails/gemfile/services/format.rb +0 -66
- data/lib/convenient_service/examples/rails/gemfile/services/format_body.rb +0 -79
- data/lib/convenient_service/examples/rails/gemfile/services/format_gems_with_envs.rb +0 -82
- data/lib/convenient_service/examples/rails/gemfile/services/format_gems_without_envs.rb +0 -70
- data/lib/convenient_service/examples/rails/gemfile/services/format_header.rb +0 -68
- data/lib/convenient_service/examples/rails/gemfile/services/merge_sections.rb +0 -25
- data/lib/convenient_service/examples/rails/gemfile/services/parse_content.rb +0 -89
- data/lib/convenient_service/examples/rails/gemfile/services/print_shell_command.rb +0 -40
- data/lib/convenient_service/examples/rails/gemfile/services/read_file_content.rb +0 -27
- data/lib/convenient_service/examples/rails/gemfile/services/replace_file_content.rb +0 -37
- data/lib/convenient_service/examples/rails/gemfile/services/run_shell_command.rb +0 -40
- data/lib/convenient_service/examples/rails/gemfile/services/strip_comments.rb +0 -107
- data/lib/convenient_service/examples/rails/gemfile/services.rb +0 -21
- data/lib/convenient_service/examples/rails/gemfile.rb +0 -27
- data/lib/convenient_service/examples/rails/v1/gemfile/rails_service/config.rb +0 -58
- data/lib/convenient_service/examples/rails/v1/gemfile/rails_service.rb +0 -3
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_file_exists.rb +0 -27
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_file_not_empty.rb +0 -27
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_node_available.rb +0 -28
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_npm_package_available.rb +0 -37
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_valid_ruby_syntax.rb +0 -37
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format.rb +0 -68
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format_body.rb +0 -81
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format_gems_with_envs.rb +0 -84
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format_gems_without_envs.rb +0 -72
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format_header.rb +0 -70
- data/lib/convenient_service/examples/rails/v1/gemfile/services/merge_sections.rb +0 -27
- data/lib/convenient_service/examples/rails/v1/gemfile/services/parse_content.rb +0 -91
- data/lib/convenient_service/examples/rails/v1/gemfile/services/read_file_content.rb +0 -29
- data/lib/convenient_service/examples/rails/v1/gemfile/services/replace_file_content.rb +0 -39
- data/lib/convenient_service/examples/rails/v1/gemfile/services/run_shell_command.rb +0 -38
- data/lib/convenient_service/examples/rails/v1/gemfile/services/strip_comments.rb +0 -109
- data/lib/convenient_service/examples/rails/v1/gemfile/services.rb +0 -20
- data/lib/convenient_service/examples/rails/v1/gemfile.rb +0 -29
- data/lib/convenient_service/examples/standard/cowsay/services/build_cloud.rb +0 -42
- data/lib/convenient_service/examples/standard/cowsay/services/build_cow.rb +0 -38
- data/lib/convenient_service/examples/standard/cowsay/services/print.rb +0 -32
- data/lib/convenient_service/examples/standard/cowsay/services.rb +0 -5
- data/lib/convenient_service/examples/standard/cowsay.rb +0 -26
- data/lib/convenient_service/examples/standard/date_time/services/safe_parse.rb +0 -31
- data/lib/convenient_service/examples/standard/date_time/services.rb +0 -3
- data/lib/convenient_service/examples/standard/date_time.rb +0 -25
- data/lib/convenient_service/examples/standard/factorial/services/calculate.rb +0 -55
- data/lib/convenient_service/examples/standard/factorial/services.rb +0 -3
- data/lib/convenient_service/examples/standard/factorial/utils/timeout/with_timeout.rb +0 -50
- data/lib/convenient_service/examples/standard/factorial/utils/timeout.rb +0 -21
- data/lib/convenient_service/examples/standard/factorial/utils.rb +0 -3
- data/lib/convenient_service/examples/standard/factorial.rb +0 -26
- data/lib/convenient_service/examples/standard/gemfile/services/assert_file_exists.rb +0 -30
- data/lib/convenient_service/examples/standard/gemfile/services/assert_file_not_empty.rb +0 -30
- data/lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb +0 -26
- data/lib/convenient_service/examples/standard/gemfile/services/assert_npm_package_available.rb +0 -48
- data/lib/convenient_service/examples/standard/gemfile/services/assert_valid_ruby_syntax.rb +0 -39
- data/lib/convenient_service/examples/standard/gemfile/services/format.rb +0 -80
- data/lib/convenient_service/examples/standard/gemfile/services/format_body.rb +0 -83
- data/lib/convenient_service/examples/standard/gemfile/services/format_gems_with_envs.rb +0 -86
- data/lib/convenient_service/examples/standard/gemfile/services/format_gems_without_envs.rb +0 -74
- data/lib/convenient_service/examples/standard/gemfile/services/format_header.rb +0 -66
- data/lib/convenient_service/examples/standard/gemfile/services/merge_sections.rb +0 -52
- data/lib/convenient_service/examples/standard/gemfile/services/parse_content.rb +0 -101
- data/lib/convenient_service/examples/standard/gemfile/services/print_shell_command.rb +0 -45
- data/lib/convenient_service/examples/standard/gemfile/services/read_file_content.rb +0 -39
- data/lib/convenient_service/examples/standard/gemfile/services/replace_file_content.rb +0 -48
- data/lib/convenient_service/examples/standard/gemfile/services/run_shell_command.rb +0 -54
- data/lib/convenient_service/examples/standard/gemfile/services/strip_comments.rb +0 -111
- data/lib/convenient_service/examples/standard/gemfile/services.rb +0 -21
- data/lib/convenient_service/examples/standard/gemfile.rb +0 -26
- data/lib/convenient_service/examples/standard/request_params/constants.rb +0 -15
- data/lib/convenient_service/examples/standard/request_params/entities/description.rb +0 -40
- data/lib/convenient_service/examples/standard/request_params/entities/format.rb +0 -40
- data/lib/convenient_service/examples/standard/request_params/entities/id.rb +0 -47
- data/lib/convenient_service/examples/standard/request_params/entities/logger.rb +0 -21
- data/lib/convenient_service/examples/standard/request_params/entities/request.rb +0 -23
- data/lib/convenient_service/examples/standard/request_params/entities/source.rb +0 -40
- data/lib/convenient_service/examples/standard/request_params/entities/tag.rb +0 -40
- data/lib/convenient_service/examples/standard/request_params/entities/title.rb +0 -40
- data/lib/convenient_service/examples/standard/request_params/entities.rb +0 -11
- data/lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb +0 -26
- data/lib/convenient_service/examples/standard/request_params/services/cast_params.rb +0 -38
- data/lib/convenient_service/examples/standard/request_params/services/extract_params_from_body.rb +0 -70
- data/lib/convenient_service/examples/standard/request_params/services/extract_params_from_path.rb +0 -62
- data/lib/convenient_service/examples/standard/request_params/services/filter_out_unpermitted_params.rb +0 -26
- data/lib/convenient_service/examples/standard/request_params/services/log_request_params.rb +0 -54
- data/lib/convenient_service/examples/standard/request_params/services/merge_params.rb +0 -26
- data/lib/convenient_service/examples/standard/request_params/services/prepare.rb +0 -65
- data/lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb +0 -94
- data/lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb +0 -72
- data/lib/convenient_service/examples/standard/request_params/services.rb +0 -13
- data/lib/convenient_service/examples/standard/request_params/utils/array/wrap.rb +0 -46
- data/lib/convenient_service/examples/standard/request_params/utils/array.rb +0 -21
- data/lib/convenient_service/examples/standard/request_params/utils/http/request/parse_body.rb +0 -42
- data/lib/convenient_service/examples/standard/request_params/utils/http/request/parse_path.rb +0 -40
- data/lib/convenient_service/examples/standard/request_params/utils/http/request.rb +0 -28
- data/lib/convenient_service/examples/standard/request_params/utils/http.rb +0 -3
- data/lib/convenient_service/examples/standard/request_params/utils/integer/safe_parse.rb +0 -31
- data/lib/convenient_service/examples/standard/request_params/utils/integer.rb +0 -25
- data/lib/convenient_service/examples/standard/request_params/utils/json/safe_parse.rb +0 -40
- data/lib/convenient_service/examples/standard/request_params/utils/json.rb +0 -21
- data/lib/convenient_service/examples/standard/request_params/utils/object/blank.rb +0 -34
- data/lib/convenient_service/examples/standard/request_params/utils/object/present.rb +0 -31
- data/lib/convenient_service/examples/standard/request_params/utils/object.rb +0 -26
- data/lib/convenient_service/examples/standard/request_params/utils/url/valid.rb +0 -47
- data/lib/convenient_service/examples/standard/request_params/utils/url.rb +0 -21
- data/lib/convenient_service/examples/standard/request_params/utils.rb +0 -8
- data/lib/convenient_service/examples/standard/request_params.rb +0 -49
- data/lib/convenient_service/examples/standard/v1/cowsay/services/build_cloud.rb +0 -44
- data/lib/convenient_service/examples/standard/v1/cowsay/services/build_cow.rb +0 -40
- data/lib/convenient_service/examples/standard/v1/cowsay/services/print.rb +0 -34
- data/lib/convenient_service/examples/standard/v1/cowsay/services.rb +0 -5
- data/lib/convenient_service/examples/standard/v1/cowsay.rb +0 -26
- data/lib/convenient_service/examples/standard/v1/date_time/services/safe_parse.rb +0 -33
- data/lib/convenient_service/examples/standard/v1/date_time/services.rb +0 -3
- data/lib/convenient_service/examples/standard/v1/date_time.rb +0 -25
- data/lib/convenient_service/examples/standard/v1/factorial/services/calculate.rb +0 -51
- data/lib/convenient_service/examples/standard/v1/factorial/services.rb +0 -3
- data/lib/convenient_service/examples/standard/v1/factorial/utils/timeout/with_timeout.rb +0 -52
- data/lib/convenient_service/examples/standard/v1/factorial/utils/timeout.rb +0 -23
- data/lib/convenient_service/examples/standard/v1/factorial/utils.rb +0 -3
- data/lib/convenient_service/examples/standard/v1/factorial.rb +0 -26
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_file_exists.rb +0 -32
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_file_not_empty.rb +0 -32
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_node_available.rb +0 -28
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_npm_package_available.rb +0 -50
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_valid_ruby_syntax.rb +0 -41
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format.rb +0 -82
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format_body.rb +0 -85
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format_gems_with_envs.rb +0 -88
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format_gems_without_envs.rb +0 -76
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format_header.rb +0 -68
- data/lib/convenient_service/examples/standard/v1/gemfile/services/merge_sections.rb +0 -54
- data/lib/convenient_service/examples/standard/v1/gemfile/services/parse_content.rb +0 -103
- data/lib/convenient_service/examples/standard/v1/gemfile/services/read_file_content.rb +0 -41
- data/lib/convenient_service/examples/standard/v1/gemfile/services/replace_file_content.rb +0 -50
- data/lib/convenient_service/examples/standard/v1/gemfile/services/run_shell_command.rb +0 -52
- data/lib/convenient_service/examples/standard/v1/gemfile/services/strip_comments.rb +0 -113
- data/lib/convenient_service/examples/standard/v1/gemfile/services.rb +0 -20
- data/lib/convenient_service/examples/standard/v1/gemfile.rb +0 -26
- data/lib/convenient_service/examples/standard/v1/request_params/constants.rb +0 -17
- data/lib/convenient_service/examples/standard/v1/request_params/entities/description.rb +0 -42
- data/lib/convenient_service/examples/standard/v1/request_params/entities/format.rb +0 -42
- data/lib/convenient_service/examples/standard/v1/request_params/entities/id.rb +0 -49
- data/lib/convenient_service/examples/standard/v1/request_params/entities/logger.rb +0 -23
- data/lib/convenient_service/examples/standard/v1/request_params/entities/request.rb +0 -25
- data/lib/convenient_service/examples/standard/v1/request_params/entities/source.rb +0 -42
- data/lib/convenient_service/examples/standard/v1/request_params/entities/tag.rb +0 -42
- data/lib/convenient_service/examples/standard/v1/request_params/entities/title.rb +0 -42
- data/lib/convenient_service/examples/standard/v1/request_params/entities.rb +0 -11
- data/lib/convenient_service/examples/standard/v1/request_params/services/apply_default_param_values.rb +0 -28
- data/lib/convenient_service/examples/standard/v1/request_params/services/cast_params.rb +0 -40
- data/lib/convenient_service/examples/standard/v1/request_params/services/extract_params_from_body.rb +0 -72
- data/lib/convenient_service/examples/standard/v1/request_params/services/extract_params_from_path.rb +0 -64
- data/lib/convenient_service/examples/standard/v1/request_params/services/filter_out_unpermitted_params.rb +0 -28
- data/lib/convenient_service/examples/standard/v1/request_params/services/log_request_params.rb +0 -56
- data/lib/convenient_service/examples/standard/v1/request_params/services/merge_params.rb +0 -28
- data/lib/convenient_service/examples/standard/v1/request_params/services/prepare.rb +0 -67
- data/lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb +0 -96
- data/lib/convenient_service/examples/standard/v1/request_params/services/validate_uncasted_params.rb +0 -74
- data/lib/convenient_service/examples/standard/v1/request_params/services.rb +0 -13
- data/lib/convenient_service/examples/standard/v1/request_params/utils/array/wrap.rb +0 -48
- data/lib/convenient_service/examples/standard/v1/request_params/utils/array.rb +0 -23
- data/lib/convenient_service/examples/standard/v1/request_params/utils/http/request/parse_body.rb +0 -44
- data/lib/convenient_service/examples/standard/v1/request_params/utils/http/request/parse_path.rb +0 -42
- data/lib/convenient_service/examples/standard/v1/request_params/utils/http/request.rb +0 -30
- data/lib/convenient_service/examples/standard/v1/request_params/utils/http.rb +0 -3
- data/lib/convenient_service/examples/standard/v1/request_params/utils/integer/safe_parse.rb +0 -33
- data/lib/convenient_service/examples/standard/v1/request_params/utils/integer.rb +0 -27
- data/lib/convenient_service/examples/standard/v1/request_params/utils/json/safe_parse.rb +0 -42
- data/lib/convenient_service/examples/standard/v1/request_params/utils/json.rb +0 -23
- data/lib/convenient_service/examples/standard/v1/request_params/utils/object/blank.rb +0 -36
- data/lib/convenient_service/examples/standard/v1/request_params/utils/object/present.rb +0 -33
- data/lib/convenient_service/examples/standard/v1/request_params/utils/object.rb +0 -28
- data/lib/convenient_service/examples/standard/v1/request_params/utils/url/valid.rb +0 -49
- data/lib/convenient_service/examples/standard/v1/request_params/utils/url.rb +0 -23
- data/lib/convenient_service/examples/standard/v1/request_params/utils.rb +0 -8
- data/lib/convenient_service/examples/standard/v1/request_params.rb +0 -49
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/commands/generate_printable_method.rb +0 -50
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/sub_matchers/arguments/commands/apply_stub_to_track_delegations.rb +0 -82
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/sub_matchers/arguments/commands/generate_printable_arguments.rb +0 -100
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/sub_matchers/arguments.rb +0 -95
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/sub_matchers/base.rb +0 -87
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/sub_matchers/return_its_value.rb +0 -132
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/sub_matchers/with_any_arguments.rb +0 -37
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/sub_matchers/with_concrete_arguments.rb +0 -37
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/sub_matchers/without_arguments.rb +0 -37
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/values/base.rb +0 -41
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/values/with_calling_original.rb +0 -30
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings/values/without_calling_original.rb +0 -30
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings.rb +0 -12
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings_collection/exceptions.rb +0 -57
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/chainings_collection.rb +0 -171
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities/delegation.rb +0 -79
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher/entities.rb +0 -5
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/matcher.rb +0 -276
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/reassignment/commands/define_method_in_container.rb +0 -74
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/reassignment/commands.rb +0 -3
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/can_be_executed/middleware.rb +0 -72
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/can_be_executed.rb +0 -4
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step.rb +0 -5
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/result.rb +0 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_checked_status/middleware.rb +0 -43
- data/lib/convenient_service/services.rb +0 -4
- data/lib/convenient_service/support/gems/active_model.rb +0 -36
- data/lib/convenient_service/support/gems/logger.rb +0 -37
- data/lib/convenient_service/support/gems/paint.rb +0 -37
- data/lib/convenient_service/support/gems/rspec.rb +0 -58
- data/lib/convenient_service/support/ruby.rb +0 -53
- data/lib/convenient_service/support/version/null_version.rb +0 -85
- data/lib/convenient_service/support/version.rb +0 -75
- data/logo.png +0 -0
- data/minitest.rb +0 -30
- data/yard/yard-convenient_service_concern.rb +0 -45
- /data/lib/convenient_service/{support → dependencies/queries}/gems.rb +0 -0
- /data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/{entities/matcher/commands.rb → commands.rb} +0 -0
- /data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/entities/{matcher/entities/chainings/sub_matchers → sub_matchers}/arguments/commands.rb +0 -0
@@ -1,11 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require_relative "delegate_to/commands"
|
3
4
|
require_relative "delegate_to/entities"
|
5
|
+
require_relative "delegate_to/exceptions"
|
4
6
|
|
5
7
|
##
|
6
8
|
# @internal
|
7
9
|
# IMPORTANT: This matcher has a dedicated end-user doc. Do NOT forget to update it when needed.
|
8
|
-
# https://github.com/marian13/convenient_service_docs/blob/main/docs/api/tests/rspec/matchers/delegate_to.mdx
|
10
|
+
# - https://github.com/marian13/convenient_service_docs/blob/main/docs/api/tests/rspec/matchers/delegate_to.mdx
|
9
11
|
#
|
10
12
|
module ConvenientService
|
11
13
|
module RSpec
|
@@ -13,122 +15,242 @@ module ConvenientService
|
|
13
15
|
module Classes
|
14
16
|
##
|
15
17
|
# @internal
|
16
|
-
# NOTE:
|
17
|
-
#
|
18
|
+
# NOTE: Consider the following concrete usage example to simplify understanding of variable namings used throughout this class:
|
19
|
+
# specify do
|
20
|
+
# expect { method_class.cast(other, **options) }
|
21
|
+
# .to delegate_to(ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::CastMethod, :call)
|
22
|
+
# .with_arguments(other: other, options: options)
|
23
|
+
# .and_return_its_value
|
24
|
+
# end
|
25
|
+
#
|
26
|
+
# Block `{ method_class.cast(other, **options) }` is named as `block_expectation`.
|
27
|
+
# Class `ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Commands::CastMethod` is named as `object`.
|
28
|
+
# Symbol `:call` is named as `method`.
|
29
|
+
# Arguments `(other: other, options: options)` are named as `expected_arguments`.
|
30
|
+
# Additional submatcher added by `and_return_its_value` chaining is named as `sub_matchers.return_its_value`.
|
31
|
+
#
|
32
|
+
# NOTE: A similar (with different behaviour) matcher exists in `saharspec`.
|
33
|
+
# - https://github.com/zverok/saharspec#send_messageobject-method-matcher
|
18
34
|
#
|
19
35
|
class DelegateTo
|
20
|
-
|
36
|
+
##
|
37
|
+
# @api private
|
38
|
+
#
|
39
|
+
# @!attribute [r] inputs
|
40
|
+
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Entities::Inputs]
|
41
|
+
#
|
42
|
+
attr_reader :inputs
|
21
43
|
|
22
44
|
##
|
23
|
-
# @
|
45
|
+
# @api private
|
46
|
+
#
|
47
|
+
# @!attribute [r] outputs
|
48
|
+
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Entities::Outputs]
|
24
49
|
#
|
25
|
-
|
50
|
+
attr_reader :outputs
|
26
51
|
|
27
52
|
##
|
53
|
+
# @api private
|
54
|
+
#
|
55
|
+
# @param object [Object]
|
56
|
+
# @param method [String, Symbol]
|
57
|
+
# @param block_expectation [Proc]
|
58
|
+
# @return [void]
|
59
|
+
#
|
28
60
|
# @internal
|
29
|
-
#
|
30
|
-
#
|
61
|
+
# TODO: `raise unless object.respond_to?(method)`.
|
62
|
+
# TODO: `any_block`.
|
63
|
+
# TODO: `with_warmup`.
|
64
|
+
# TODO: `compare_by`.
|
31
65
|
#
|
32
|
-
|
66
|
+
def initialize(object, method, block_expectation = proc { Support::UNDEFINED })
|
67
|
+
@inputs = Entities::Inputs.new(object: object, method: method, block_expectation: block_expectation)
|
68
|
+
@outputs = Entities::Outputs.new
|
69
|
+
end
|
33
70
|
|
34
71
|
##
|
35
|
-
# @
|
72
|
+
# @api public
|
73
|
+
#
|
74
|
+
# @param block_expectation [Proc]
|
75
|
+
# @return [Boolean]
|
36
76
|
#
|
37
|
-
|
77
|
+
def matches?(block_expectation)
|
78
|
+
inputs.block_expectation = block_expectation
|
79
|
+
|
80
|
+
sub_matchers.matches?(inputs.block_expectation)
|
81
|
+
end
|
38
82
|
|
39
83
|
##
|
40
|
-
# @
|
84
|
+
# @api public
|
41
85
|
#
|
42
|
-
|
86
|
+
# @param block_expectation [Proc]
|
87
|
+
# @return [Boolean]
|
88
|
+
#
|
89
|
+
def does_not_match?(block_expectation)
|
90
|
+
inputs.block_expectation = block_expectation
|
91
|
+
|
92
|
+
!sub_matchers.matches?(inputs.block_expectation)
|
93
|
+
end
|
43
94
|
|
44
95
|
##
|
96
|
+
# @api public
|
97
|
+
#
|
98
|
+
# @internal
|
99
|
+
# NOTE: Required by RSpec.
|
100
|
+
# - https://relishapp.com/rspec/rspec-expectations/v/3-8/docs/custom-matchers/define-a-matcher-supporting-block-expectations
|
101
|
+
#
|
102
|
+
def supports_block_expectations?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
##
|
107
|
+
# @api public
|
108
|
+
#
|
45
109
|
# @return [String]
|
46
110
|
#
|
47
|
-
|
111
|
+
def description
|
112
|
+
"delegate to `#{inputs.printable_method}`"
|
113
|
+
end
|
48
114
|
|
49
115
|
##
|
50
|
-
# @
|
51
|
-
# @param object [Object]
|
52
|
-
# @param method [String, Symbol]
|
53
|
-
# @return [void]
|
116
|
+
# @api public
|
54
117
|
#
|
55
|
-
# @
|
56
|
-
# @param matcher [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Entities::Matcher]
|
57
|
-
# @return [void]
|
58
|
-
# @api private
|
118
|
+
# @return [String]
|
59
119
|
#
|
60
|
-
|
61
|
-
|
120
|
+
def failure_message
|
121
|
+
sub_matchers.failure_message
|
122
|
+
end
|
123
|
+
|
124
|
+
##
|
125
|
+
# @api public
|
62
126
|
#
|
63
|
-
|
64
|
-
|
127
|
+
# @return [String]
|
128
|
+
#
|
129
|
+
def failure_message_when_negated
|
130
|
+
sub_matchers.failure_message_when_negated
|
65
131
|
end
|
66
132
|
|
67
133
|
##
|
134
|
+
# @api public
|
135
|
+
#
|
68
136
|
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo]
|
69
137
|
# @raise [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Exceptions::ArgumentsChainingIsAlreadySet]
|
70
138
|
#
|
71
139
|
def with_arguments(...)
|
72
|
-
|
140
|
+
::ConvenientService.raise Exceptions::ArgumentsChainingIsAlreadySet.new if sub_matchers.has_arguments?
|
141
|
+
|
142
|
+
inputs.expected_arguments = Support::Arguments.new(...)
|
143
|
+
|
144
|
+
sub_matchers.arguments = Entities::SubMatchers::WithConcreteArguments.new(matcher: self)
|
73
145
|
|
74
146
|
self
|
75
147
|
end
|
76
148
|
|
77
149
|
##
|
150
|
+
# @api public
|
151
|
+
#
|
78
152
|
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo]
|
79
153
|
# @raise [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Exceptions::ArgumentsChainingIsAlreadySet]
|
80
154
|
#
|
81
155
|
def with_any_arguments
|
82
|
-
|
156
|
+
::ConvenientService.raise Exceptions::ArgumentsChainingIsAlreadySet.new if sub_matchers.has_arguments?
|
157
|
+
|
158
|
+
sub_matchers.arguments = Entities::SubMatchers::WithAnyArguments.new(matcher: self)
|
83
159
|
|
84
160
|
self
|
85
161
|
end
|
86
162
|
|
87
163
|
##
|
164
|
+
# @api public
|
165
|
+
#
|
88
166
|
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo]
|
89
167
|
# @raise [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Exceptions::ArgumentsChainingIsAlreadySet]
|
90
168
|
#
|
91
169
|
def without_arguments
|
92
|
-
|
170
|
+
::ConvenientService.raise Exceptions::ArgumentsChainingIsAlreadySet.new if sub_matchers.has_arguments?
|
171
|
+
|
172
|
+
sub_matchers.arguments = Entities::SubMatchers::WithoutArguments.new(matcher: self)
|
93
173
|
|
94
174
|
self
|
95
175
|
end
|
96
176
|
|
97
177
|
##
|
178
|
+
# @api public
|
179
|
+
#
|
98
180
|
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo]
|
99
|
-
# @raise [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Exceptions::
|
181
|
+
# @raise [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Exceptions::ReturnValueChainingIsAlreadySet]
|
100
182
|
#
|
101
183
|
def and_return_its_value
|
102
|
-
|
184
|
+
::ConvenientService.raise Exceptions::ReturnValueChainingIsAlreadySet.new if sub_matchers.has_return_value?
|
185
|
+
|
186
|
+
sub_matchers.return_value = Entities::SubMatchers::ReturnDelegationValue.new(matcher: self)
|
103
187
|
|
104
188
|
self
|
105
189
|
end
|
106
190
|
|
107
191
|
##
|
108
|
-
#
|
192
|
+
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo]
|
193
|
+
# @raise [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Exceptions::ReturnValueChainingIsAlreadySet]
|
109
194
|
#
|
110
|
-
|
111
|
-
|
195
|
+
def and_return(...)
|
196
|
+
::ConvenientService.raise Exceptions::ReturnValueChainingIsAlreadySet.new if sub_matchers.has_return_value?
|
197
|
+
|
198
|
+
inputs.update_expected_return_value_block(...)
|
199
|
+
|
200
|
+
sub_matchers.return_value = Entities::SubMatchers::ReturnCustomValue.new(matcher: self)
|
201
|
+
|
202
|
+
self
|
203
|
+
end
|
204
|
+
|
205
|
+
##
|
206
|
+
# @api public
|
207
|
+
#
|
208
|
+
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo]
|
112
209
|
#
|
113
|
-
|
114
|
-
|
210
|
+
def with_calling_original
|
211
|
+
::ConvenientService.raise Exceptions::CallOriginalChainingIsAlreadySet.new if inputs.has_call_original?
|
212
|
+
|
213
|
+
inputs.should_call_original = true
|
214
|
+
|
215
|
+
self
|
216
|
+
end
|
115
217
|
|
116
218
|
##
|
219
|
+
# @api public
|
220
|
+
#
|
117
221
|
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo]
|
118
222
|
#
|
119
223
|
def without_calling_original
|
120
|
-
|
224
|
+
::ConvenientService.raise Exceptions::CallOriginalChainingIsAlreadySet.new if inputs.has_call_original?
|
225
|
+
|
226
|
+
inputs.should_call_original = false
|
121
227
|
|
122
228
|
self
|
123
229
|
end
|
124
230
|
|
125
|
-
|
231
|
+
##
|
232
|
+
# @api private
|
233
|
+
#
|
234
|
+
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Entities::SubMatchers]
|
235
|
+
#
|
236
|
+
def sub_matchers
|
237
|
+
@sub_matchers ||= Entities::SubMatcherCollection.new(matcher: self)
|
238
|
+
end
|
126
239
|
|
127
240
|
##
|
128
|
-
#
|
129
|
-
# @return [ConvenientService::RSpec::PrimitiveMatchers::Classes::DelegateTo::Entities::Matcher]
|
241
|
+
# @api private
|
130
242
|
#
|
131
|
-
|
243
|
+
# @param other [Object] Can be any type.
|
244
|
+
# @return [Boolean, nil]
|
245
|
+
#
|
246
|
+
def ==(other)
|
247
|
+
return unless other.instance_of?(self.class)
|
248
|
+
|
249
|
+
return false if inputs != other.inputs
|
250
|
+
return false if outputs != other.outputs
|
251
|
+
|
252
|
+
true
|
253
|
+
end
|
132
254
|
end
|
133
255
|
end
|
134
256
|
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ConvenientService
|
4
|
+
module Service
|
5
|
+
module Configs
|
6
|
+
module AmazingPrintInspect
|
7
|
+
include Support::Concern
|
8
|
+
|
9
|
+
# rubocop:disable Lint/ConstantDefinitionInBlock
|
10
|
+
included do
|
11
|
+
include Configs::Essential
|
12
|
+
|
13
|
+
##
|
14
|
+
# @internal
|
15
|
+
# TODO: Plugin groups for autoreplacement of plugins with same purpose.
|
16
|
+
#
|
17
|
+
concerns do
|
18
|
+
use ConvenientService::Plugins::Service::HasAmazingPrintInspect::Concern
|
19
|
+
end
|
20
|
+
|
21
|
+
class self::Result
|
22
|
+
concerns do
|
23
|
+
use ConvenientService::Plugins::Result::HasAmazingPrintInspect::Concern
|
24
|
+
end
|
25
|
+
|
26
|
+
class self::Data
|
27
|
+
concerns do
|
28
|
+
use ConvenientService::Plugins::Data::HasAmazingPrintInspect::Concern
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class self::Message
|
33
|
+
concerns do
|
34
|
+
use ConvenientService::Plugins::Message::HasAmazingPrintInspect::Concern
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
class self::Code
|
39
|
+
concerns do
|
40
|
+
use ConvenientService::Plugins::Code::HasAmazingPrintInspect::Concern
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
class self::Status
|
45
|
+
concerns do
|
46
|
+
use ConvenientService::Plugins::Status::HasAmazingPrintInspect::Concern
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
class self::Step
|
52
|
+
concerns do
|
53
|
+
use ConvenientService::Plugins::Step::HasAmazingPrintInspect::Concern
|
54
|
+
end
|
55
|
+
end
|
56
|
+
end
|
57
|
+
# rubocop:enable Lint/ConstantDefinitionInBlock
|
58
|
+
end
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -4,34 +4,14 @@ module ConvenientService
|
|
4
4
|
module Service
|
5
5
|
module Configs
|
6
6
|
##
|
7
|
-
# Defines
|
7
|
+
# Defines essential configuration that adds a constructor, JSend-inspired result, steps, basic inspects, and internals to services.
|
8
8
|
#
|
9
9
|
# @note This config is NOT intented for the end-user usage. Use `Standard` instead.
|
10
10
|
#
|
11
|
-
# @note
|
12
|
-
# `use ConvenientService::Plugins::Common::NormalizesEnv::Middleware` should be used in a config that has the first `concern` that introduces a method.
|
13
|
-
# For example, `:result` is added by `use ConvenientService::Plugins::Service::HasJSendResult::Concern` in `Minimal`.
|
14
|
-
# That is why the following code is written in the `Minimal` config.
|
15
|
-
#
|
16
|
-
# middlewares :result do
|
17
|
-
# use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
18
|
-
#
|
19
|
-
# # ...
|
20
|
-
# end
|
21
|
-
#
|
22
|
-
# In turn, `:fallback_result` is added by `use ConvenientService::Plugins::Service::CanHaveFallbacks::Concern` in `Standard`.
|
23
|
-
# That is why it is the responsibility of the `Standard` config, to define:
|
24
|
-
#
|
25
|
-
# middlewares :fallback_result do
|
26
|
-
# use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
27
|
-
#
|
28
|
-
# # ...
|
29
|
-
# end
|
30
|
-
#
|
31
11
|
# @internal
|
32
12
|
# NOTE: Heavily used in specs to test concerns and middlewares in isolation.
|
33
13
|
#
|
34
|
-
module
|
14
|
+
module Essential
|
35
15
|
include Support::Concern
|
36
16
|
|
37
17
|
##
|
@@ -56,45 +36,45 @@ module ConvenientService
|
|
56
36
|
|
57
37
|
use ConvenientService::Plugins::Service::HasResult::Concern
|
58
38
|
use ConvenientService::Plugins::Service::HasJSendResult::Concern
|
39
|
+
|
40
|
+
use ConvenientService::Plugins::Service::HasNegatedResult::Concern
|
41
|
+
use ConvenientService::Plugins::Service::HasNegatedJSendResult::Concern
|
42
|
+
|
59
43
|
use ConvenientService::Plugins::Service::CanHaveSteps::Concern
|
60
|
-
|
44
|
+
use ConvenientService::Plugins::Service::CanHaveConnectedSteps::Concern
|
61
45
|
|
62
|
-
|
63
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
46
|
+
use ConvenientService::Plugins::Service::CanHaveFallbacks::Concern
|
64
47
|
end
|
65
48
|
|
66
49
|
middlewares :result do
|
67
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
68
50
|
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware
|
69
51
|
|
70
52
|
use ConvenientService::Plugins::Service::RaisesOnNotResultReturnValue::Middleware
|
71
53
|
|
72
|
-
use ConvenientService::Plugins::Service::
|
54
|
+
use ConvenientService::Plugins::Service::CanHaveConnectedSteps::Middleware
|
73
55
|
end
|
74
56
|
|
75
|
-
middlewares :step do
|
76
|
-
use ConvenientService::Plugins::
|
57
|
+
middlewares :step, scope: :class do
|
58
|
+
use ConvenientService::Plugins::Service::CanHaveMethodSteps::Middleware
|
77
59
|
end
|
78
60
|
|
79
|
-
middlewares :
|
80
|
-
use ConvenientService::Plugins::
|
61
|
+
middlewares :not_step, scope: :class do
|
62
|
+
use ConvenientService::Plugins::Service::CanHaveMethodSteps::Middleware
|
81
63
|
end
|
82
64
|
|
83
|
-
middlewares :
|
84
|
-
use ConvenientService::Plugins::
|
65
|
+
middlewares :and_step, scope: :class do
|
66
|
+
use ConvenientService::Plugins::Service::CanHaveMethodSteps::Middleware
|
85
67
|
end
|
86
68
|
|
87
|
-
middlewares :
|
88
|
-
use ConvenientService::Plugins::
|
69
|
+
middlewares :and_not_step, scope: :class do
|
70
|
+
use ConvenientService::Plugins::Service::CanHaveMethodSteps::Middleware
|
89
71
|
end
|
90
72
|
|
91
|
-
middlewares :
|
92
|
-
use ConvenientService::Plugins::
|
73
|
+
middlewares :or_step, scope: :class do
|
74
|
+
use ConvenientService::Plugins::Service::CanHaveMethodSteps::Middleware
|
93
75
|
end
|
94
76
|
|
95
|
-
middlewares :
|
96
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
97
|
-
|
77
|
+
middlewares :or_not_step, scope: :class do
|
98
78
|
use ConvenientService::Plugins::Service::CanHaveMethodSteps::Middleware
|
99
79
|
end
|
100
80
|
|
@@ -118,54 +98,14 @@ module ConvenientService
|
|
118
98
|
use ConvenientService::Plugins::Common::HasConstructorWithoutInitialize::Concern
|
119
99
|
|
120
100
|
use ConvenientService::Plugins::Result::HasJSendStatusAndAttributes::Concern
|
101
|
+
|
102
|
+
use ConvenientService::Plugins::Result::CanHaveStep::Concern
|
121
103
|
end
|
122
104
|
|
123
105
|
middlewares :initialize do
|
124
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
125
|
-
|
126
106
|
use ConvenientService::Plugins::Result::HasJSendStatusAndAttributes::Middleware
|
127
107
|
end
|
128
108
|
|
129
|
-
middlewares :success? do
|
130
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
131
|
-
end
|
132
|
-
|
133
|
-
middlewares :failure? do
|
134
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
135
|
-
end
|
136
|
-
|
137
|
-
middlewares :error? do
|
138
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
139
|
-
end
|
140
|
-
|
141
|
-
middlewares :not_success? do
|
142
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
143
|
-
end
|
144
|
-
|
145
|
-
middlewares :not_failure? do
|
146
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
147
|
-
end
|
148
|
-
|
149
|
-
middlewares :not_error? do
|
150
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
151
|
-
end
|
152
|
-
|
153
|
-
middlewares :data do
|
154
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
155
|
-
end
|
156
|
-
|
157
|
-
middlewares :message do
|
158
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
159
|
-
end
|
160
|
-
|
161
|
-
middlewares :code do
|
162
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
163
|
-
end
|
164
|
-
|
165
|
-
middlewares :to_kwargs do
|
166
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
167
|
-
end
|
168
|
-
|
169
109
|
class self::Data
|
170
110
|
include Core
|
171
111
|
|
@@ -194,8 +134,18 @@ module ConvenientService
|
|
194
134
|
include Core
|
195
135
|
|
196
136
|
concerns do
|
137
|
+
use ConvenientService::Plugins::Common::HasInternals::Concern
|
138
|
+
|
197
139
|
use ConvenientService::Plugins::Status::HasInspect::Concern
|
198
140
|
end
|
141
|
+
|
142
|
+
class self::Internals
|
143
|
+
include Core
|
144
|
+
|
145
|
+
concerns do
|
146
|
+
use ConvenientService::Plugins::Internals::HasCache::Concern
|
147
|
+
end
|
148
|
+
end
|
199
149
|
end
|
200
150
|
|
201
151
|
class self::Internals
|
@@ -213,35 +163,32 @@ module ConvenientService
|
|
213
163
|
concerns do
|
214
164
|
use ConvenientService::Plugins::Common::HasInternals::Concern
|
215
165
|
|
166
|
+
use ConvenientService::Plugins::Step::HasResult::Concern
|
167
|
+
|
216
168
|
use ConvenientService::Plugins::Step::CanBeCompleted::Concern
|
217
169
|
|
218
170
|
use ConvenientService::Plugins::Step::CanBeMethodStep::Concern
|
219
|
-
use ConvenientService::Plugins::Step::CanBeResultStep::Concern
|
220
171
|
|
221
172
|
use ConvenientService::Plugins::Step::HasInspect::Concern
|
222
173
|
end
|
223
174
|
|
224
|
-
|
225
|
-
|
175
|
+
##
|
176
|
+
# TODO: Simple debug for middlewares. For one service only.
|
177
|
+
#
|
178
|
+
middlewares :result do
|
226
179
|
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware
|
227
180
|
|
181
|
+
use ConvenientService::Plugins::Step::HasResult::Middleware
|
182
|
+
|
228
183
|
use ConvenientService::Plugins::Step::RaisesOnNotResultReturnValue::Middleware
|
229
184
|
|
230
|
-
use ConvenientService::Plugins::Step::CanBeResultStep::CanBeExecuted::Middleware
|
231
185
|
use ConvenientService::Plugins::Step::CanBeMethodStep::CanBeExecuted::Middleware
|
232
186
|
end
|
233
187
|
|
234
|
-
middlewares :result do
|
235
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
236
|
-
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware
|
237
|
-
end
|
238
|
-
|
239
188
|
##
|
240
189
|
# TODO: Rename.
|
241
190
|
#
|
242
191
|
middlewares :printable_service do
|
243
|
-
use ConvenientService::Plugins::Common::NormalizesEnv::Middleware
|
244
|
-
|
245
192
|
use ConvenientService::Plugins::Step::CanBeMethodStep::CanBePrinted::Middleware
|
246
193
|
end
|
247
194
|
|