convenient_service 0.19.1 → 0.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +12 -3
- data/lib/convenient_service/aliases.rb +6 -0
- data/lib/convenient_service/commands.rb +8 -0
- data/lib/convenient_service/common/plugins/aliases.rb +5 -0
- data/lib/convenient_service/common/plugins/assigns_attributes_in_constructor/using_active_model_attribute_assignment/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/assigns_attributes_in_constructor/using_active_model_attribute_assignment/middleware.rb +5 -0
- data/lib/convenient_service/common/plugins/assigns_attributes_in_constructor/using_active_model_attribute_assignment.rb +5 -0
- data/lib/convenient_service/common/plugins/assigns_attributes_in_constructor/using_dry_initializer/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/assigns_attributes_in_constructor/using_dry_initializer.rb +5 -0
- data/lib/convenient_service/common/plugins/caches_constructor_arguments/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb +5 -0
- data/lib/convenient_service/common/plugins/caches_constructor_arguments.rb +5 -0
- data/lib/convenient_service/common/plugins/caches_return_value/middleware.rb +5 -0
- data/lib/convenient_service/common/plugins/caches_return_value.rb +5 -0
- data/lib/convenient_service/common/plugins/can_be_copied/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/can_be_copied.rb +5 -0
- data/lib/convenient_service/common/plugins/can_have_callbacks/concern.rb +78 -0
- data/lib/convenient_service/common/plugins/{has_callbacks → can_have_callbacks}/entities/callback.rb +32 -27
- data/lib/convenient_service/common/plugins/{has_callbacks → can_have_callbacks}/entities/callback_collection.rb +13 -8
- data/lib/convenient_service/common/plugins/can_have_callbacks/entities/type/concern.rb +39 -0
- data/lib/convenient_service/common/plugins/can_have_callbacks/entities/type.rb +87 -0
- data/lib/convenient_service/common/plugins/{has_callbacks → can_have_callbacks}/entities/type_collection.rb +22 -1
- data/lib/convenient_service/common/plugins/{has_callbacks → can_have_callbacks}/entities.rb +5 -0
- data/lib/convenient_service/common/plugins/{has_around_callbacks → can_have_callbacks}/exceptions.rb +14 -2
- data/lib/convenient_service/common/plugins/can_have_callbacks/middleware.rb +295 -0
- data/lib/convenient_service/common/plugins/can_have_callbacks.rb +11 -0
- data/lib/convenient_service/common/plugins/can_have_not_passed_arguments/concern.rb +56 -0
- data/lib/convenient_service/common/plugins/can_have_not_passed_arguments.rb +8 -0
- data/lib/convenient_service/common/plugins/can_have_user_provided_entity/commands/find_or_create_entity.rb +11 -0
- data/lib/convenient_service/common/plugins/can_have_user_provided_entity/commands.rb +5 -0
- data/lib/convenient_service/common/plugins/can_have_user_provided_entity/exceptions.rb +5 -0
- data/lib/convenient_service/common/plugins/can_have_user_provided_entity.rb +19 -1
- data/lib/convenient_service/common/plugins/can_utilize_finite_loop/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/can_utilize_finite_loop/constants.rb +5 -0
- data/lib/convenient_service/common/plugins/can_utilize_finite_loop.rb +5 -0
- data/lib/convenient_service/common/plugins/cleans_exception_backtrace/middleware.rb +59 -0
- data/lib/convenient_service/common/plugins/cleans_exception_backtrace.rb +8 -0
- data/lib/convenient_service/common/plugins/ensures_negated_j_send_result/middleware.rb +5 -0
- data/lib/convenient_service/common/plugins/ensures_negated_j_send_result.rb +5 -0
- data/lib/convenient_service/common/plugins/has_attributes/using_active_model_attributes/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/has_attributes/using_active_model_attributes/patches/active_model_attributes.rb +5 -0
- data/lib/convenient_service/common/plugins/has_attributes/using_active_model_attributes/patches.rb +5 -0
- data/lib/convenient_service/common/plugins/has_attributes/using_active_model_attributes.rb +5 -0
- data/lib/convenient_service/common/plugins/has_constructor/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/has_constructor.rb +5 -0
- data/lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/has_constructor_without_initialize.rb +5 -0
- data/lib/convenient_service/common/plugins/has_instance_proxy/commands/create_instance_proxy_class.rb +5 -0
- data/lib/convenient_service/common/plugins/has_instance_proxy/commands.rb +5 -0
- data/lib/convenient_service/common/plugins/has_instance_proxy/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/has_instance_proxy/entities/instance_proxy.rb +18 -4
- data/lib/convenient_service/common/plugins/has_instance_proxy/entities.rb +5 -0
- data/lib/convenient_service/common/plugins/has_instance_proxy/middleware.rb +5 -0
- data/lib/convenient_service/common/plugins/has_instance_proxy.rb +5 -0
- data/lib/convenient_service/common/plugins/has_internals/commands.rb +5 -0
- data/lib/convenient_service/common/plugins/has_internals/concern.rb +6 -1
- data/lib/convenient_service/common/plugins/has_internals/entities/internals/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/aliases.rb +5 -0
- data/lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/has_cache/concern.rb +7 -5
- data/lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/has_cache.rb +5 -0
- data/lib/convenient_service/common/plugins/has_internals/entities/internals/plugins.rb +5 -0
- data/lib/convenient_service/common/plugins/has_internals/entities/internals.rb +5 -0
- data/lib/convenient_service/common/plugins/has_internals/entities.rb +5 -0
- data/lib/convenient_service/common/plugins/has_internals.rb +5 -1
- data/lib/convenient_service/common/plugins/has_j_send_result_duck_short_syntax/concern.rb +5 -0
- data/lib/convenient_service/common/plugins/has_j_send_result_duck_short_syntax.rb +5 -0
- data/lib/convenient_service/common/plugins/has_memoization/using_memo_wise/concern.rb +24 -0
- data/lib/convenient_service/common/plugins/has_memoization/using_memo_wise.rb +8 -0
- data/lib/convenient_service/common/plugins.rb +9 -2
- data/lib/convenient_service/common.rb +5 -0
- data/lib/convenient_service/config/commands/normalize_options.rb +122 -0
- data/lib/convenient_service/config/commands.rb +8 -0
- data/lib/convenient_service/config/entities/option.rb +70 -0
- data/lib/convenient_service/config/entities/option_collection.rb +161 -0
- data/lib/convenient_service/config/entities.rb +9 -0
- data/lib/convenient_service/config/exceptions.rb +28 -0
- data/lib/convenient_service/config.rb +181 -0
- data/lib/convenient_service/core/aliases.rb +5 -0
- data/lib/convenient_service/core/concern/class_methods.rb +40 -15
- data/lib/convenient_service/core/concern/instance_methods.rb +6 -1
- data/lib/convenient_service/core/concern/singleton_class_methods.rb +32 -0
- data/lib/convenient_service/core/concern.rb +8 -7
- data/lib/convenient_service/core/constants.rb +5 -0
- data/lib/convenient_service/core/entities/config/commands/create_entity_class.rb +75 -0
- data/lib/convenient_service/core/entities/config/commands/find_entity_class.rb +54 -0
- data/lib/convenient_service/core/entities/config/commands/find_or_create_entity_class.rb +54 -0
- data/lib/convenient_service/core/entities/config/commands/track_method_missing_commit_trigger.rb +5 -0
- data/lib/convenient_service/core/entities/config/commands.rb +8 -0
- data/lib/convenient_service/core/entities/config/entities/concerns/entities/default_concern.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/concerns/entities/middleware/commands/cast_middleware.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/concerns/entities/middleware/commands.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/concerns/entities/middleware.rb +22 -0
- data/lib/convenient_service/core/entities/config/entities/concerns/entities/stack.rb +55 -32
- data/lib/convenient_service/core/entities/config/entities/concerns/entities.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/concerns.rb +10 -3
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/commands/generate_stack_name.rb +7 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/commands.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/commands/cast_caller.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/commands/{define_method_middlewares_caller.rb → define_method_callers.rb} +48 -9
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/commands/undefine_method_callers.rb +86 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/commands.rb +7 -1
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/concern/class_methods.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/concern/instance_methods.rb +17 -2
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/concern.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/constants.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/container/commands/cast_container.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/container/commands/resolve_methods_middlewares_callers.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/container/commands.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/container/concern/class_methods.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/container/concern/instance_methods.rb +33 -1
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/container/concern.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/container.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/base.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/observable/entities/event.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/observable/entities.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/observable.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/with.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/commands/create_observable_middleware.rb +12 -1
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/commands.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/concern/class_methods.rb +14 -14
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/concern/instance_methods.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/concern.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/constants.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/structs/intended_method.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/structs.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/commands/create_observable_middleware.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/commands/normalize_env.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/commands.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/concern/class_methods.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/concern/instance_methods.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/concern.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/entities/method_chain.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/entities.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/classic.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/stack.rb +61 -43
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities.rb +5 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares.rb +32 -4
- data/lib/convenient_service/core/entities/config/entities.rb +5 -0
- data/lib/convenient_service/core/entities/config/exceptions.rb +5 -0
- data/lib/convenient_service/core/entities/config.rb +65 -8
- data/lib/convenient_service/core/entities.rb +5 -0
- data/lib/convenient_service/core.rb +80 -2
- data/lib/convenient_service/dependencies/built_in.rb +23 -6
- data/lib/convenient_service/dependencies/extractions/active_support_backtrace_cleaner/backtrace_cleaner.rb +30 -6
- data/lib/convenient_service/dependencies/extractions/active_support_backtrace_cleaner.rb +5 -0
- data/lib/convenient_service/dependencies/extractions/active_support_concern/concern.rb +60 -2
- data/lib/convenient_service/dependencies/extractions/active_support_concern.rb +7 -1
- data/lib/convenient_service/dependencies/extractions/ruby_middleware/middleware/builder.rb +10 -0
- data/lib/convenient_service/dependencies/extractions/ruby_middleware/middleware/logger.rb +7 -2
- data/lib/convenient_service/dependencies/extractions/ruby_middleware/middleware/runner.rb +8 -1
- data/lib/convenient_service/dependencies/extractions/ruby_middleware/middleware.rb +7 -0
- data/lib/convenient_service/dependencies/extractions/ruby_middleware.rb +5 -0
- data/lib/convenient_service/dependencies/extractions.rb +5 -0
- data/lib/convenient_service/dependencies/only_development_tools.rb +13 -0
- data/lib/convenient_service/dependencies/only_queries.rb +9 -0
- data/lib/convenient_service/dependencies/queries/gems/active_model.rb +5 -0
- data/lib/convenient_service/dependencies/queries/gems/logger.rb +5 -0
- data/lib/convenient_service/dependencies/queries/gems/paint.rb +5 -0
- data/lib/convenient_service/dependencies/queries/gems/rspec.rb +6 -0
- data/lib/convenient_service/dependencies/queries/gems.rb +5 -0
- data/lib/convenient_service/dependencies/queries/ruby.rb +30 -14
- data/lib/convenient_service/dependencies/queries/version/null_version.rb +5 -0
- data/lib/convenient_service/dependencies/queries/version.rb +5 -0
- data/lib/convenient_service/dependencies/queries.rb +193 -69
- data/lib/convenient_service/dependencies.rb +5 -0
- data/lib/convenient_service/exception.rb +5 -0
- data/lib/convenient_service/extras/alias.rb +27 -0
- data/lib/convenient_service/extras/plugins/assigns_attributes_in_constructor/using_active_model_attribute_assignment.rb +16 -0
- data/lib/convenient_service/extras/plugins/assigns_attributes_in_constructor/using_dry_initializer.rb +16 -0
- data/lib/convenient_service/extras/plugins/has_attributes/using_active_model_attributes.rb +16 -0
- data/lib/convenient_service/extras/plugins/has_j_send_result_params_validations/using_active_model_validations.rb +16 -0
- data/lib/convenient_service/extras/plugins/has_j_send_result_params_validations/using_dry_validation.rb +16 -0
- data/lib/convenient_service/extras/plugins/has_memoization/using_memo_wise.rb +16 -0
- data/lib/convenient_service/extras/plugins/wraps_result_in_db_transaction/using_active_record_base_transaction.rb +16 -0
- data/lib/convenient_service/extras/rspec.rb +15 -0
- data/lib/convenient_service/extras/standard/config/options/active_model_validations.rb +15 -0
- data/lib/convenient_service/extras/standard/config/options/amazing_print_inspect.rb +15 -0
- data/lib/convenient_service/extras/standard/config/options/awesome_print_inspect.rb +15 -0
- data/lib/convenient_service/extras/standard/config/options/dry_initializer.rb +15 -0
- data/lib/convenient_service/extras/standard/config/options/memo_wise.rb +15 -0
- data/lib/convenient_service/feature/configs/aliases.rb +5 -0
- data/lib/convenient_service/feature/configs/standard/commands/is_feature.rb +39 -0
- data/lib/convenient_service/feature/configs/standard/commands/is_feature_class.rb +41 -0
- data/lib/convenient_service/feature/configs/standard/commands.rb +9 -0
- data/lib/convenient_service/feature/configs/standard.rb +90 -6
- data/lib/convenient_service/feature/configs.rb +5 -0
- data/lib/convenient_service/feature/core.rb +18 -0
- data/lib/convenient_service/feature/plugins/aliases.rb +5 -0
- data/lib/convenient_service/feature/plugins/can_have_entries/commands/define_entries.rb +5 -0
- data/lib/convenient_service/feature/plugins/can_have_entries/commands/define_entry.rb +9 -4
- data/lib/convenient_service/feature/plugins/can_have_entries/commands.rb +5 -0
- data/lib/convenient_service/feature/plugins/can_have_entries/concern.rb +13 -1
- data/lib/convenient_service/feature/plugins/can_have_entries/exceptions.rb +5 -0
- data/lib/convenient_service/feature/plugins/can_have_entries.rb +5 -0
- data/lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands/fetch_all_features_stubbed_entries_cache.rb +35 -0
- data/lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands/fetch_feature_stubbed_entries_cache.rb +48 -0
- data/lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands/set_feature_stubbed_entry.rb +79 -0
- data/lib/convenient_service/feature/plugins/can_have_stubbed_entries/commands.rb +10 -0
- data/lib/convenient_service/feature/plugins/can_have_stubbed_entries/concern.rb +51 -0
- data/lib/convenient_service/feature/plugins/can_have_stubbed_entries/middleware.rb +48 -0
- data/lib/convenient_service/feature/plugins/can_have_stubbed_entries.rb +24 -0
- data/lib/convenient_service/feature/plugins.rb +6 -0
- data/lib/convenient_service/feature.rb +6 -0
- data/lib/convenient_service/jruby.rb +45 -0
- data/lib/convenient_service/logger.rb +5 -0
- data/lib/convenient_service/rspec/{primitive_helpers → helpers}/classes/ignoring_exception/exceptions.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_helpers → helpers}/classes/ignoring_exception.rb +7 -2
- data/lib/convenient_service/rspec/{primitive_helpers → helpers}/classes/in_threads.rb +6 -4
- data/lib/convenient_service/rspec/helpers/classes/stub_entry/constants.rb +25 -0
- data/lib/convenient_service/rspec/helpers/classes/stub_entry/entities/stubbed_feature.rb +128 -0
- data/lib/convenient_service/rspec/helpers/classes/stub_entry/entities/value_spec.rb +79 -0
- data/lib/convenient_service/rspec/helpers/classes/stub_entry/entities.rb +9 -0
- data/lib/convenient_service/rspec/helpers/classes/stub_entry.rb +48 -0
- data/lib/convenient_service/rspec/helpers/classes/stub_service/constants.rb +5 -0
- data/lib/convenient_service/rspec/helpers/classes/stub_service/entities/result_spec.rb +14 -19
- data/lib/convenient_service/rspec/helpers/classes/stub_service/entities/stubbed_service.rb +41 -19
- data/lib/convenient_service/rspec/helpers/classes/stub_service/entities.rb +5 -0
- data/lib/convenient_service/rspec/helpers/classes/stub_service.rb +18 -2
- data/lib/convenient_service/rspec/helpers/classes/wrap_method/entities/wrapped_method.rb +30 -18
- data/lib/convenient_service/rspec/helpers/classes/wrap_method/entities.rb +5 -0
- data/lib/convenient_service/rspec/helpers/classes/wrap_method/exceptions.rb +5 -0
- data/lib/convenient_service/rspec/helpers/classes/wrap_method.rb +5 -0
- data/lib/convenient_service/rspec/helpers/classes.rb +9 -0
- data/lib/convenient_service/rspec/helpers/ignoring_exception.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_helpers → helpers}/in_threads.rb +6 -1
- data/lib/convenient_service/rspec/helpers/stub_entry.rb +29 -0
- data/lib/convenient_service/rspec/helpers/stub_service.rb +21 -0
- data/lib/convenient_service/rspec/helpers/wrap_method.rb +5 -0
- data/lib/convenient_service/rspec/helpers.rb +11 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/be_descendant_of.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/be_direct_descendant_of.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/cache_its_value.rb +6 -1
- data/lib/convenient_service/rspec/matchers/call_chain_next.rb +5 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/be_descendant_of.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/be_direct_descendant_of.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/cache_its_value.rb +6 -1
- data/lib/convenient_service/rspec/matchers/classes/call_chain_next.rb +5 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/commands/generate_printable_method.rb +10 -2
- data/lib/convenient_service/rspec/matchers/classes/delegate_to/commands.rb +8 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/delegation.rb +7 -2
- data/lib/convenient_service/rspec/matchers/classes/delegate_to/entities/inputs/jruby.rb +102 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/inputs.rb +10 -9
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/outputs.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matcher_collection.rb +12 -7
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/arguments/commands/apply_stub_to_track_delegations.rb +8 -3
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/arguments/commands/generate_printable_arguments.rb +9 -4
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/arguments/commands.rb +5 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/arguments.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/base.rb +11 -6
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/return_custom_value.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/return_delegation_value.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/with_any_arguments.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/with_concrete_arguments.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers/without_arguments.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities/sub_matchers.rb +5 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/entities.rb +5 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to/exceptions.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/delegate_to.rb +21 -16
- data/lib/convenient_service/rspec/matchers/classes/export.rb +8 -10
- data/lib/convenient_service/rspec/matchers/classes/extend_module.rb +74 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/have_abstract_method.rb +6 -1
- data/lib/convenient_service/rspec/matchers/classes/have_alias_method/jruby.rb +81 -0
- data/lib/convenient_service/rspec/matchers/classes/have_alias_method.rb +102 -0
- data/lib/convenient_service/rspec/matchers/classes/have_attr_accessor.rb +89 -0
- data/lib/convenient_service/rspec/matchers/classes/have_attr_reader.rb +85 -0
- data/lib/convenient_service/rspec/matchers/classes/have_attr_writer.rb +93 -0
- data/lib/convenient_service/rspec/matchers/classes/include_config.rb +71 -0
- data/lib/convenient_service/rspec/matchers/classes/include_in_order.rb +88 -0
- data/lib/convenient_service/rspec/matchers/classes/include_module.rb +74 -0
- data/lib/convenient_service/rspec/matchers/classes/prepend_module.rb +74 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/constants.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/chain.rb +88 -27
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_code_part.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_data_part.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_message_part.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_parts.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_service_part.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_status_part.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_expected_step_part.rb +10 -1
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_parts.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_service_part.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands/generate_got_step_part.rb +8 -1
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base/commands.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/base.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb +6 -9
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/error/commands.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/error.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/failure/commands/generate_got_jsend_attributes_part.rb +6 -9
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/failure/commands.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/failure.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/null.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/success/commands/generate_got_jsend_attributes_part.rb +6 -9
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/success/commands.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers/success.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/printers.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result.rb +13 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_code.rb +6 -1
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_data.rb +6 -1
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_message.rb +6 -1
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_original_service.rb +86 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_service.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_status.rb +6 -1
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_step.rb +39 -6
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands/validate_result_type.rb +7 -11
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator/commands.rb +6 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities/validator.rb +15 -1
- data/lib/convenient_service/rspec/matchers/classes/results/base/entities.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/base/exceptions.rb +29 -2
- data/lib/convenient_service/rspec/matchers/classes/results/base.rb +20 -1
- data/lib/convenient_service/rspec/matchers/classes/results/be_error.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/be_failure.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/be_not_error.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/be_not_failure.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/be_not_success.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results/be_success.rb +5 -0
- data/lib/convenient_service/rspec/matchers/classes/results.rb +5 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/classes/singleton_prepend_module.rb +10 -2
- data/lib/convenient_service/rspec/matchers/classes.rb +21 -0
- data/lib/convenient_service/rspec/matchers/delegate_to.rb +6 -1
- data/lib/convenient_service/rspec/matchers/export.rb +5 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/extend_module.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/have_abstract_method.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/have_alias_method.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/have_attr_accessor.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/have_attr_reader.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/have_attr_writer.rb +6 -1
- data/lib/convenient_service/rspec/matchers/include_config.rb +18 -0
- data/lib/convenient_service/rspec/matchers/include_in_order.rb +18 -0
- data/lib/convenient_service/rspec/matchers/include_module.rb +6 -1
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/prepend_module.rb +6 -1
- data/lib/convenient_service/rspec/matchers/results/be_error.rb +5 -0
- data/lib/convenient_service/rspec/matchers/results/be_failure.rb +5 -0
- data/lib/convenient_service/rspec/matchers/results/be_not_error.rb +5 -0
- data/lib/convenient_service/rspec/matchers/results/be_not_failure.rb +5 -0
- data/lib/convenient_service/rspec/matchers/results/be_not_success.rb +5 -0
- data/lib/convenient_service/rspec/matchers/results/be_result/exceptions.rb +36 -0
- data/lib/convenient_service/rspec/matchers/results/be_result.rb +12 -0
- data/lib/convenient_service/rspec/matchers/results/be_success.rb +5 -0
- data/lib/convenient_service/rspec/matchers/results.rb +5 -0
- data/lib/convenient_service/rspec/{primitive_matchers → matchers}/singleton_prepend_module.rb +6 -1
- data/lib/convenient_service/rspec/matchers.rb +43 -2
- data/lib/convenient_service/rspec.rb +5 -3
- data/lib/convenient_service/service/configs/aliases.rb +5 -0
- data/lib/convenient_service/service/configs/standard/aliases.rb +5 -0
- data/lib/convenient_service/service/configs/standard/commands/is_service.rb +39 -0
- data/lib/convenient_service/service/configs/standard/commands/is_service_class.rb +41 -0
- data/lib/convenient_service/service/configs/standard/commands.rb +9 -0
- data/lib/convenient_service/service/configs/standard/v1.rb +40 -162
- data/lib/convenient_service/service/configs/standard.rb +312 -123
- data/lib/convenient_service/service/configs.rb +5 -1
- data/lib/convenient_service/service/core.rb +18 -0
- data/lib/convenient_service/service/plugins/aliases.rb +5 -0
- data/lib/convenient_service/service/plugins/can_be_called/concern.rb +56 -0
- data/lib/convenient_service/service/plugins/can_be_called.rb +8 -0
- data/lib/convenient_service/service/plugins/can_have_after_step_callbacks/middleware.rb +85 -0
- data/lib/convenient_service/service/plugins/can_have_after_step_callbacks.rb +8 -0
- data/lib/convenient_service/service/plugins/can_have_around_step_callbacks/middleware.rb +89 -0
- data/lib/convenient_service/service/plugins/can_have_around_step_callbacks.rb +8 -0
- data/lib/convenient_service/service/plugins/can_have_before_step_callbacks/middleware.rb +84 -0
- data/lib/convenient_service/service/plugins/can_have_before_step_callbacks.rb +8 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/concern.rb +254 -9
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/and.rb +14 -2
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/base.rb +31 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/complex_if.rb +220 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/else.rb +130 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/empty.rb +13 -1
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/group.rb +14 -2
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/if.rb +149 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/not.rb +13 -1
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/or.rb +14 -2
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions/scalar.rb +13 -1
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/expressions.rb +9 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities/step_collection.rb +11 -2
- data/lib/convenient_service/service/plugins/can_have_connected_steps/entities.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_connected_steps/exceptions.rb +120 -10
- data/lib/convenient_service/service/plugins/can_have_connected_steps/middleware.rb +11 -11
- data/lib/convenient_service/service/plugins/can_have_connected_steps.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_fallbacks/exceptions.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_fallbacks/middleware.rb +6 -2
- data/lib/convenient_service/service/plugins/can_have_fallbacks.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_recalculations/concern.rb +27 -0
- data/lib/convenient_service/service/plugins/can_have_recalculations.rb +8 -0
- data/lib/convenient_service/service/plugins/can_have_rollbacks/middleware.rb +6 -4
- data/lib/convenient_service/service/plugins/can_have_rollbacks.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_sequential_steps/concern.rb +5 -16
- data/lib/convenient_service/service/plugins/can_have_sequential_steps/entities/step_collection.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_sequential_steps/entities.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_sequential_steps/middleware.rb +7 -5
- data/lib/convenient_service/service/plugins/can_have_sequential_steps.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_collections.rb +12 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/commands/cast_step_aware_enumerable.rb +94 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/commands/cast_step_aware_enumerator.rb +90 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/commands.rb +9 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/concern.rb +42 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/arithmetic_sequence_enumerator.rb +55 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/array.rb +45 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/base.rb +469 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/boolean.rb +66 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/chain_enumerator.rb +137 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/enumerable.rb +1113 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/enumerator.rb +193 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/hash.rb +45 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/lazy_enumerator/jruby.rb +237 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/lazy_enumerator.rb +675 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/object.rb +52 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/object_or_nil.rb +38 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables/set.rb +45 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities/step_aware_enumerables.rb +21 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/entities.rb +8 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables/exceptions.rb +99 -0
- data/lib/convenient_service/service/plugins/can_have_step_aware_enumerables.rb +12 -0
- data/lib/convenient_service/service/plugins/can_have_steps/commands.rb +5 -1
- data/lib/convenient_service/service/plugins/can_have_steps/concern.rb +6 -11
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb +12 -4
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_factory.rb +8 -10
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/define_method_in_container.rb +66 -18
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/commands.rb +5 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/concern/class_methods.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/concern/instance_methods.rb +29 -35
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/alias.rb +12 -12
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb +24 -11
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/proc.rb +12 -11
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/raw.rb +12 -11
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/usual.rb +12 -12
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers.rb +5 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb +5 -12
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/input.rb +5 -8
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/output.rb +6 -9
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions.rb +38 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/base.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/proc_value.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/raw_value.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/string_value.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/symbol_value.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash.rb +5 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/method.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/string.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/symbol.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories.rb +5 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/name.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities.rb +5 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/exceptions.rb +5 -144
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/class_methods.rb +7 -20
- data/lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb +12 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/service/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/service.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb +64 -11
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/extract_params.rb +27 -3
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/commands.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/concern/instance_methods.rb +40 -99
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/exceptions.rb +8 -3
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/aliases.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_completed/concern.rb +11 -6
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_completed.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/{can_be_executed/middleware.rb → commands/calculate_method_result.rb} +27 -11
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/commands.rb +8 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb +15 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/exceptions.rb +54 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/middleware.rb +39 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step.rb +8 -3
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step/commands/calculate_service_result.rb +69 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step/commands.rb +8 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step/concern.rb +53 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step/exceptions.rb +38 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step/middleware.rb +39 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_service_step.rb +11 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_alternative_steps.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/exceptions.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/middleware.rb +17 -43
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_parent_result/middleware.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_parent_result.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_amazing_print_inspect/concern.rb +8 -4
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_amazing_print_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_awesome_print_inspect/concern.rb +8 -4
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_awesome_print_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_inspect/concern.rb +8 -5
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_result/concern.rb +7 -6
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_result/exceptions.rb +40 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_result/middleware.rb +34 -3
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_result.rb +6 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value/exceptions.rb +6 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value/middleware.rb +6 -5
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins.rb +6 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/structs/params.rb +10 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/structs.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/middleware.rb +33 -0
- data/lib/convenient_service/service/plugins/can_have_steps.rb +46 -2
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands/fetch_all_services_stubbed_results_cache.rb +10 -2
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands/fetch_service_stubbed_results_cache.rb +6 -1
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands/set_service_stubbed_result.rb +13 -8
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands.rb +5 -1
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/middleware.rb +8 -13
- data/lib/convenient_service/service/plugins/can_have_stubbed_results.rb +19 -1
- data/lib/convenient_service/service/plugins/can_not_be_inherited/concern.rb +29 -0
- data/lib/convenient_service/service/plugins/can_not_be_inherited/exceptions.rb +30 -0
- data/lib/convenient_service/service/plugins/can_not_be_inherited.rb +9 -0
- data/lib/convenient_service/service/plugins/collects_services_in_exception/commands/extract_service_details.rb +10 -5
- data/lib/convenient_service/service/plugins/collects_services_in_exception/commands.rb +5 -0
- data/lib/convenient_service/service/plugins/collects_services_in_exception/constants.rb +5 -0
- data/lib/convenient_service/service/plugins/collects_services_in_exception/middleware.rb +8 -0
- data/lib/convenient_service/service/plugins/collects_services_in_exception.rb +5 -0
- data/lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments/exceptions.rb +5 -0
- data/lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments/middleware.rb +6 -1
- data/lib/convenient_service/service/plugins/forbids_convenient_service_entities_as_constructor_arguments.rb +5 -0
- data/lib/convenient_service/service/plugins/has_amazing_print_inspect/concern.rb +6 -11
- data/lib/convenient_service/service/plugins/has_amazing_print_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_awesome_print_inspect/concern.rb +6 -11
- data/lib/convenient_service/service/plugins/has_awesome_print_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_inspect/concern.rb +6 -8
- data/lib/convenient_service/service/plugins/has_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/concern/class_methods.rb +6 -2
- data/lib/convenient_service/service/plugins/has_j_send_result/concern/instance_methods.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/constants.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/aliases.rb +22 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/aliases.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_called/concern.rb +51 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_called/exceptions.rb +48 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_called.rb +9 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_exception/concern.rb +16 -2
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_exception.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_fallback/concern.rb +56 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_from_fallback.rb +8 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_own_result/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_own_result.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_strict/concern.rb +59 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_strict.rb +8 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_stubbed_result/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_stubbed_result.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_checked_status/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_checked_status.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_fallbacks/concern.rb +69 -9
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_fallbacks/exceptions.rb +39 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_fallbacks.rb +6 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_parent_result/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_parent_result/constants.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_parent_result.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_step/concern.rb +12 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_step.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect/commands/generate_inspect_output.rb +149 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect/commands.rb +8 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect/concern.rb +6 -12
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_amazing_print_inspect.rb +6 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_awesome_print_inspect/commands/generate_inspect_output.rb +149 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_awesome_print_inspect/commands.rb +8 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_awesome_print_inspect/concern.rb +6 -12
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_awesome_print_inspect.rb +6 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_inspect/concern.rb +7 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/commands/cast_j_send_attributes.rb +9 -4
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/commands.rb +5 -4
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/concern/class_methods.rb +9 -76
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/concern/instance_methods.rb +57 -8
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/concern/class_methods.rb +80 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/concern/instance_methods.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/aliases.rb +5 -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/concern.rb +6 -1
- 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 +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/has_awesome_print_inspect/concern.rb +6 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/has_awesome_print_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/has_inspect/concern.rb +6 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/has_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code.rb +5 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/concern/class_methods.rb +81 -2
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/concern/instance_methods.rb +84 -15
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/aliases.rb +5 -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 +6 -1
- 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 +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_awesome_print_inspect/concern.rb +6 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_awesome_print_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_inspect/concern.rb +10 -4
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_inspect.rb +5 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_method_readers/middleware.rb +52 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_method_readers.rb +8 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins.rb +6 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data.rb +5 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/concern/class_methods.rb +80 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/concern/instance_methods.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/aliases.rb +5 -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 +6 -1
- 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 +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/has_awesome_print_inspect/concern.rb +6 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/has_awesome_print_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/has_inspect/concern.rb +6 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/has_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message.rb +5 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/concern/class_methods.rb +80 -1
- 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 +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/aliases.rb +5 -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/concern.rb +5 -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 +5 -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 +5 -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 +6 -1
- 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 +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/has_awesome_print_inspect/concern.rb +6 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/has_awesome_print_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/has_inspect/concern.rb +6 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/has_inspect.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status.rb +5 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/exceptions.rb +5 -15
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/middleware.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/structs/j_send_attributes.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/structs.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_negated_result/concern.rb +7 -4
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_negated_result.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_pattern_matching_support/concern.rb +82 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_pattern_matching_support.rb +8 -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 +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/helps_to_learn_similarities_with_common_objects/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/helps_to_learn_similarities_with_common_objects/exceptions.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/helps_to_learn_similarities_with_common_objects.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/raises_on_not_checked_result_status/exceptions.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/raises_on_not_checked_result_status/middleware.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/raises_on_not_checked_result_status.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins.rb +10 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result.rb +7 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result.rb +43 -3
- data/lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/middleware.rb +20 -3
- data/lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/middleware.rb +28 -11
- data/lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/exceptions.rb +96 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/middleware.rb +56 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax.rb +7 -3
- data/lib/convenient_service/service/plugins/has_j_send_result_status_check_short_syntax/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_status_check_short_syntax.rb +5 -0
- data/lib/convenient_service/service/plugins/has_negated_j_send_result/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_negated_j_send_result.rb +5 -0
- data/lib/convenient_service/service/plugins/has_negated_result/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_negated_result/exceptions.rb +5 -0
- data/lib/convenient_service/service/plugins/has_negated_result.rb +5 -0
- data/lib/convenient_service/service/plugins/has_result/concern.rb +5 -0
- data/lib/convenient_service/service/plugins/has_result/exceptions.rb +6 -1
- data/lib/convenient_service/service/plugins/has_result.rb +5 -0
- data/lib/convenient_service/service/plugins/raises_on_double_result/exceptions.rb +5 -0
- data/lib/convenient_service/service/plugins/raises_on_double_result/middleware.rb +6 -1
- data/lib/convenient_service/service/plugins/raises_on_double_result.rb +5 -0
- data/lib/convenient_service/service/plugins/raises_on_not_result_return_value/exceptions.rb +5 -0
- data/lib/convenient_service/service/plugins/raises_on_not_result_return_value/middleware.rb +6 -5
- data/lib/convenient_service/service/plugins/raises_on_not_result_return_value.rb +5 -0
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_backtrace.rb +9 -4
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_cause.rb +7 -12
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_class.rb +5 -0
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_exception.rb +13 -8
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_line.rb +5 -0
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands/format_message.rb +5 -0
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/commands.rb +5 -0
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/constants.rb +5 -0
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/middleware.rb +13 -6
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions.rb +5 -0
- data/lib/convenient_service/service/plugins/sets_parent_to_foreign_result/middleware.rb +5 -0
- data/lib/convenient_service/service/plugins/sets_parent_to_foreign_result.rb +5 -0
- data/lib/convenient_service/service/plugins/wraps_result_in_db_transaction/using_active_record_base_transaction/middleware.rb +24 -0
- data/lib/convenient_service/service/plugins/wraps_result_in_db_transaction/using_active_record_base_transaction.rb +8 -0
- data/lib/convenient_service/service/plugins/wraps_result_in_db_transaction.rb +6 -1
- data/lib/convenient_service/service/plugins.rb +15 -5
- data/lib/convenient_service/service.rb +6 -0
- data/lib/convenient_service/specification.rb +6 -1
- data/lib/convenient_service/support/abstract_method/exceptions.rb +10 -0
- data/lib/convenient_service/support/abstract_method.rb +5 -0
- data/lib/convenient_service/support/arguments/exceptions.rb +30 -0
- data/lib/convenient_service/support/arguments/null_arguments.rb +5 -0
- data/lib/convenient_service/support/arguments.rb +55 -0
- data/lib/convenient_service/support/backtrace_cleaner.rb +5 -0
- data/lib/convenient_service/support/cache/constants.rb +12 -2
- data/lib/convenient_service/support/cache/entities/caches/array/entities/pair.rb +6 -1
- data/lib/convenient_service/support/cache/entities/caches/array/entities.rb +5 -0
- data/lib/convenient_service/support/cache/entities/caches/array.rb +93 -30
- data/lib/convenient_service/support/cache/entities/caches/base.rb +87 -6
- data/lib/convenient_service/support/cache/entities/caches/hash.rb +65 -17
- data/lib/convenient_service/support/cache/entities/caches/thread_safe_array.rb +29 -7
- data/lib/convenient_service/support/cache/entities/caches/thread_safe_hash.rb +111 -0
- data/lib/convenient_service/support/cache/entities/caches.rb +6 -0
- data/lib/convenient_service/support/cache/entities/key.rb +49 -29
- data/lib/convenient_service/support/cache/entities.rb +5 -0
- data/lib/convenient_service/support/cache/exceptions.rb +7 -2
- data/lib/convenient_service/support/cache.rb +19 -5
- data/lib/convenient_service/support/castable/exceptions.rb +5 -10
- data/lib/convenient_service/support/castable.rb +5 -0
- data/lib/convenient_service/support/command.rb +5 -0
- data/lib/convenient_service/support/concern.rb +5 -0
- data/lib/convenient_service/support/copyable.rb +17 -12
- data/lib/convenient_service/support/counter.rb +5 -0
- data/lib/convenient_service/support/delegate.rb +5 -0
- data/lib/convenient_service/support/dependency_container/commands/assert_valid_container.rb +5 -0
- data/lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb +5 -0
- data/lib/convenient_service/support/dependency_container/commands/assert_valid_scope.rb +5 -0
- data/lib/convenient_service/support/dependency_container/commands/create_methods_module.rb +5 -0
- data/lib/convenient_service/support/dependency_container/commands/import_method.rb +8 -4
- data/lib/convenient_service/support/dependency_container/commands.rb +5 -0
- data/lib/convenient_service/support/dependency_container/constants.rb +5 -0
- data/lib/convenient_service/support/dependency_container/entities/method.rb +6 -1
- data/lib/convenient_service/support/dependency_container/entities/method_collection.rb +9 -4
- data/lib/convenient_service/support/dependency_container/entities/namespace.rb +6 -1
- data/lib/convenient_service/support/dependency_container/entities/namespace_collection.rb +7 -2
- data/lib/convenient_service/support/dependency_container/entities.rb +5 -0
- data/lib/convenient_service/support/dependency_container/exceptions.rb +5 -0
- data/lib/convenient_service/support/dependency_container/export.rb +5 -0
- data/lib/convenient_service/support/dependency_container/import.rb +6 -1
- data/lib/convenient_service/support/dependency_container.rb +5 -2
- data/lib/convenient_service/support/finite_loop.rb +5 -0
- data/lib/convenient_service/support/method_parameters.rb +5 -0
- data/lib/convenient_service/support/middleware/stack_builder/constants.rb +48 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders/custom/constants.rb +27 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders/custom/entities/proc_with_new.rb +49 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders/custom/entities.rb +8 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders/custom/exceptions.rb +36 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders/custom.rb +240 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders/naive.rb +55 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders/rack.rb +57 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders/ruby_middleware.rb +170 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders/stateful.rb +71 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities/builders.rb +13 -0
- data/lib/convenient_service/support/middleware/stack_builder/entities.rb +8 -0
- data/lib/convenient_service/support/middleware/stack_builder/exceptions.rb +41 -0
- data/lib/convenient_service/support/middleware/stack_builder.rb +34 -102
- data/lib/convenient_service/support/middleware.rb +5 -0
- data/lib/convenient_service/support/never_reach_here.rb +5 -0
- data/lib/convenient_service/support/not_passed.rb +16 -1
- data/lib/convenient_service/support/raw_value.rb +5 -0
- data/lib/convenient_service/support/safe_method.rb +5 -0
- data/lib/convenient_service/support/thread_safe_counter.rb +5 -0
- data/lib/convenient_service/support/undefined.rb +16 -1
- data/lib/convenient_service/support/unique_value.rb +29 -7
- data/lib/convenient_service/support/value.rb +18 -6
- data/lib/convenient_service/support.rb +5 -0
- data/lib/convenient_service/utils/array/contain_exactly.rb +5 -0
- data/lib/convenient_service/utils/array/drop_while.rb +5 -0
- data/lib/convenient_service/utils/array/exceptions.rb +5 -0
- data/lib/convenient_service/utils/array/find_last.rb +5 -0
- data/lib/convenient_service/utils/array/find_yield.rb +5 -0
- data/lib/convenient_service/utils/array/keep_after.rb +5 -0
- data/lib/convenient_service/utils/array/limited_push.rb +5 -0
- data/lib/convenient_service/utils/array/merge.rb +5 -0
- data/lib/convenient_service/utils/array/rjust.rb +5 -0
- data/lib/convenient_service/utils/array/wrap.rb +5 -0
- data/lib/convenient_service/utils/array.rb +5 -0
- data/lib/convenient_service/utils/bool/to_bool.rb +5 -0
- data/lib/convenient_service/utils/bool.rb +5 -0
- data/lib/convenient_service/utils/class/display_name.rb +5 -0
- data/lib/convenient_service/utils/class/get_attached_object.rb +79 -0
- data/lib/convenient_service/utils/class.rb +15 -0
- data/lib/convenient_service/utils/hash/assert_valid_keys.rb +5 -0
- data/lib/convenient_service/utils/hash/except.rb +5 -0
- data/lib/convenient_service/utils/hash/triple_equality_compare.rb +6 -3
- data/lib/convenient_service/utils/hash.rb +5 -5
- data/lib/convenient_service/utils/kernel/silence_warnings.rb +51 -0
- data/lib/convenient_service/utils/kernel.rb +20 -0
- data/lib/convenient_service/utils/method/defined.rb +7 -2
- data/lib/convenient_service/utils/method/name/append.rb +53 -0
- data/lib/convenient_service/utils/method/name.rb +22 -0
- data/lib/convenient_service/utils/method/remove.rb +77 -0
- data/lib/convenient_service/utils/method.rb +11 -0
- data/lib/convenient_service/utils/module/class_method_defined.rb +5 -0
- data/lib/convenient_service/utils/module/exceptions.rb +28 -0
- data/lib/convenient_service/utils/module/fetch_own_const.rb +5 -0
- data/lib/convenient_service/utils/module/get_namespace.rb +66 -0
- data/lib/convenient_service/utils/module/get_own_const.rb +5 -0
- data/lib/convenient_service/utils/module/get_own_instance_method.rb +5 -0
- data/lib/convenient_service/utils/module/has_own_instance_method.rb +5 -0
- data/lib/convenient_service/utils/module/include_module.rb +6 -1
- data/lib/convenient_service/utils/module/instance_method_defined.rb +5 -0
- data/lib/convenient_service/utils/module.rb +12 -0
- data/lib/convenient_service/utils/object/clamp_class.rb +5 -0
- data/lib/convenient_service/utils/object/duck_class.rb +5 -0
- data/lib/convenient_service/utils/object/get_own_method.rb +5 -0
- data/lib/convenient_service/utils/object/instance_variable_delete.rb +5 -0
- data/lib/convenient_service/utils/object/instance_variable_fetch.rb +5 -0
- data/lib/convenient_service/utils/object/memoize_including_falsy_values.rb +5 -0
- data/lib/convenient_service/utils/object/resolve_type.rb +5 -0
- data/lib/convenient_service/utils/object/safe_send.rb +5 -0
- data/lib/convenient_service/utils/object/with_one_time_object.rb +35 -0
- data/lib/convenient_service/utils/object.rb +14 -0
- data/lib/convenient_service/utils/proc/conjunct.rb +5 -0
- data/lib/convenient_service/utils/proc/display.rb +6 -1
- data/lib/convenient_service/utils/proc/exec_config.rb +25 -8
- data/lib/convenient_service/utils/proc.rb +5 -0
- data/lib/convenient_service/utils/string/camelize.rb +5 -0
- data/lib/convenient_service/utils/string/demodulize.rb +5 -0
- data/lib/convenient_service/utils/string/enclose.rb +5 -0
- data/lib/convenient_service/utils/string/split.rb +5 -0
- data/lib/convenient_service/utils/string/truncate.rb +5 -0
- data/lib/convenient_service/utils/string.rb +5 -0
- data/lib/convenient_service/utils.rb +20 -0
- data/lib/convenient_service/version.rb +6 -1
- data/lib/convenient_service.rb +37 -105
- metadata +332 -175
- data/lib/convenient_service/alias.rb +0 -3
- data/lib/convenient_service/commands/is_service.rb +0 -28
- data/lib/convenient_service/commands/is_service_class.rb +0 -30
- data/lib/convenient_service/common/plugins/can_have_user_provided_entity/container.rb +0 -17
- data/lib/convenient_service/common/plugins/has_around_callbacks/concern.rb +0 -26
- data/lib/convenient_service/common/plugins/has_around_callbacks/middleware.rb +0 -160
- data/lib/convenient_service/common/plugins/has_around_callbacks.rb +0 -5
- data/lib/convenient_service/common/plugins/has_callbacks/concern.rb +0 -46
- data/lib/convenient_service/common/plugins/has_callbacks/entities/type/class_methods.rb +0 -26
- data/lib/convenient_service/common/plugins/has_callbacks/entities/type.rb +0 -50
- data/lib/convenient_service/common/plugins/has_callbacks/middleware.rb +0 -66
- data/lib/convenient_service/common/plugins/has_callbacks.rb +0 -5
- data/lib/convenient_service/common/plugins/has_internals/commands/create_internals_class.rb +0 -41
- data/lib/convenient_service/dependencies/extractions/b.rb +0 -14
- data/lib/convenient_service/dependencies/extractions/byebug_syntax_highlighting.rb +0 -58
- data/lib/convenient_service/dependencies/extractions/ce.rb +0 -16
- data/lib/convenient_service/dependencies/extractions/ds.rb +0 -45
- data/lib/convenient_service/rspec/primitive_helpers/classes.rb +0 -4
- data/lib/convenient_service/rspec/primitive_helpers/ignoring_exception.rb +0 -13
- data/lib/convenient_service/rspec/primitive_helpers.rb +0 -19
- data/lib/convenient_service/rspec/primitive_matchers/classes/delegate_to/commands.rb +0 -3
- data/lib/convenient_service/rspec/primitive_matchers/classes/extend_module.rb +0 -40
- data/lib/convenient_service/rspec/primitive_matchers/classes/have_alias_method.rb +0 -48
- data/lib/convenient_service/rspec/primitive_matchers/classes/have_attr_accessor.rb +0 -43
- data/lib/convenient_service/rspec/primitive_matchers/classes/have_attr_reader.rb +0 -47
- data/lib/convenient_service/rspec/primitive_matchers/classes/have_attr_writer.rb +0 -47
- data/lib/convenient_service/rspec/primitive_matchers/classes/include_module.rb +0 -40
- data/lib/convenient_service/rspec/primitive_matchers/classes/prepend_module.rb +0 -40
- data/lib/convenient_service/rspec/primitive_matchers/classes.rb +0 -15
- data/lib/convenient_service/rspec/primitive_matchers/delegate_to.rb +0 -13
- data/lib/convenient_service/rspec/primitive_matchers/include_module.rb +0 -13
- data/lib/convenient_service/rspec/primitive_matchers.rb +0 -41
- data/lib/convenient_service/service/configs/amazing_print_inspect/aliases.rb +0 -7
- data/lib/convenient_service/service/configs/amazing_print_inspect.rb +0 -61
- data/lib/convenient_service/service/configs/awesome_print_inspect/aliases.rb +0 -7
- data/lib/convenient_service/service/configs/awesome_print_inspect.rb +0 -61
- data/lib/convenient_service/service/configs/essential.rb +0 -208
- data/lib/convenient_service/service/plugins/can_have_method_steps/middleware.rb +0 -25
- data/lib/convenient_service/service/plugins/can_have_method_steps.rb +0 -3
- data/lib/convenient_service/service/plugins/can_have_steps/commands/create_step_class.rb +0 -41
- data/lib/convenient_service/service/plugins/can_have_steps/commands/is_step.rb +0 -34
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_direction.rb +0 -95
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/reassignment.rb +0 -48
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/reassignment_value.rb +0 -42
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/reassignment.rb +0 -40
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb +0 -43
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values.rb +0 -3
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_executed/exceptions.rb +0 -38
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_executed.rb +0 -4
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_printed/middleware.rb +0 -32
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_printed.rb +0 -3
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands/get_service_stubbed_result.rb +0 -58
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/container.rb +0 -17
- data/lib/convenient_service/service/plugins/can_recalculate_result/concern.rb +0 -26
- data/lib/convenient_service/service/plugins/can_recalculate_result.rb +0 -3
- data/lib/convenient_service/service/plugins/counts_stubbed_results_invocations/middleware.rb +0 -24
- data/lib/convenient_service/service/plugins/counts_stubbed_results_invocations.rb +0 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/commands/create_result_class.rb +0 -41
- data/lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb +0 -34
- data/lib/convenient_service/service/plugins/has_j_send_result/commands.rb +0 -4
- data/lib/convenient_service/service/plugins/has_j_send_result/container.rb +0 -29
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_recalculate_result/concern.rb +0 -27
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_recalculate_result.rb +0 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/commands/create_code_class.rb +0 -49
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/commands/create_data_class.rb +0 -49
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/commands/create_message_class.rb +0 -49
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/commands/create_status_class.rb +0 -49
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/commands/is_code.rb +0 -49
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/commands.rb +0 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/commands/is_data.rb +0 -49
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/commands.rb +0 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_inspect/commands/generate_inspect_output.rb +0 -77
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_inspect/commands.rb +0 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/commands/is_message.rb +0 -49
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/commands.rb +0 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/commands/is_status.rb +0 -49
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/commands.rb +0 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_stubbed_result_invocations_counter/concern.rb +0 -30
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_stubbed_result_invocations_counter/middleware.rb +0 -38
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_stubbed_result_invocations_counter.rb +0 -4
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/exceptions.rb +0 -87
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/middleware.rb +0 -56
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error.rb +0 -4
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure/exceptions.rb +0 -90
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure/middleware.rb +0 -56
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure.rb +0 -4
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success/commands/refute_kwargs_contain_j_send_and_extra_keys.rb +0 -67
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success/commands.rb +0 -3
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success/exceptions.rb +0 -41
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success/middleware.rb +0 -27
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success.rb +0 -5
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/concern.rb +0 -29
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_lines.rb +0 -94
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_method_step_lines.rb +0 -115
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_result_lines.rb +0 -105
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_lines.rb +0 -88
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_step_lines.rb +0 -127
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands.rb +0 -7
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code.rb +0 -90
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/settings.rb +0 -144
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/template.rb +0 -85
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities.rb +0 -5
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/templates/flowchart.html.erb +0 -95
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart.rb +0 -108
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities.rb +0 -3
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart.rb +0 -4
- data/lib/convenient_service/service/plugins/wraps_result_in_d_b_transaction/middleware.rb +0 -17
- data/lib/convenient_service/support/dependency_container/container.rb +0 -23
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
##
|
|
4
|
+
# @author Marian Kostyk <mariankostyk13895@gmail.com>
|
|
5
|
+
# @license LGPLv3 <https://www.gnu.org/licenses/lgpl-3.0.html>
|
|
6
|
+
##
|
|
7
|
+
|
|
8
|
+
require_relative "standard/commands"
|
|
9
|
+
|
|
3
10
|
require_relative "standard/v1"
|
|
4
11
|
require_relative "standard/aliases"
|
|
5
12
|
|
|
@@ -10,230 +17,412 @@ module ConvenientService
|
|
|
10
17
|
# Default configuration for the user-defined services.
|
|
11
18
|
#
|
|
12
19
|
module Standard
|
|
13
|
-
include
|
|
20
|
+
include ConvenientService::Config
|
|
21
|
+
|
|
22
|
+
default_options do
|
|
23
|
+
[
|
|
24
|
+
:essential,
|
|
25
|
+
:callbacks,
|
|
26
|
+
:fallbacks,
|
|
27
|
+
# :rollbacks,
|
|
28
|
+
# :fault_tolerance,
|
|
29
|
+
:inspect,
|
|
30
|
+
:recalculation,
|
|
31
|
+
:result_parents_trace,
|
|
32
|
+
:code_review_automation,
|
|
33
|
+
:short_syntax,
|
|
34
|
+
:type_safety,
|
|
35
|
+
:exception_services_trace,
|
|
36
|
+
:per_instance_caching,
|
|
37
|
+
:backtrace_cleaner,
|
|
38
|
+
# :active_model_attribute_assignment,
|
|
39
|
+
# :dry_initializer,
|
|
40
|
+
# :active_model_attributes,
|
|
41
|
+
# :active_model_validations,
|
|
42
|
+
# :dry_validation,
|
|
43
|
+
# :memo_wise,
|
|
44
|
+
# :not_passed_arguments,
|
|
45
|
+
# :finite_loop,
|
|
46
|
+
rspec: Dependencies.rspec.loaded?
|
|
47
|
+
]
|
|
48
|
+
end
|
|
14
49
|
|
|
15
50
|
##
|
|
16
51
|
# @internal
|
|
17
52
|
# IMPORTANT: Order of plugins matters.
|
|
18
53
|
#
|
|
19
54
|
# NOTE: `class_exec` (that is used under the hood by `included`) defines `class Result` in the global namespace.
|
|
20
|
-
# That is why `
|
|
55
|
+
# That is why `entity :Result do` is used.
|
|
21
56
|
# - https://stackoverflow.com/a/51965126/12201472
|
|
22
57
|
#
|
|
23
58
|
# rubocop:disable Lint/ConstantDefinitionInBlock
|
|
24
59
|
included do
|
|
25
|
-
include
|
|
60
|
+
include ConvenientService::Service::Core
|
|
26
61
|
|
|
27
62
|
concerns do
|
|
28
|
-
use ConvenientService::Plugins::
|
|
29
|
-
use ConvenientService::Plugins::Common::
|
|
30
|
-
use ConvenientService::Plugins::
|
|
31
|
-
use ConvenientService::Plugins::
|
|
32
|
-
use ConvenientService::Plugins::Service::
|
|
33
|
-
|
|
34
|
-
use ConvenientService::Plugins::
|
|
35
|
-
use ConvenientService::Plugins::
|
|
36
|
-
|
|
37
|
-
use ConvenientService::Plugins::Service::
|
|
63
|
+
use ConvenientService::Plugins::Service::CanHaveStubbedResults::Concern if options.enabled?(:rspec)
|
|
64
|
+
use ConvenientService::Plugins::Common::HasInternals::Concern if options.enabled?(:essential)
|
|
65
|
+
use ConvenientService::Plugins::Common::HasConstructor::Concern if options.enabled?(:essential)
|
|
66
|
+
use ConvenientService::Plugins::Common::HasConstructorWithoutInitialize::Concern if options.enabled?(:essential)
|
|
67
|
+
use ConvenientService::Plugins::Service::HasResult::Concern if options.enabled?(:essential)
|
|
68
|
+
use ConvenientService::Plugins::Service::HasJSendResult::Concern if options.enabled?(:essential)
|
|
69
|
+
use ConvenientService::Plugins::Service::HasNegatedResult::Concern if options.enabled?(:essential)
|
|
70
|
+
use ConvenientService::Plugins::Service::HasNegatedJSendResult::Concern if options.enabled?(:essential)
|
|
71
|
+
use ConvenientService::Plugins::Service::CanHaveSteps::Concern if options.enabled?(:essential)
|
|
72
|
+
use ConvenientService::Plugins::Service::CanHaveConnectedSteps::Concern if options.enabled?(:essential)
|
|
73
|
+
use ConvenientService::Plugins::Service::CanHaveStepAwareEnumerables::Concern if options.enabled?(:essential)
|
|
74
|
+
use ConvenientService::Plugins::Service::CanBeCalled::Concern if options.enabled?(:essential)
|
|
75
|
+
use ConvenientService::Plugins::Common::CanHaveCallbacks::Concern if options.enabled?(:callbacks)
|
|
76
|
+
use ConvenientService::Plugins::Service::CanHaveFallbacks::Concern if options.enabled?(:fallbacks)
|
|
77
|
+
use ConvenientService::Plugins::Service::HasInspect::Concern if options.enabled?(:inspect)
|
|
78
|
+
use ConvenientService::Plugins::Service::HasAwesomePrintInspect::Concern if options.enabled?(:awesome_print_inspect)
|
|
79
|
+
use ConvenientService::Plugins::Service::HasAmazingPrintInspect::Concern if options.enabled?(:amazing_print_inspect)
|
|
80
|
+
use ConvenientService::Plugins::Common::CachesConstructorArguments::Concern if options.enabled?(:recalculation)
|
|
81
|
+
use ConvenientService::Plugins::Common::CanBeCopied::Concern if options.enabled?(:recalculation)
|
|
82
|
+
use ConvenientService::Plugins::Service::CanHaveRecalculations::Concern if options.enabled?(:recalculation)
|
|
83
|
+
use ConvenientService::Plugins::Service::CanNotBeInherited::Concern if options.enabled?(:code_review_automation)
|
|
84
|
+
use ConvenientService::Plugins::Service::HasJSendResultShortSyntax::Concern if options.enabled?(:short_syntax)
|
|
85
|
+
use ConvenientService::Plugins::Service::HasJSendResultStatusCheckShortSyntax::Concern if options.enabled?(:short_syntax)
|
|
86
|
+
use ConvenientService::Plugins::Common::AssignsAttributesInConstructor::UsingActiveModelAttributeAssignment::Concern if options.enabled?(:active_model_attribute_assignment)
|
|
87
|
+
use ConvenientService::Plugins::Common::AssignsAttributesInConstructor::UsingDryInitializer::Concern if options.enabled?(:dry_initializer)
|
|
88
|
+
use ConvenientService::Plugins::Common::HasAttributes::UsingActiveModelAttributes::Concern if options.enabled?(:active_model_attributes)
|
|
89
|
+
use ConvenientService::Plugins::Service::HasJSendResultParamsValidations::UsingActiveModelValidations::Concern if options.enabled?(:active_model_validations)
|
|
90
|
+
use ConvenientService::Plugins::Service::HasJSendResultParamsValidations::UsingDryValidation::Concern if options.enabled?(:dry_validation)
|
|
91
|
+
use ConvenientService::Plugins::Common::HasMemoization::UsingMemoWise::Concern if options.enabled?(:memo_wise)
|
|
92
|
+
use ConvenientService::Plugins::Common::CanHaveNotPassedArguments::Concern if options.enabled?(:not_passed_arguments)
|
|
93
|
+
use ConvenientService::Plugins::Common::CanUtilizeFiniteLoop::Concern if options.enabled?(:finite_loop)
|
|
38
94
|
end
|
|
39
95
|
|
|
40
96
|
middlewares :initialize do
|
|
41
|
-
use ConvenientService::Plugins::Service::CollectsServicesInException::Middleware
|
|
42
|
-
use ConvenientService::Plugins::Common::CachesConstructorArguments::Middleware
|
|
97
|
+
use ConvenientService::Plugins::Service::CollectsServicesInException::Middleware if options.enabled?(:exception_services_trace)
|
|
98
|
+
use ConvenientService::Plugins::Common::CachesConstructorArguments::Middleware if options.enabled?(:recalculation)
|
|
99
|
+
use ConvenientService::Plugins::Common::CleansExceptionBacktrace::Middleware if options.enabled?(:backtrace_cleaner)
|
|
100
|
+
use ConvenientService::Plugins::Service::CanHaveSteps::Middleware if options.enabled?(:essential)
|
|
101
|
+
use ConvenientService::Plugins::Common::AssignsAttributesInConstructor::UsingActiveModelAttributeAssignment::Middleware if options.enabled?(:active_model_attribute_assignment)
|
|
102
|
+
use ConvenientService::Service::Plugins::ForbidsConvenientServiceEntitiesAsConstructorArguments::Middleware if options.enabled?(:code_review_automation)
|
|
43
103
|
end
|
|
44
104
|
|
|
45
105
|
middlewares :result do
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
106
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
107
|
+
use ConvenientService::Plugins::Service::CollectsServicesInException::Middleware if options.enabled?(:exception_services_trace)
|
|
108
|
+
use ConvenientService::Plugins::Service::CanHaveStubbedResults::Middleware if options.enabled?(:rspec)
|
|
109
|
+
use ConvenientService::Plugins::Common::CanHaveCallbacks::Middleware if options.enabled?(:callbacks)
|
|
110
|
+
use ConvenientService::Service::Plugins::CanHaveRollbacks::Middleware if options.enabled?(:rollbacks)
|
|
111
|
+
use ConvenientService::Plugins::Service::SetsParentToForeignResult::Middleware if options.enabled?(:result_parents_trace)
|
|
112
|
+
use ConvenientService::Plugins::Service::RaisesOnNotResultReturnValue::Middleware if options.enabled?(:type_safety)
|
|
113
|
+
use ConvenientService::Plugins::Service::RescuesResultUnhandledExceptions::Middleware if options.enabled?(:fault_tolerance)
|
|
114
|
+
use ConvenientService::Plugins::Common::CleansExceptionBacktrace::Middleware if options.enabled?(:backtrace_cleaner)
|
|
115
|
+
use ConvenientService::Plugins::Service::HasJSendResultParamsValidations::UsingActiveModelValidations::Middleware if options.enabled?(:active_model_validations)
|
|
116
|
+
use ConvenientService::Plugins::Service::HasJSendResultParamsValidations::UsingDryValidation::Middleware if options.enabled?(:dry_validation)
|
|
117
|
+
use ConvenientService::Plugins::Service::CanHaveConnectedSteps::Middleware if options.enabled?(:essential)
|
|
118
|
+
end
|
|
51
119
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
120
|
+
middlewares :negated_result do
|
|
121
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
122
|
+
use ConvenientService::Plugins::Service::CollectsServicesInException::Middleware if options.enabled?(:exception_services_trace)
|
|
123
|
+
use ConvenientService::Plugins::Common::EnsuresNegatedJSendResult::Middleware if options.enabled?(:essential)
|
|
124
|
+
use ConvenientService::Plugins::Service::RaisesOnNotResultReturnValue::Middleware if options.enabled?(:type_safety)
|
|
125
|
+
use ConvenientService::Plugins::Service::RescuesResultUnhandledExceptions::Middleware if options.enabled?(:fault_tolerance)
|
|
126
|
+
use ConvenientService::Plugins::Common::CleansExceptionBacktrace::Middleware if options.enabled?(:backtrace_cleaner)
|
|
127
|
+
end
|
|
55
128
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
# use ConvenientService::Plugins::Service::RaisesOnDoubleResult::Middleware
|
|
129
|
+
middlewares :regular_result do
|
|
130
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
131
|
+
end
|
|
60
132
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
ConvenientService::Plugins::Service::SetsParentToForeignResult::Middleware
|
|
133
|
+
middlewares :steps_result do
|
|
134
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
64
135
|
end
|
|
65
136
|
|
|
66
137
|
middlewares :fallback_failure_result do
|
|
67
|
-
use ConvenientService::Plugins::
|
|
68
|
-
use ConvenientService::Plugins::
|
|
69
|
-
|
|
70
|
-
use ConvenientService::Plugins::Service::
|
|
71
|
-
use ConvenientService::Plugins::
|
|
138
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
139
|
+
use ConvenientService::Plugins::Service::CollectsServicesInException::Middleware if options.enabled?(:exception_services_trace)
|
|
140
|
+
use ConvenientService::Plugins::Service::RaisesOnNotResultReturnValue::Middleware if options.enabled?(:type_safety)
|
|
141
|
+
# use ConvenientService::Plugins::Service::RescuesResultUnhandledExceptions::Middleware if options.enabled?(:fault_tolerance) # TODO: Dedicted `rescue`?
|
|
142
|
+
use ConvenientService::Plugins::Common::CleansExceptionBacktrace::Middleware if options.enabled?(:backtrace_cleaner)
|
|
143
|
+
use ConvenientService::Plugins::Service::CanHaveFallbacks::Middleware.with(status: :failure) if options.enabled?(:fallbacks)
|
|
72
144
|
end
|
|
73
145
|
|
|
74
146
|
middlewares :fallback_error_result do
|
|
75
|
-
use ConvenientService::Plugins::
|
|
76
|
-
use ConvenientService::Plugins::
|
|
77
|
-
|
|
78
|
-
use ConvenientService::Plugins::Service::
|
|
79
|
-
use ConvenientService::Plugins::
|
|
147
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
148
|
+
use ConvenientService::Plugins::Service::CollectsServicesInException::Middleware if options.enabled?(:exception_services_trace)
|
|
149
|
+
use ConvenientService::Plugins::Service::RaisesOnNotResultReturnValue::Middleware if options.enabled?(:type_safety)
|
|
150
|
+
# use ConvenientService::Plugins::Service::RescuesResultUnhandledExceptions::Middleware if options.enabled?(:fault_tolerance) # TODO: Dedicted `rescue`?
|
|
151
|
+
use ConvenientService::Plugins::Common::CleansExceptionBacktrace::Middleware if options.enabled?(:backtrace_cleaner)
|
|
152
|
+
use ConvenientService::Plugins::Service::CanHaveFallbacks::Middleware.with(status: :error) if options.enabled?(:fallbacks)
|
|
80
153
|
end
|
|
81
154
|
|
|
82
155
|
middlewares :fallback_result do
|
|
83
|
-
use ConvenientService::Plugins::
|
|
84
|
-
use ConvenientService::Plugins::
|
|
156
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
157
|
+
use ConvenientService::Plugins::Service::CollectsServicesInException::Middleware if options.enabled?(:exception_services_trace)
|
|
158
|
+
use ConvenientService::Plugins::Service::RaisesOnNotResultReturnValue::Middleware if options.enabled?(:type_safety)
|
|
159
|
+
# use ConvenientService::Plugins::Service::RescuesResultUnhandledExceptions::Middleware if options.enabled?(:fault_tolerance) # TODO: Dedicted `rescue`?
|
|
160
|
+
use ConvenientService::Plugins::Common::CleansExceptionBacktrace::Middleware if options.enabled?(:backtrace_cleaner)
|
|
161
|
+
use ConvenientService::Plugins::Service::CanHaveFallbacks::Middleware.with(status: nil) if options.enabled?(:fallbacks)
|
|
162
|
+
end
|
|
85
163
|
|
|
86
|
-
|
|
87
|
-
use ConvenientService::Plugins::Service::
|
|
164
|
+
middlewares :success do
|
|
165
|
+
use ConvenientService::Plugins::Service::HasJSendResultShortSyntax::Middleware if options.enabled?(:short_syntax)
|
|
88
166
|
end
|
|
89
167
|
|
|
90
|
-
middlewares :
|
|
91
|
-
use ConvenientService::Plugins::Service::
|
|
92
|
-
|
|
168
|
+
middlewares :failure do
|
|
169
|
+
use ConvenientService::Plugins::Service::HasJSendResultShortSyntax::Middleware if options.enabled?(:short_syntax)
|
|
170
|
+
end
|
|
93
171
|
|
|
94
|
-
|
|
172
|
+
middlewares :error do
|
|
173
|
+
use ConvenientService::Plugins::Service::HasJSendResultShortSyntax::Middleware if options.enabled?(:short_syntax)
|
|
95
174
|
end
|
|
96
175
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
# This completely makes sence and is useful for debugging for example.
|
|
101
|
-
#
|
|
102
|
-
# But `before :step do` is also executed after step result is calculated.
|
|
103
|
-
# That confuses the end-users a lot.
|
|
104
|
-
# Probably a dedicated plugin is needed?
|
|
105
|
-
# Or to forbid `before :step do`?
|
|
106
|
-
#
|
|
107
|
-
middlewares :step do
|
|
108
|
-
use ConvenientService::Plugins::Common::HasCallbacks::Middleware
|
|
109
|
-
use ConvenientService::Plugins::Common::HasAroundCallbacks::Middleware
|
|
176
|
+
middlewares :result, scope: :class do
|
|
177
|
+
use ConvenientService::Plugins::Service::CanHaveStubbedResults::Middleware if options.enabled?(:rspec)
|
|
178
|
+
use ConvenientService::Plugins::Service::RescuesResultUnhandledExceptions::Middleware if options.enabled?(:fault_tolerance)
|
|
110
179
|
end
|
|
111
180
|
|
|
112
|
-
middlewares :
|
|
113
|
-
use ConvenientService::Plugins::Service::
|
|
181
|
+
middlewares :before, scope: :class do
|
|
182
|
+
use ConvenientService::Plugins::Service::CanHaveBeforeStepCallbacks::Middleware if options.enabled?(:callbacks)
|
|
114
183
|
end
|
|
115
184
|
|
|
116
|
-
middlewares :
|
|
117
|
-
use ConvenientService::Plugins::Service::
|
|
185
|
+
middlewares :around, scope: :class do
|
|
186
|
+
use ConvenientService::Plugins::Service::CanHaveAroundStepCallbacks::Middleware if options.enabled?(:callbacks)
|
|
118
187
|
end
|
|
119
188
|
|
|
120
|
-
middlewares :
|
|
121
|
-
use ConvenientService::Plugins::Service::
|
|
189
|
+
middlewares :after, scope: :class do
|
|
190
|
+
use ConvenientService::Plugins::Service::CanHaveAfterStepCallbacks::Middleware if options.enabled?(:callbacks)
|
|
122
191
|
end
|
|
123
192
|
|
|
124
|
-
|
|
193
|
+
entity :Result do
|
|
125
194
|
concerns do
|
|
126
|
-
use ConvenientService::Plugins::Common::
|
|
127
|
-
use ConvenientService::Plugins::
|
|
195
|
+
use ConvenientService::Plugins::Common::HasInternals::Concern if options.enabled?(:essential)
|
|
196
|
+
use ConvenientService::Plugins::Common::HasConstructor::Concern if options.enabled?(:essential)
|
|
197
|
+
use ConvenientService::Plugins::Common::HasConstructorWithoutInitialize::Concern if options.enabled?(:essential)
|
|
198
|
+
use ConvenientService::Plugins::Result::HasJSendStatusAndAttributes::Concern if options.enabled?(:essential)
|
|
199
|
+
use ConvenientService::Plugins::Result::CanHaveStep::Concern if options.enabled?(:essential)
|
|
200
|
+
use ConvenientService::Plugins::Result::CanBeCalled::Concern if options.enabled?(:essential)
|
|
201
|
+
use ConvenientService::Plugins::Result::CanBeStrict::Concern if options.enabled?(:essential)
|
|
202
|
+
use ConvenientService::Plugins::Result::HasNegatedResult::Concern if options.enabled?(:essential)
|
|
203
|
+
use ConvenientService::Plugins::Result::HasPatternMatchingSupport::Concern if options.enabled?(:essential)
|
|
204
|
+
use ConvenientService::Plugins::Result::CanBeFromFallback::Concern if options.enabled?(:fallbacks)
|
|
205
|
+
use ConvenientService::Plugins::Result::CanHaveFallbacks::Concern if options.enabled?(:fallbacks)
|
|
206
|
+
use ConvenientService::Plugins::Result::CanBeFromException::Concern if options.enabled?(:fault_tolerance)
|
|
207
|
+
use ConvenientService::Plugins::Result::HasInspect::Concern if options.enabled?(:inspect)
|
|
208
|
+
use ConvenientService::Plugins::Result::HasAwesomePrintInspect::Concern if options.enabled?(:awesome_print_inspect)
|
|
209
|
+
use ConvenientService::Plugins::Result::HasAmazingPrintInspect::Concern if options.enabled?(:amazing_print_inspect)
|
|
210
|
+
use ConvenientService::Plugins::Result::CanBeOwnResult::Concern if options.enabled?(:result_parents_trace)
|
|
211
|
+
use ConvenientService::Plugins::Result::CanHaveParentResult::Concern if options.enabled?(:result_parents_trace)
|
|
212
|
+
use ConvenientService::Plugins::Result::CanBeStubbedResult::Concern if options.enabled?(:rspec)
|
|
213
|
+
use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Concern if options.enabled?(:code_review_automation)
|
|
214
|
+
use ConvenientService::Plugins::Common::HasJSendResultDuckShortSyntax::Concern if options.enabled?(:short_syntax)
|
|
215
|
+
# use ConvenientService::Plugins::Result::HelpsToLearnSimilaritiesWithCommonObjects::Concern
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
middlewares :initialize do
|
|
219
|
+
use ConvenientService::Plugins::Result::HasJSendStatusAndAttributes::Middleware if options.enabled?(:essential)
|
|
220
|
+
end
|
|
128
221
|
|
|
129
|
-
|
|
130
|
-
use ConvenientService::Plugins::
|
|
131
|
-
use ConvenientService::Plugins::Result::CanBeOwnResult::Concern
|
|
132
|
-
use ConvenientService::Plugins::Result::CanHaveFallbacks::Concern
|
|
133
|
-
use ConvenientService::Plugins::Result::CanHaveParentResult::Concern
|
|
134
|
-
use ConvenientService::Plugins::Result::CanHaveCheckedStatus::Concern
|
|
222
|
+
middlewares :negated_result do
|
|
223
|
+
use ConvenientService::Plugins::Common::EnsuresNegatedJSendResult::Middleware if options.enabled?(:essential)
|
|
135
224
|
end
|
|
136
225
|
|
|
137
226
|
middlewares :data do
|
|
138
|
-
use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware
|
|
227
|
+
use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware if options.enabled?(:code_review_automation)
|
|
139
228
|
end
|
|
140
229
|
|
|
141
230
|
middlewares :message do
|
|
142
|
-
use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware
|
|
231
|
+
use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware if options.enabled?(:code_review_automation)
|
|
143
232
|
end
|
|
144
233
|
|
|
145
234
|
middlewares :code do
|
|
146
|
-
use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware
|
|
147
|
-
end
|
|
148
|
-
|
|
149
|
-
middlewares :negated_result do
|
|
150
|
-
use ConvenientService::Plugins::Common::EnsuresNegatedJSendResult::Middleware
|
|
235
|
+
use ConvenientService::Plugins::Result::RaisesOnNotCheckedResultStatus::Middleware if options.enabled?(:code_review_automation)
|
|
151
236
|
end
|
|
152
237
|
|
|
153
|
-
|
|
238
|
+
entity :Status do
|
|
154
239
|
concerns do
|
|
155
|
-
use ConvenientService::Plugins::
|
|
240
|
+
use ConvenientService::Plugins::Common::HasInternals::Concern if options.enabled?(:essential)
|
|
241
|
+
use ConvenientService::Plugins::Status::HasInspect::Concern if options.enabled?(:inspect)
|
|
242
|
+
use ConvenientService::Plugins::Status::HasAwesomePrintInspect::Concern if options.enabled?(:awesome_print_inspect)
|
|
243
|
+
use ConvenientService::Plugins::Status::HasAmazingPrintInspect::Concern if options.enabled?(:amazing_print_inspect)
|
|
244
|
+
use ConvenientService::Plugins::Status::CanBeChecked::Concern if options.enabled?(:code_review_automation)
|
|
156
245
|
end
|
|
157
246
|
|
|
158
247
|
middlewares :success? do
|
|
159
|
-
use ConvenientService::Plugins::Status::CanBeChecked::Middleware
|
|
248
|
+
use ConvenientService::Plugins::Status::CanBeChecked::Middleware if options.enabled?(:code_review_automation)
|
|
160
249
|
end
|
|
161
250
|
|
|
162
251
|
middlewares :failure? do
|
|
163
|
-
use ConvenientService::Plugins::Status::CanBeChecked::Middleware
|
|
252
|
+
use ConvenientService::Plugins::Status::CanBeChecked::Middleware if options.enabled?(:code_review_automation)
|
|
164
253
|
end
|
|
165
254
|
|
|
166
255
|
middlewares :error? do
|
|
167
|
-
use ConvenientService::Plugins::Status::CanBeChecked::Middleware
|
|
256
|
+
use ConvenientService::Plugins::Status::CanBeChecked::Middleware if options.enabled?(:code_review_automation)
|
|
168
257
|
end
|
|
169
258
|
|
|
170
259
|
middlewares :not_success? do
|
|
171
|
-
use ConvenientService::Plugins::Status::CanBeChecked::Middleware
|
|
260
|
+
use ConvenientService::Plugins::Status::CanBeChecked::Middleware if options.enabled?(:code_review_automation)
|
|
172
261
|
end
|
|
173
262
|
|
|
174
263
|
middlewares :not_failure? do
|
|
175
|
-
use ConvenientService::Plugins::Status::CanBeChecked::Middleware
|
|
264
|
+
use ConvenientService::Plugins::Status::CanBeChecked::Middleware if options.enabled?(:code_review_automation)
|
|
176
265
|
end
|
|
177
266
|
|
|
178
267
|
middlewares :not_error? do
|
|
179
|
-
use ConvenientService::Plugins::Status::CanBeChecked::Middleware
|
|
268
|
+
use ConvenientService::Plugins::Status::CanBeChecked::Middleware if options.enabled?(:code_review_automation)
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
entity :Internals do
|
|
272
|
+
concerns do
|
|
273
|
+
use ConvenientService::Plugins::Internals::HasCache::Concern if options.enabled?(:per_instance_caching)
|
|
274
|
+
end
|
|
180
275
|
end
|
|
181
276
|
end
|
|
182
|
-
end
|
|
183
277
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
278
|
+
entity :Data do
|
|
279
|
+
concerns do
|
|
280
|
+
use ConvenientService::Plugins::Data::HasInspect::Concern if options.enabled?(:inspect)
|
|
281
|
+
use ConvenientService::Plugins::Data::HasAwesomePrintInspect::Concern if options.enabled?(:awesome_print_inspect)
|
|
282
|
+
use ConvenientService::Plugins::Data::HasAmazingPrintInspect::Concern if options.enabled?(:amazing_print_inspect)
|
|
283
|
+
end
|
|
284
|
+
|
|
285
|
+
middlewares :initialize do
|
|
286
|
+
use ConvenientService::Plugins::Data::HasMethodReaders::Middleware if options.enabled?(:short_syntax)
|
|
287
|
+
end
|
|
188
288
|
end
|
|
189
289
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
ConvenientService::Plugins::
|
|
193
|
-
ConvenientService::Plugins::
|
|
290
|
+
entity :Message do
|
|
291
|
+
concerns do
|
|
292
|
+
use ConvenientService::Plugins::Message::HasInspect::Concern if options.enabled?(:inspect)
|
|
293
|
+
use ConvenientService::Plugins::Message::HasAwesomePrintInspect::Concern if options.enabled?(:awesome_print_inspect)
|
|
294
|
+
use ConvenientService::Plugins::Message::HasAmazingPrintInspect::Concern if options.enabled?(:amazing_print_inspect)
|
|
295
|
+
end
|
|
296
|
+
end
|
|
194
297
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
ConvenientService::Plugins::
|
|
298
|
+
entity :Code do
|
|
299
|
+
concerns do
|
|
300
|
+
use ConvenientService::Plugins::Code::HasInspect::Concern if options.enabled?(:inspect)
|
|
301
|
+
use ConvenientService::Plugins::Code::HasAwesomePrintInspect::Concern if options.enabled?(:awesome_print_inspect)
|
|
302
|
+
use ConvenientService::Plugins::Code::HasAmazingPrintInspect::Concern if options.enabled?(:amazing_print_inspect)
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
entity :Internals do
|
|
307
|
+
concerns do
|
|
308
|
+
use ConvenientService::Plugins::Internals::HasCache::Concern if options.enabled?(:per_instance_caching)
|
|
309
|
+
end
|
|
198
310
|
end
|
|
199
311
|
end
|
|
200
312
|
|
|
201
|
-
|
|
313
|
+
entity :Step do
|
|
202
314
|
concerns do
|
|
203
|
-
|
|
315
|
+
use ConvenientService::Plugins::Common::HasInternals::Concern if options.enabled?(:essential)
|
|
316
|
+
use ConvenientService::Plugins::Step::HasResult::Concern if options.enabled?(:essential)
|
|
317
|
+
use ConvenientService::Plugins::Step::CanBeCompleted::Concern if options.enabled?(:essential)
|
|
318
|
+
use ConvenientService::Plugins::Step::CanBeServiceStep::Concern if options.enabled?(:essential)
|
|
319
|
+
use ConvenientService::Plugins::Step::CanBeMethodStep::Concern if options.enabled?(:essential)
|
|
320
|
+
use ConvenientService::Plugins::Common::CanHaveCallbacks::Concern if options.enabled?(:callbacks)
|
|
321
|
+
use ConvenientService::Plugins::Step::CanHaveFallbacks::Concern if options.enabled?(:fallbacks)
|
|
322
|
+
use ConvenientService::Plugins::Step::HasInspect::Concern if options.enabled?(:inspect)
|
|
323
|
+
use ConvenientService::Plugins::Step::HasAwesomePrintInspect::Concern if options.enabled?(:awesome_print_inspect)
|
|
324
|
+
use ConvenientService::Plugins::Step::HasAmazingPrintInspect::Concern if options.enabled?(:amazing_print_inspect)
|
|
325
|
+
use ConvenientService::Plugins::Common::HasJSendResultDuckShortSyntax::Concern if options.enabled?(:short_syntax)
|
|
204
326
|
end
|
|
205
327
|
|
|
206
328
|
middlewares :result do
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
329
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
330
|
+
use ConvenientService::Plugins::Common::CanHaveCallbacks::Middleware if options.enabled?(:callbacks)
|
|
331
|
+
use ConvenientService::Plugins::Step::HasResult::Middleware if options.enabled?(:essential)
|
|
332
|
+
use ConvenientService::Plugins::Step::CanHaveParentResult::Middleware if options.enabled?(:result_parents_trace)
|
|
333
|
+
use ConvenientService::Plugins::Step::CanHaveFallbacks::Middleware.with(fallback_true_status: :failure) if options.enabled?(:fallbacks)
|
|
334
|
+
use ConvenientService::Plugins::Step::RaisesOnNotResultReturnValue::Middleware if options.enabled?(:type_safety)
|
|
335
|
+
use ConvenientService::Plugins::Step::CanBeServiceStep::Middleware if options.enabled?(:essential)
|
|
336
|
+
use ConvenientService::Plugins::Step::CanBeMethodStep::Middleware if options.enabled?(:essential)
|
|
212
337
|
end
|
|
213
338
|
|
|
214
|
-
middlewares :
|
|
215
|
-
|
|
339
|
+
middlewares :method_result do
|
|
340
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
341
|
+
end
|
|
216
342
|
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
ConvenientService::Plugins::Service::CountsStubbedResultsInvocations::Middleware
|
|
343
|
+
middlewares :service_result do
|
|
344
|
+
use ConvenientService::Plugins::Common::CachesReturnValue::Middleware if options.enabled?(:per_instance_caching)
|
|
220
345
|
end
|
|
221
346
|
|
|
222
|
-
|
|
347
|
+
entity :Internals do
|
|
223
348
|
concerns do
|
|
224
|
-
use ConvenientService::Plugins::
|
|
225
|
-
use ConvenientService::Plugins::Result::HasStubbedResultInvocationsCounter::Concern
|
|
349
|
+
use ConvenientService::Plugins::Internals::HasCache::Concern if options.enabled?(:per_instance_caching)
|
|
226
350
|
end
|
|
351
|
+
end
|
|
352
|
+
end
|
|
227
353
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
ConvenientService::Plugins::Result::HasStubbedResultInvocationsCounter::Middleware
|
|
232
|
-
end
|
|
354
|
+
entity :Internals do
|
|
355
|
+
concerns do
|
|
356
|
+
use ConvenientService::Plugins::Internals::HasCache::Concern if options.enabled?(:per_instance_caching)
|
|
233
357
|
end
|
|
234
358
|
end
|
|
359
|
+
|
|
360
|
+
##
|
|
361
|
+
# TODO: Rewrite. This plugin does NOT do what it states. Probably I was NOT with a clear mind while writing it (facepalm).
|
|
362
|
+
#
|
|
363
|
+
# middlewares :result do
|
|
364
|
+
# use ConvenientService::Plugins::Service::RaisesOnDoubleResult::Middleware
|
|
365
|
+
# end
|
|
235
366
|
end
|
|
236
367
|
# rubocop:enable Lint/ConstantDefinitionInBlock
|
|
368
|
+
|
|
369
|
+
class << self
|
|
370
|
+
##
|
|
371
|
+
# Checks whether a class is a service class.
|
|
372
|
+
#
|
|
373
|
+
# @api public
|
|
374
|
+
#
|
|
375
|
+
# @param service_class [Object] Can be any type.
|
|
376
|
+
# @return [Boolean]
|
|
377
|
+
#
|
|
378
|
+
# @example Simple usage.
|
|
379
|
+
# class Service
|
|
380
|
+
# include ConvenientService::Standard::Config
|
|
381
|
+
#
|
|
382
|
+
# def result
|
|
383
|
+
# success
|
|
384
|
+
# end
|
|
385
|
+
# end
|
|
386
|
+
#
|
|
387
|
+
# ConvenientService::Service::Configs::Standard.service_class?(Service)
|
|
388
|
+
# # => true
|
|
389
|
+
#
|
|
390
|
+
# ConvenientService::Service::Configs::Standard.service_class?(42)
|
|
391
|
+
# # => false
|
|
392
|
+
#
|
|
393
|
+
def service_class?(service_class)
|
|
394
|
+
Commands::IsServiceClass[service_class: service_class]
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
##
|
|
398
|
+
# Checks whether an object is a service instance.
|
|
399
|
+
#
|
|
400
|
+
# @api public
|
|
401
|
+
#
|
|
402
|
+
# @param service [Object] Can be any type.
|
|
403
|
+
# @return [Boolean]
|
|
404
|
+
#
|
|
405
|
+
# @example Simple usage.
|
|
406
|
+
# class Service
|
|
407
|
+
# include ConvenientService::Standard::Config
|
|
408
|
+
#
|
|
409
|
+
# def result
|
|
410
|
+
# success
|
|
411
|
+
# end
|
|
412
|
+
# end
|
|
413
|
+
#
|
|
414
|
+
# service = Service.new
|
|
415
|
+
#
|
|
416
|
+
# ConvenientService::Service::Configs::Standard.service?(service)
|
|
417
|
+
# # => true
|
|
418
|
+
#
|
|
419
|
+
# ConvenientService::Service::Configs::Standard.service?(42)
|
|
420
|
+
# # => false
|
|
421
|
+
#
|
|
422
|
+
def service?(service)
|
|
423
|
+
Commands::IsService[service: service]
|
|
424
|
+
end
|
|
425
|
+
end
|
|
237
426
|
end
|
|
238
427
|
end
|
|
239
428
|
end
|
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
##
|
|
4
|
+
# @author Marian Kostyk <mariankostyk13895@gmail.com>
|
|
5
|
+
# @license LGPLv3 <https://www.gnu.org/licenses/lgpl-3.0.html>
|
|
6
|
+
##
|
|
7
|
+
|
|
4
8
|
require_relative "configs/standard"
|
|
5
9
|
|
|
6
10
|
require_relative "configs/aliases"
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
##
|
|
4
|
+
# @author Marian Kostyk <mariankostyk13895@gmail.com>
|
|
5
|
+
# @license LGPLv3 <https://www.gnu.org/licenses/lgpl-3.0.html>
|
|
6
|
+
##
|
|
7
|
+
|
|
8
|
+
module ConvenientService
|
|
9
|
+
module Service
|
|
10
|
+
module Core
|
|
11
|
+
include Support::Concern
|
|
12
|
+
|
|
13
|
+
included do
|
|
14
|
+
include ::ConvenientService::Core
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
18
|
+
end
|