convenient_service 0.12.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.dev/.tmuxinator.yml +4 -0
- data/.github/workflows/ci.yml +2 -0
- data/.gitignore +18 -0
- data/.vscode/CacheItsValue.code-snippets +15 -0
- data/.vscode/DelegateTo.code-snippets +15 -0
- data/.vscode/cache_its_value.code-snippets +17 -0
- data/.vscode/comparison.code-snippets +41 -0
- data/.vscode/delegate_to.code-snippets +20 -0
- data/Appraisals +24 -2
- data/CHANGELOG.md +183 -0
- data/Gemfile +11 -6
- data/README.md +11 -3
- data/ROADMAP.md +5 -1
- data/Taskfile.yml +260 -55
- data/benchmark/commit_config/ips.rb +18 -0
- data/benchmark/commit_config/profile.rb +30 -0
- data/benchmark/empty_service/ips.rb +123 -0
- data/benchmark/has_committed_config/ips.rb +78 -0
- data/benchmark/has_committed_config/profile.rb +30 -0
- data/convenient_service.gemspec +125 -4
- data/gemfiles/.gitkeep +0 -0
- data/lib/convenient_service/alias.rb +3 -0
- data/lib/convenient_service/aliases.rb +0 -4
- data/lib/convenient_service/common/plugins/assigns_attributes_in_constructor/using_active_model_attribute_assignment/middleware.rb +3 -1
- data/lib/convenient_service/common/plugins/caches_constructor_arguments/concern.rb +22 -0
- data/lib/convenient_service/common/plugins/caches_constructor_arguments/middleware.rb +22 -0
- data/lib/convenient_service/common/plugins/caches_constructor_arguments.rb +4 -0
- data/lib/convenient_service/common/plugins/caches_return_value/middleware.rb +12 -8
- data/lib/convenient_service/common/plugins/can_be_copied/concern.rb +22 -5
- data/lib/convenient_service/common/plugins/can_have_user_provided_entity/commands/find_or_create_entity.rb +9 -7
- data/lib/convenient_service/common/plugins/can_have_user_provided_entity/{errors.rb → exceptions.rb} +4 -4
- data/lib/convenient_service/common/plugins/can_have_user_provided_entity.rb +1 -1
- data/lib/convenient_service/common/plugins/can_utilize_finite_loop/concern.rb +40 -0
- data/lib/convenient_service/common/plugins/can_utilize_finite_loop/constants.rb +21 -0
- data/lib/convenient_service/common/plugins/can_utilize_finite_loop.rb +4 -0
- data/lib/convenient_service/common/plugins/has_around_callbacks/{errors.rb → exceptions.rb} +2 -2
- data/lib/convenient_service/common/plugins/has_around_callbacks/middleware.rb +9 -3
- data/lib/convenient_service/common/plugins/has_around_callbacks.rb +1 -1
- data/lib/convenient_service/common/plugins/has_callbacks/entities/callback.rb +1 -1
- data/lib/convenient_service/common/plugins/has_callbacks/middleware.rb +7 -1
- data/lib/convenient_service/common/plugins/has_constructor/concern.rb +3 -4
- data/lib/convenient_service/common/plugins/has_constructor_without_initialize/concern.rb +1 -9
- data/lib/convenient_service/common/plugins/has_internals/entities/internals/plugins/has_cache/concern.rb +1 -1
- data/lib/convenient_service/common/plugins/has_j_send_result_duck_short_syntax/concern.rb +68 -0
- data/lib/convenient_service/common/plugins/has_j_send_result_duck_short_syntax.rb +3 -0
- data/lib/convenient_service/common/plugins/normalizes_env/middleware.rb +3 -1
- data/lib/convenient_service/common/plugins.rb +2 -1
- data/lib/convenient_service/configs/awesome_print_inspect/aliases.rb +7 -0
- data/lib/convenient_service/configs/awesome_print_inspect.rb +59 -0
- data/lib/convenient_service/configs/minimal.rb +67 -5
- data/lib/convenient_service/configs/standard/aliases.rb +9 -0
- data/lib/convenient_service/configs/standard/v1.rb +183 -0
- data/lib/convenient_service/configs/standard.rb +118 -30
- data/lib/convenient_service/core/aliases.rb +4 -5
- data/lib/convenient_service/core/concern/class_methods.rb +129 -0
- data/lib/convenient_service/core/concern/instance_methods.rb +76 -0
- data/lib/convenient_service/core/concern.rb +25 -0
- data/lib/convenient_service/core/entities/config/commands/track_method_missing_commit_trigger.rb +2 -2
- data/lib/convenient_service/core/entities/config/entities/concerns/entities/middleware/commands/cast_middleware.rb +2 -2
- data/lib/convenient_service/core/entities/config/entities/concerns/entities/middleware.rb +1 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/commands/cast_caller.rb +2 -2
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/concern/instance_methods.rb +9 -2
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller/constants.rb +26 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/caller.rb +1 -3
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/container/concern/instance_methods.rb +10 -3
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/base.rb +95 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/observable/entities/event.rb +95 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/observable/entities.rb +3 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/observable.rb +42 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators/with.rb +50 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creators.rb +6 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/commands/create_observable_middleware.rb +104 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/commands.rb +3 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/concern/class_methods.rb +115 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/concern/instance_methods.rb +70 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/concern.rb +32 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/constants.rb +36 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/structs/intended_method.rb +23 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base/structs.rb +3 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/base.rb +26 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/commands/create_observable_middleware.rb +90 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/commands.rb +3 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/concern/class_methods.rb +37 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/concern/instance_methods.rb +115 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/concern.rb +32 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/entities/method_chain.rb +86 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain/entities.rb +3 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/chain.rb +34 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares/classic.rb +42 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middlewares.rb +6 -0
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/stack.rb +46 -11
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities.rb +2 -3
- data/lib/convenient_service/core/entities/config/entities/method_middlewares.rb +1 -1
- data/lib/convenient_service/core/entities/config/{errors.rb → exceptions.rb} +3 -3
- data/lib/convenient_service/core/entities/config.rb +19 -6
- data/lib/convenient_service/core/entities.rb +0 -1
- data/lib/convenient_service/core.rb +7 -5
- data/lib/convenient_service/dependencies/built_in.rb +11 -4
- data/lib/convenient_service/dependencies/extractions/active_support_backtrace_cleaner/backtrace_cleaner.rb +149 -0
- data/lib/convenient_service/dependencies/extractions/active_support_backtrace_cleaner.rb +15 -0
- data/lib/convenient_service/dependencies/extractions/active_support_concern/concern.rb +4 -3
- data/lib/convenient_service/dependencies/extractions/active_support_concern.rb +4 -3
- data/lib/convenient_service/dependencies.rb +266 -25
- data/lib/convenient_service/examples/dry/gemfile/dry_service/config.rb +19 -21
- data/lib/convenient_service/examples/dry/gemfile/services/assert_file_exists.rb +2 -2
- data/lib/convenient_service/examples/dry/gemfile/services/assert_file_not_empty.rb +2 -2
- data/lib/convenient_service/examples/dry/gemfile/services/assert_node_available.rb +2 -2
- data/lib/convenient_service/examples/dry/gemfile/services/assert_npm_package_available.rb +2 -2
- data/lib/convenient_service/examples/dry/gemfile/services/assert_valid_ruby_syntax.rb +2 -2
- data/lib/convenient_service/examples/dry/gemfile/services/format.rb +1 -1
- data/lib/convenient_service/examples/dry/gemfile/services/format_body.rb +1 -1
- data/lib/convenient_service/examples/dry/gemfile/services/format_gems_with_envs.rb +1 -1
- data/lib/convenient_service/examples/dry/gemfile/services/format_gems_without_envs.rb +1 -1
- data/lib/convenient_service/examples/dry/gemfile/services/format_header.rb +1 -1
- data/lib/convenient_service/examples/dry/gemfile/services/parse_content.rb +2 -2
- data/lib/convenient_service/examples/dry/gemfile/services/print_shell_command.rb +12 -5
- data/lib/convenient_service/examples/dry/gemfile/services/read_file_content.rb +2 -2
- data/lib/convenient_service/examples/dry/gemfile/services/{run_shell.rb → run_shell_command.rb} +11 -6
- data/lib/convenient_service/examples/dry/gemfile/services/strip_comments.rb +3 -3
- data/lib/convenient_service/examples/dry/gemfile/services.rb +3 -2
- data/lib/convenient_service/examples/dry/gemfile.rb +1 -1
- data/lib/convenient_service/examples/dry/v1/gemfile/dry_service/config.rb +47 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/dry_service.rb +3 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_file_exists.rb +31 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_file_not_empty.rb +31 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_node_available.rb +28 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_npm_package_available.rb +41 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/assert_valid_ruby_syntax.rb +43 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format.rb +39 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format_body.rb +95 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format_gems_with_envs.rb +98 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format_gems_without_envs.rb +86 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/format_header.rb +76 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/parse_content.rb +95 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/read_file_content.rb +33 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/run_shell_command.rb +43 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services/strip_comments.rb +111 -0
- data/lib/convenient_service/examples/dry/v1/gemfile/services.rb +17 -0
- data/lib/convenient_service/examples/dry/v1/gemfile.rb +27 -0
- data/lib/convenient_service/examples/rails/gemfile/rails_service/config.rb +28 -30
- data/lib/convenient_service/examples/rails/gemfile/services/assert_file_exists.rb +3 -3
- data/lib/convenient_service/examples/rails/gemfile/services/assert_file_not_empty.rb +3 -3
- data/lib/convenient_service/examples/rails/gemfile/services/assert_node_available.rb +2 -2
- data/lib/convenient_service/examples/rails/gemfile/services/assert_npm_package_available.rb +3 -3
- data/lib/convenient_service/examples/rails/gemfile/services/assert_valid_ruby_syntax.rb +2 -2
- data/lib/convenient_service/examples/rails/gemfile/services/format.rb +2 -2
- data/lib/convenient_service/examples/rails/gemfile/services/format_body.rb +1 -1
- data/lib/convenient_service/examples/rails/gemfile/services/format_gems_with_envs.rb +1 -1
- data/lib/convenient_service/examples/rails/gemfile/services/format_gems_without_envs.rb +1 -1
- data/lib/convenient_service/examples/rails/gemfile/services/format_header.rb +1 -1
- data/lib/convenient_service/examples/rails/gemfile/services/merge_sections.rb +3 -3
- data/lib/convenient_service/examples/rails/gemfile/services/parse_content.rb +3 -3
- data/lib/convenient_service/examples/rails/gemfile/services/print_shell_command.rb +12 -5
- data/lib/convenient_service/examples/rails/gemfile/services/read_file_content.rb +3 -3
- data/lib/convenient_service/examples/rails/gemfile/services/replace_file_content.rb +3 -3
- data/lib/convenient_service/examples/rails/gemfile/services/{run_shell.rb → run_shell_command.rb} +12 -7
- data/lib/convenient_service/examples/rails/gemfile/services/strip_comments.rb +4 -4
- data/lib/convenient_service/examples/rails/gemfile/services.rb +2 -2
- data/lib/convenient_service/examples/rails/gemfile.rb +1 -1
- data/lib/convenient_service/examples/rails/v1/gemfile/rails_service/config.rb +58 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/rails_service.rb +3 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_file_exists.rb +27 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_file_not_empty.rb +27 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_node_available.rb +28 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_npm_package_available.rb +37 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/assert_valid_ruby_syntax.rb +37 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format.rb +68 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format_body.rb +81 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format_gems_with_envs.rb +84 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format_gems_without_envs.rb +72 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/format_header.rb +70 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/merge_sections.rb +27 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/parse_content.rb +91 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/read_file_content.rb +29 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/replace_file_content.rb +39 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/run_shell_command.rb +38 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services/strip_comments.rb +109 -0
- data/lib/convenient_service/examples/rails/v1/gemfile/services.rb +20 -0
- data/lib/convenient_service/examples/rails/v1/gemfile.rb +27 -0
- data/lib/convenient_service/examples/standard/cowsay/services/build_cloud.rb +1 -1
- data/lib/convenient_service/examples/standard/cowsay/services/build_cow.rb +1 -1
- data/lib/convenient_service/examples/standard/cowsay/services/print.rb +1 -1
- data/lib/convenient_service/examples/standard/cowsay.rb +1 -1
- data/lib/convenient_service/examples/standard/date_time/services/safe_parse.rb +31 -0
- data/lib/convenient_service/examples/standard/date_time/services.rb +3 -0
- data/lib/convenient_service/examples/standard/date_time.rb +23 -0
- data/lib/convenient_service/examples/standard/factorial/services/calculate.rb +55 -0
- data/lib/convenient_service/examples/standard/factorial/services.rb +3 -0
- data/lib/convenient_service/examples/standard/factorial/utils/timeout/with_timeout.rb +50 -0
- data/lib/convenient_service/examples/standard/factorial/utils/timeout.rb +21 -0
- data/lib/convenient_service/examples/standard/factorial/utils.rb +3 -0
- data/lib/convenient_service/examples/standard/factorial.rb +24 -0
- data/lib/convenient_service/examples/standard/gemfile/services/assert_file_exists.rb +4 -4
- data/lib/convenient_service/examples/standard/gemfile/services/assert_file_not_empty.rb +4 -4
- data/lib/convenient_service/examples/standard/gemfile/services/assert_node_available.rb +2 -2
- data/lib/convenient_service/examples/standard/gemfile/services/assert_npm_package_available.rb +4 -4
- data/lib/convenient_service/examples/standard/gemfile/services/assert_valid_ruby_syntax.rb +2 -2
- data/lib/convenient_service/examples/standard/gemfile/services/format.rb +5 -5
- data/lib/convenient_service/examples/standard/gemfile/services/format_body.rb +1 -1
- data/lib/convenient_service/examples/standard/gemfile/services/format_gems_with_envs.rb +1 -1
- data/lib/convenient_service/examples/standard/gemfile/services/format_gems_without_envs.rb +1 -1
- data/lib/convenient_service/examples/standard/gemfile/services/format_header.rb +1 -1
- data/lib/convenient_service/examples/standard/gemfile/services/merge_sections.rb +5 -5
- data/lib/convenient_service/examples/standard/gemfile/services/parse_content.rb +4 -4
- data/lib/convenient_service/examples/standard/gemfile/services/print_shell_command.rb +15 -8
- data/lib/convenient_service/examples/standard/gemfile/services/read_file_content.rb +5 -5
- data/lib/convenient_service/examples/standard/gemfile/services/replace_file_content.rb +4 -4
- data/lib/convenient_service/examples/standard/gemfile/services/{run_shell.rb → run_shell_command.rb} +23 -6
- data/lib/convenient_service/examples/standard/gemfile/services/strip_comments.rb +3 -3
- data/lib/convenient_service/examples/standard/gemfile/services.rb +2 -2
- data/lib/convenient_service/examples/standard/gemfile.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/constants.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/entities/description.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/entities/format.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/entities/id.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/entities/logger.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/entities/request.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/entities/source.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/entities/tag.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/entities/title.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/apply_default_param_values.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/cast_params.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/extract_params_from_body.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/extract_params_from_path.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/filter_out_unpermitted_params.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/log_request_params.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/merge_params.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/prepare.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/utils/array/wrap.rb +2 -2
- data/lib/convenient_service/examples/standard/request_params/utils/array.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/utils/http/request/parse_body.rb +2 -2
- data/lib/convenient_service/examples/standard/request_params/utils/http/request/parse_path.rb +2 -2
- data/lib/convenient_service/examples/standard/request_params/utils/http/request.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/utils/integer/safe_parse.rb +2 -2
- data/lib/convenient_service/examples/standard/request_params/utils/integer.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/utils/json/safe_parse.rb +2 -2
- data/lib/convenient_service/examples/standard/request_params/utils/json.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/utils/object/blank.rb +2 -2
- data/lib/convenient_service/examples/standard/request_params/utils/object/present.rb +2 -2
- data/lib/convenient_service/examples/standard/request_params/utils/object.rb +1 -1
- data/lib/convenient_service/examples/standard/request_params/utils/url/valid.rb +47 -0
- data/lib/convenient_service/examples/standard/request_params/utils/url.rb +21 -0
- data/lib/convenient_service/examples/standard/request_params/utils.rb +1 -0
- data/lib/convenient_service/examples/standard/request_params.rb +1 -1
- data/lib/convenient_service/examples/standard/v1/cowsay/services/build_cloud.rb +44 -0
- data/lib/convenient_service/examples/standard/v1/cowsay/services/build_cow.rb +40 -0
- data/lib/convenient_service/examples/standard/v1/cowsay/services/print.rb +34 -0
- data/lib/convenient_service/examples/standard/v1/cowsay/services.rb +5 -0
- data/lib/convenient_service/examples/standard/v1/cowsay.rb +26 -0
- data/lib/convenient_service/examples/standard/v1/date_time/services/safe_parse.rb +33 -0
- data/lib/convenient_service/examples/standard/v1/date_time/services.rb +3 -0
- data/lib/convenient_service/examples/standard/v1/date_time.rb +25 -0
- data/lib/convenient_service/examples/standard/v1/factorial/services/calculate.rb +51 -0
- data/lib/convenient_service/examples/standard/v1/factorial/services.rb +3 -0
- data/lib/convenient_service/examples/standard/v1/factorial/utils/timeout/with_timeout.rb +52 -0
- data/lib/convenient_service/examples/standard/v1/factorial/utils/timeout.rb +23 -0
- data/lib/convenient_service/examples/standard/v1/factorial/utils.rb +3 -0
- data/lib/convenient_service/examples/standard/v1/factorial.rb +26 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_file_exists.rb +32 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_file_not_empty.rb +32 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_node_available.rb +28 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_npm_package_available.rb +50 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/assert_valid_ruby_syntax.rb +41 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format.rb +82 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format_body.rb +85 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format_gems_with_envs.rb +88 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format_gems_without_envs.rb +76 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/format_header.rb +68 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/merge_sections.rb +54 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/parse_content.rb +103 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/print_shell_command.rb +47 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/read_file_content.rb +41 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/replace_file_content.rb +50 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/run_shell_command.rb +52 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services/strip_comments.rb +113 -0
- data/lib/convenient_service/examples/standard/v1/gemfile/services.rb +20 -0
- data/lib/convenient_service/examples/standard/v1/gemfile.rb +26 -0
- data/lib/convenient_service/examples/standard/v1/request_params/constants.rb +17 -0
- data/lib/convenient_service/examples/standard/v1/request_params/entities/description.rb +42 -0
- data/lib/convenient_service/examples/standard/v1/request_params/entities/format.rb +42 -0
- data/lib/convenient_service/examples/standard/v1/request_params/entities/id.rb +49 -0
- data/lib/convenient_service/examples/standard/v1/request_params/entities/logger.rb +23 -0
- data/lib/convenient_service/examples/standard/v1/request_params/entities/request.rb +25 -0
- data/lib/convenient_service/examples/standard/v1/request_params/entities/source.rb +42 -0
- data/lib/convenient_service/examples/standard/v1/request_params/entities/tag.rb +42 -0
- data/lib/convenient_service/examples/standard/v1/request_params/entities/title.rb +42 -0
- data/lib/convenient_service/examples/standard/v1/request_params/entities.rb +11 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/apply_default_param_values.rb +28 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/cast_params.rb +40 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/extract_params_from_body.rb +72 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/extract_params_from_path.rb +64 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/filter_out_unpermitted_params.rb +28 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/log_request_params.rb +56 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/merge_params.rb +28 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/prepare.rb +67 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/validate_casted_params.rb +96 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services/validate_uncasted_params.rb +74 -0
- data/lib/convenient_service/examples/standard/v1/request_params/services.rb +13 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/array/wrap.rb +48 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/array.rb +23 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/http/request/parse_body.rb +44 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/http/request/parse_path.rb +42 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/http/request.rb +30 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/http.rb +3 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/integer/safe_parse.rb +33 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/integer.rb +27 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/json/safe_parse.rb +42 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/json.rb +23 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/object/blank.rb +36 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/object/present.rb +33 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/object.rb +28 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/url/valid.rb +49 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils/url.rb +23 -0
- data/lib/convenient_service/examples/standard/v1/request_params/utils.rb +8 -0
- data/lib/convenient_service/examples/standard/v1/request_params.rb +50 -0
- data/lib/convenient_service/exception.rb +16 -0
- data/lib/convenient_service/feature.rb +0 -1
- data/lib/convenient_service/logger.rb +69 -24
- data/lib/convenient_service/rspec/helpers/custom/ignoring_exception/exceptions.rb +27 -0
- data/lib/convenient_service/rspec/helpers/custom/ignoring_exception.rb +51 -0
- data/lib/convenient_service/rspec/helpers/custom/stub_service/entities/result_spec.rb +2 -2
- data/lib/convenient_service/rspec/helpers/custom/stub_service/entities/stubbed_service.rb +20 -16
- data/lib/convenient_service/rspec/helpers/custom/wrap_method/entities/wrapped_method.rb +110 -53
- data/lib/convenient_service/rspec/helpers/custom/wrap_method/{errors.rb → exceptions.rb} +2 -2
- data/lib/convenient_service/rspec/helpers/custom/wrap_method.rb +31 -7
- data/lib/convenient_service/rspec/helpers/custom.rb +1 -1
- data/lib/convenient_service/rspec/helpers/{ignoring_error.rb → ignoring_exception.rb} +3 -3
- data/lib/convenient_service/rspec/helpers.rb +2 -2
- data/lib/convenient_service/rspec/matchers/custom/be_descendant_of.rb +1 -1
- data/lib/convenient_service/rspec/matchers/custom/cache_its_value.rb +20 -0
- data/lib/convenient_service/rspec/matchers/custom/call_chain_next.rb +103 -2
- data/lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher/entities/chainings/sub_matchers/return_its_value.rb +3 -0
- data/lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher/entities/chainings/sub_matchers/with_concrete_arguments.rb +1 -1
- data/lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher/entities/chainings_collection/{errors.rb → exceptions.rb} +4 -4
- data/lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher/entities/chainings_collection.rb +11 -11
- data/lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher.rb +5 -5
- data/lib/convenient_service/rspec/matchers/custom/delegate_to.rb +13 -3
- data/lib/convenient_service/rspec/matchers/custom/export.rb +9 -9
- data/lib/convenient_service/rspec/matchers/custom/have_abstract_method.rb +1 -1
- data/lib/convenient_service/rspec/matchers/custom/have_alias_method.rb +3 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/constants.rb +9 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/chain.rb +226 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_expected_code_part.rb +61 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_expected_data_part.rb +61 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_expected_message_part.rb +61 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_expected_parts.rb +121 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_expected_service_part.rb +61 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_expected_status_part.rb +68 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_expected_step_part.rb +61 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_got_parts.rb +98 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_got_service_part.rb +68 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands/generate_got_step_part.rb +68 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base/commands.rb +13 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/base.rb +207 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb +129 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/error/commands.rb +3 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/error.rb +34 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/failure/commands/generate_got_jsend_attributes_part.rb +129 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/failure/commands.rb +3 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/failure.rb +34 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/null.rb +147 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/success/commands/generate_got_jsend_attributes_part.rb +129 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/success/commands.rb +3 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers/success.rb +34 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/printers.rb +46 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator/commands/validate_result.rb +121 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator/commands/validate_result_code.rb +97 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator/commands/validate_result_data.rb +97 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator/commands/validate_result_message.rb +97 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator/commands/validate_result_service.rb +81 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator/commands/validate_result_status.rb +92 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator/commands/validate_result_step.rb +127 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator/commands/validate_result_type.rb +89 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator/commands.rb +10 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities/validator.rb +123 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/entities.rb +5 -0
- data/lib/convenient_service/rspec/matchers/custom/results/base/{errors.rb → exceptions.rb} +8 -2
- data/lib/convenient_service/rspec/matchers/custom/results/base.rb +112 -149
- data/lib/convenient_service/rspec/matchers/custom/results/be_error.rb +6 -1
- data/lib/convenient_service/rspec/matchers/custom/results/be_failure.rb +6 -1
- data/lib/convenient_service/rspec/matchers/custom/results/be_not_error.rb +7 -2
- data/lib/convenient_service/rspec/matchers/custom/results/be_not_failure.rb +7 -2
- data/lib/convenient_service/rspec/matchers/custom/results/be_not_success.rb +7 -2
- data/lib/convenient_service/rspec/matchers/custom/results/be_success.rb +6 -1
- data/lib/convenient_service/rspec/matchers/results/be_error.rb +3 -0
- data/lib/convenient_service/rspec/matchers/results/be_failure.rb +3 -0
- data/lib/convenient_service/rspec/matchers/results/be_not_error.rb +3 -0
- data/lib/convenient_service/rspec/matchers/results/be_not_failure.rb +3 -0
- data/lib/convenient_service/rspec/matchers/results/be_not_success.rb +3 -0
- data/lib/convenient_service/rspec/matchers/results/be_result.rb +31 -0
- data/lib/convenient_service/rspec/matchers/results/be_success.rb +3 -0
- data/lib/convenient_service/rspec/matchers/results.rb +4 -0
- data/lib/convenient_service/service/plugins/can_have_fallbacks/concern.rb +105 -0
- data/lib/convenient_service/service/plugins/can_have_fallbacks/exceptions.rb +36 -0
- data/lib/convenient_service/service/plugins/can_have_fallbacks/middleware.rb +36 -0
- data/lib/convenient_service/service/plugins/can_have_fallbacks.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_method_steps/middleware.rb +5 -24
- data/lib/convenient_service/service/plugins/can_have_steps/concern.rb +3 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb +5 -5
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_factory.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/define_method_in_container.rb +2 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/concern/instance_methods.rb +96 -26
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/alias.rb +2 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb +49 -7
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/proc.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/raw.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/reassignment.rb +2 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/usual.rb +2 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb +27 -4
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/input.rb +2 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/output.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/factories/hash/base.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb +31 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/name.rb +31 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method/{errors.rb → exceptions.rb} +81 -15
- data/lib/convenient_service/service/plugins/can_have_steps/entities/method.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/class_methods.rb +46 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/service/concern/instance_methods.rb +64 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/service/concern.rb +28 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/service.rb +7 -30
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb +39 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/extract_params.rb +2 -4
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/concern/instance_methods.rb +229 -64
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/{errors.rb → exceptions.rb} +3 -3
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_completed/concern.rb +44 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_completed.rb +3 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_executed/middleware.rb +36 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_executed.rb +3 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_printed/middleware.rb +32 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/can_be_printed.rb +3 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step/concern.rb +37 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_method_step.rb +6 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/can_be_executed/exceptions.rb +38 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/can_be_executed/middleware.rb +72 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/can_be_executed.rb +4 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step/concern.rb +30 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_be_result_step.rb +5 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/concern.rb +97 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/middleware.rb +74 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks/result.rb +3 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_fallbacks.rb +4 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_parent_result/middleware.rb +4 -2
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_awesome_print_inspect/concern.rb +45 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_awesome_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_inspect/concern.rb +5 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins.rb +4 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/structs/params.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step.rb +1 -1
- data/lib/convenient_service/service/plugins/can_have_steps/middleware.rb +38 -9
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands/fetch_all_services_stubbed_results_cache.rb +30 -0
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands/fetch_service_stubbed_results_cache.rb +43 -0
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands/get_service_stubbed_result.rb +58 -0
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands/set_service_stubbed_result.rb +66 -0
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/commands.rb +6 -0
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/concern.rb +46 -0
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/container.rb +17 -0
- data/lib/convenient_service/service/plugins/can_have_stubbed_results/middleware.rb +65 -0
- data/lib/convenient_service/service/plugins/can_have_stubbed_results.rb +6 -0
- data/lib/convenient_service/service/plugins/can_recalculate_result/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/collects_services_in_exception/commands/extract_service_details.rb +64 -0
- data/lib/convenient_service/service/plugins/collects_services_in_exception/commands.rb +3 -0
- data/lib/convenient_service/service/plugins/collects_services_in_exception/constants.rb +16 -0
- data/lib/convenient_service/service/plugins/collects_services_in_exception/middleware.rb +50 -0
- data/lib/convenient_service/service/plugins/collects_services_in_exception.rb +5 -0
- data/lib/convenient_service/service/plugins/counts_stubbed_results_invocations/middleware.rb +24 -0
- data/lib/convenient_service/service/plugins/counts_stubbed_results_invocations.rb +3 -0
- data/lib/convenient_service/service/plugins/has_awesome_print_inspect/concern.rb +39 -0
- data/lib/convenient_service/service/plugins/has_awesome_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_inspect/concern.rb +8 -1
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/commands/create_result_class.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/commands/is_result.rb +34 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/commands.rb +1 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/concern/class_methods.rb +20 -24
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/concern/instance_methods.rb +4 -12
- data/lib/convenient_service/service/plugins/has_j_send_result/concern.rb +22 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/constants.rb +5 -5
- data/lib/convenient_service/service/plugins/has_j_send_result/container.rb +29 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/aliases.rb +7 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_own_result/concern.rb +142 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_own_result.rb +3 -0
- data/lib/convenient_service/service/plugins/{has_result/entities/result/plugins/has_inspect → has_j_send_result/entities/result/plugins/can_be_stubbed_result}/concern.rb +5 -6
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_be_stubbed_result.rb +3 -0
- data/lib/convenient_service/service/plugins/{has_result/entities/result/plugins/has_step → has_j_send_result/entities/result/plugins/can_have_checked_status}/concern.rb +7 -4
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_checked_status/middleware.rb +43 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_checked_status.rb +4 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_fallbacks/concern.rb +44 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_fallbacks.rb +3 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/can_have_parent_result/concern.rb +8 -5
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/can_have_parent_result/constants.rb +1 -1
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/can_have_parent_result.rb +0 -2
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_step/concern.rb +30 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/can_have_step.rb +3 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/can_recalculate_result/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_awesome_print_inspect/concern.rb +41 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_awesome_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_inspect/concern.rb +38 -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 +99 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/commands/create_code_class.rb +1 -1
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/commands/create_data_class.rb +1 -1
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/commands/create_message_class.rb +1 -1
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/commands/create_status_class.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/concern/class_methods.rb +125 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/concern/instance_methods.rb +58 -14
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/concern.rb +1 -1
- 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 +49 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/commands.rb +3 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/code/concern/class_methods.rb +14 -2
- 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 +123 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/code/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/aliases.rb +7 -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 +46 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/has_awesome_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/plugins/has_inspect/concern.rb +38 -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.rb +3 -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_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/code.rb +3 -1
- 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 +49 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/commands.rb +3 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/data/concern/class_methods.rb +14 -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 +190 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/data/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/aliases.rb +7 -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 +46 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_awesome_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_inspect/commands/generate_inspect_output.rb +77 -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/commands.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins/has_inspect/concern.rb +41 -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.rb +4 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/plugins.rb +5 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/data.rb +3 -1
- 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 +49 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/commands.rb +3 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/message/concern/class_methods.rb +14 -2
- 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 +123 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/message/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/aliases.rb +7 -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 +46 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/has_awesome_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins/has_inspect/concern.rb +38 -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.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/plugins.rb +5 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/message.rb +3 -1
- 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 +49 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/commands.rb +3 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/status/concern/class_methods.rb +14 -2
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/status/concern/instance_methods.rb +31 -6
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/status/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/aliases.rb +7 -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 +46 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/has_awesome_print_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/has_inspect/concern.rb +38 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins/has_inspect.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/entities/status/plugins.rb +5 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities/status.rb +3 -1
- data/lib/convenient_service/service/plugins/{has_result/entities/result/plugins/has_j_send_status_and_attributes/errors.rb → has_j_send_result/entities/result/plugins/has_j_send_status_and_attributes/exceptions.rb} +3 -3
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/middleware.rb +5 -3
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/structs/j_send_attributes.rb +2 -2
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_stubbed_result_invocations_counter/concern.rb +30 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_stubbed_result_invocations_counter/middleware.rb +38 -0
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/has_stubbed_result_invocations_counter.rb +4 -0
- data/lib/convenient_service/service/plugins/{has_result/entities/result/plugins/raises_on_not_checked_result_status/errors.rb → has_j_send_result/entities/result/plugins/raises_on_not_checked_result_status/exceptions.rb} +3 -3
- data/lib/convenient_service/service/plugins/has_j_send_result/entities/result/plugins/raises_on_not_checked_result_status/middleware.rb +47 -0
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/raises_on_not_checked_result_status.rb +1 -1
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins.rb +6 -3
- data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result/exceptions.rb +21 -0
- data/lib/convenient_service/service/plugins/has_j_send_result.rb +8 -0
- data/lib/convenient_service/service/plugins/{has_result_params_validations → has_j_send_result_params_validations}/using_active_model_validations/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_active_model_validations/middleware.rb +48 -0
- data/lib/convenient_service/service/plugins/{has_result_params_validations → has_j_send_result_params_validations}/using_dry_validation/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result_params_validations/using_dry_validation/middleware.rb +73 -0
- data/lib/convenient_service/service/plugins/{has_result_short_syntax → has_j_send_result_short_syntax}/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/exceptions.rb +87 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/error/middleware.rb +56 -0
- data/lib/convenient_service/service/plugins/{has_result_short_syntax → has_j_send_result_short_syntax}/error.rb +1 -2
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure/exceptions.rb +90 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure/middleware.rb +56 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/failure.rb +4 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success/commands/refute_kwargs_contain_j_send_and_extra_keys.rb +67 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success/commands.rb +3 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success/exceptions.rb +41 -0
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax/success/middleware.rb +27 -0
- data/lib/convenient_service/service/plugins/{has_result_short_syntax → has_j_send_result_short_syntax}/success.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result_short_syntax.rb +6 -0
- data/lib/convenient_service/service/plugins/{has_result_status_check_short_syntax → has_j_send_result_status_check_short_syntax}/concern.rb +1 -1
- data/lib/convenient_service/service/plugins/has_j_send_result_status_check_short_syntax.rb +3 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/concern.rb +24 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_lines.rb +94 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_method_step_lines.rb +115 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_result_lines.rb +105 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_lines.rb +88 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands/generate_service_step_lines.rb +127 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code/commands.rb +7 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/code.rb +90 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/settings.rb +144 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities/template.rb +85 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/entities.rb +5 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart/templates/flowchart.html.erb +95 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities/flowchart.rb +108 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart/entities.rb +3 -0
- data/lib/convenient_service/service/plugins/has_mermaid_flowchart.rb +4 -0
- data/lib/convenient_service/service/plugins/has_result/concern.rb +17 -6
- data/lib/convenient_service/service/plugins/has_result/exceptions.rb +21 -0
- data/lib/convenient_service/service/plugins/has_result.rb +1 -5
- data/lib/convenient_service/service/plugins/raises_on_double_result/{errors.rb → exceptions.rb} +2 -2
- data/lib/convenient_service/service/plugins/raises_on_double_result/middleware.rb +11 -9
- data/lib/convenient_service/service/plugins/raises_on_double_result.rb +1 -1
- data/lib/convenient_service/service/plugins/raises_on_not_result_return_value/exceptions.rb +24 -0
- data/lib/convenient_service/service/plugins/raises_on_not_result_return_value/middleware.rb +25 -0
- data/lib/convenient_service/service/plugins/raises_on_not_result_return_value.rb +4 -0
- data/lib/convenient_service/service/plugins/rescues_result_unhandled_exceptions/middleware.rb +49 -7
- data/lib/convenient_service/service/plugins/sets_parent_to_foreign_result/middleware.rb +56 -0
- data/lib/convenient_service/service/plugins/sets_parent_to_foreign_result.rb +3 -0
- data/lib/convenient_service/service/plugins/wraps_result_in_db_transaction/middleware.rb +3 -1
- data/lib/convenient_service/service/plugins.rb +14 -6
- data/lib/convenient_service/support/abstract_method/{errors.rb → exceptions.rb} +2 -2
- data/lib/convenient_service/support/abstract_method.rb +2 -2
- data/lib/convenient_service/support/cache/constants.rb +36 -0
- data/lib/convenient_service/support/cache/entities/caches/array/entities/pair.rb +52 -0
- data/lib/convenient_service/support/cache/entities/caches/array/entities.rb +3 -0
- data/lib/convenient_service/support/cache/entities/caches/array.rb +135 -0
- data/lib/convenient_service/support/cache/entities/caches/base.rb +112 -0
- data/lib/convenient_service/support/cache/entities/caches/hash.rb +113 -0
- data/lib/convenient_service/support/cache/entities/caches/thread_safe_array.rb +89 -0
- data/lib/convenient_service/support/cache/entities/caches.rb +8 -0
- data/lib/convenient_service/support/cache/entities/key.rb +102 -0
- data/lib/convenient_service/support/cache/entities.rb +4 -0
- data/lib/convenient_service/support/cache/exceptions.rb +34 -0
- data/lib/convenient_service/support/cache.rb +16 -143
- data/lib/convenient_service/support/castable/{errors.rb → exceptions.rb} +3 -3
- data/lib/convenient_service/support/castable.rb +2 -2
- data/lib/convenient_service/support/command.rb +42 -3
- data/lib/convenient_service/support/copyable.rb +7 -23
- data/lib/convenient_service/support/counter.rb +7 -8
- data/lib/convenient_service/support/dependency_container/commands/assert_valid_container.rb +2 -2
- data/lib/convenient_service/support/dependency_container/commands/assert_valid_method.rb +8 -8
- data/lib/convenient_service/support/dependency_container/commands/assert_valid_scope.rb +2 -2
- data/lib/convenient_service/support/dependency_container/entities/method.rb +49 -12
- data/lib/convenient_service/support/dependency_container/entities/method_collection.rb +3 -3
- data/lib/convenient_service/support/dependency_container/{errors.rb → exceptions.rb} +5 -5
- data/lib/convenient_service/support/dependency_container/export.rb +4 -4
- data/lib/convenient_service/support/dependency_container/import.rb +7 -4
- data/lib/convenient_service/support/dependency_container.rb +1 -1
- data/lib/convenient_service/support/finite_loop.rb +8 -8
- data/lib/convenient_service/support/gems/logger.rb +37 -0
- data/lib/convenient_service/support/gems/paint.rb +37 -0
- data/lib/convenient_service/support/gems.rb +2 -0
- data/lib/convenient_service/support/safe_method.rb +1 -1
- data/lib/convenient_service/support/thread_safe_counter.rb +9 -0
- data/lib/convenient_service/support.rb +1 -0
- data/lib/convenient_service/utils/array/contain_exactly.rb +1 -5
- data/lib/convenient_service/utils/array/{errors.rb → exceptions.rb} +2 -2
- data/lib/convenient_service/utils/array/limited_push.rb +54 -0
- data/lib/convenient_service/utils/array/merge.rb +3 -3
- data/lib/convenient_service/utils/array.rb +6 -1
- data/lib/convenient_service/utils/class/display_name.rb +49 -0
- data/lib/convenient_service/utils/class.rb +20 -0
- data/lib/convenient_service/utils/hash/assert_valid_keys.rb +50 -0
- data/lib/convenient_service/utils/hash/except.rb +1 -1
- data/lib/convenient_service/utils/hash/triple_equality_compare.rb +51 -0
- data/lib/convenient_service/utils/hash.rb +10 -0
- data/lib/convenient_service/utils/method/defined.rb +50 -6
- data/lib/convenient_service/utils/module/class_method_defined.rb +22 -2
- data/lib/convenient_service/utils/module/get_own_instance_method.rb +3 -0
- data/lib/convenient_service/utils/module/instance_method_defined.rb +22 -2
- data/lib/convenient_service/utils/object/clamp_class.rb +77 -0
- data/lib/convenient_service/utils/object/duck_class.rb +112 -0
- data/lib/convenient_service/utils/object/memoize_including_falsy_values.rb +1 -1
- data/lib/convenient_service/utils/object.rb +19 -10
- data/lib/convenient_service/utils/string/truncate.rb +69 -0
- data/lib/convenient_service/utils/string.rb +5 -0
- data/lib/convenient_service/utils.rb +21 -0
- data/lib/convenient_service/version.rb +1 -1
- data/lib/convenient_service.rb +14 -7
- data/minitest.rb +30 -0
- metadata +682 -153
- data/lib/convenient_service/common/plugins/caches_constructor_params/concern.rb +0 -22
- data/lib/convenient_service/common/plugins/caches_constructor_params/entities/constructor_params.rb +0 -34
- data/lib/convenient_service/common/plugins/caches_constructor_params/entities.rb +0 -3
- data/lib/convenient_service/common/plugins/caches_constructor_params/middleware.rb +0 -17
- data/lib/convenient_service/common/plugins/caches_constructor_params.rb +0 -5
- data/lib/convenient_service/core/class_methods.rb +0 -96
- data/lib/convenient_service/core/entities/classic_middleware.rb +0 -32
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/chain.rb +0 -71
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware.rb +0 -131
- data/lib/convenient_service/core/entities/config/entities/method_middlewares/entities/middleware_creator.rb +0 -62
- data/lib/convenient_service/core/instance_methods.rb +0 -56
- data/lib/convenient_service/error.rb +0 -16
- data/lib/convenient_service/rspec/helpers/custom/ignoring_error.rb +0 -32
- data/lib/convenient_service/rspec/matchers/custom/results/base/commands/find_result_method_step.rb +0 -74
- data/lib/convenient_service/rspec/matchers/custom/results/base/commands/find_result_result_method_step.rb +0 -66
- data/lib/convenient_service/rspec/matchers/custom/results/base/commands/find_result_service_step.rb +0 -48
- data/lib/convenient_service/rspec/matchers/custom/results/base/commands/generate_expected_step_part.rb +0 -42
- data/lib/convenient_service/rspec/matchers/custom/results/base/commands/generate_got_step_part.rb +0 -42
- data/lib/convenient_service/rspec/matchers/custom/results/base/commands/match_result_step.rb +0 -89
- data/lib/convenient_service/rspec/matchers/custom/results/base/commands.rb +0 -10
- data/lib/convenient_service/service/plugins/can_have_result_step/middleware.rb +0 -43
- data/lib/convenient_service/service/plugins/can_have_result_step.rb +0 -3
- data/lib/convenient_service/service/plugins/can_have_steps/entities/service/class_methods.rb +0 -32
- data/lib/convenient_service/service/plugins/can_have_stubbed_result/concern.rb +0 -59
- data/lib/convenient_service/service/plugins/can_have_stubbed_result/middleware.rb +0 -36
- data/lib/convenient_service/service/plugins/can_have_stubbed_result.rb +0 -4
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/aliases.rb +0 -7
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/can_have_parent_result/initialize/middleware.rb +0 -27
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/can_have_parent_result/initialize.rb +0 -3
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/can_have_parent_result/to_kwargs/middleware.rb +0 -25
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/can_have_parent_result/to_kwargs.rb +0 -3
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_j_send_status_and_attributes/commands/cast_j_send_attributes.rb +0 -37
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_j_send_status_and_attributes/concern/class_methods.rb +0 -69
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_j_send_status_and_attributes/entities/code/concern/instance_methods.rb +0 -65
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_j_send_status_and_attributes/entities/data/concern/instance_methods.rb +0 -94
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_j_send_status_and_attributes/entities/message/concern/instance_methods.rb +0 -58
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_result_short_syntax/concern.rb +0 -62
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_result_short_syntax.rb +0 -3
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/initialize/middleware.rb +0 -27
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/initialize.rb +0 -3
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/to_kwargs/middleware.rb +0 -25
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step/to_kwargs.rb +0 -3
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/has_step.rb +0 -5
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/marks_result_status_as_checked/middleware.rb +0 -25
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/marks_result_status_as_checked.rb +0 -3
- data/lib/convenient_service/service/plugins/has_result/entities/result/plugins/raises_on_not_checked_result_status/middleware.rb +0 -33
- data/lib/convenient_service/service/plugins/has_result/errors.rb +0 -34
- data/lib/convenient_service/service/plugins/has_result/middleware.rb +0 -19
- data/lib/convenient_service/service/plugins/has_result_params_validations/using_active_model_validations/middleware.rb +0 -35
- data/lib/convenient_service/service/plugins/has_result_params_validations/using_dry_validation/middleware.rb +0 -49
- data/lib/convenient_service/service/plugins/has_result_short_syntax/error/commands/assert_args_count_lower_than_three.rb +0 -25
- data/lib/convenient_service/service/plugins/has_result_short_syntax/error/commands/assert_either_args_or_kwargs_are_passed.rb +0 -26
- data/lib/convenient_service/service/plugins/has_result_short_syntax/error/commands.rb +0 -4
- data/lib/convenient_service/service/plugins/has_result_short_syntax/error/errors.rb +0 -46
- data/lib/convenient_service/service/plugins/has_result_short_syntax/error/middleware.rb +0 -27
- data/lib/convenient_service/service/plugins/has_result_short_syntax/failure/commands/refute_kwargs_contain_data_and_extra_keys.rb +0 -29
- data/lib/convenient_service/service/plugins/has_result_short_syntax/failure/commands.rb +0 -3
- data/lib/convenient_service/service/plugins/has_result_short_syntax/failure/errors.rb +0 -28
- data/lib/convenient_service/service/plugins/has_result_short_syntax/failure/middleware.rb +0 -19
- data/lib/convenient_service/service/plugins/has_result_short_syntax/failure.rb +0 -5
- data/lib/convenient_service/service/plugins/has_result_short_syntax/success/commands/refute_kwargs_contain_data_and_extra_keys.rb +0 -29
- data/lib/convenient_service/service/plugins/has_result_short_syntax/success/commands.rb +0 -3
- data/lib/convenient_service/service/plugins/has_result_short_syntax/success/errors.rb +0 -28
- data/lib/convenient_service/service/plugins/has_result_short_syntax/success/middleware.rb +0 -19
- data/lib/convenient_service/service/plugins/has_result_short_syntax.rb +0 -6
- data/lib/convenient_service/service/plugins/has_result_status_check_short_syntax.rb +0 -3
- data/lib/convenient_service/services/run_method_in_organizer.rb +0 -28
- data/lib/convenient_service/services/run_own_method_in_organizer.rb +0 -64
- data/lib/convenient_service/support/cache/key.rb +0 -100
- data/lib/convenient_service/utils/object/resolve_class.rb +0 -56
- /data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/can_recalculate_result.rb +0 -0
- /data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_inspect.rb +0 -0
- /data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/commands.rb +0 -0
- /data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/entities.rb +0 -0
- /data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities/result/plugins/has_j_send_status_and_attributes/structs.rb +0 -0
- /data/lib/convenient_service/service/plugins/{has_result → has_j_send_result}/entities.rb +0 -0
- /data/lib/convenient_service/service/plugins/{has_result_params_validations → has_j_send_result_params_validations}/using_active_model_validations.rb +0 -0
- /data/lib/convenient_service/service/plugins/{has_result_params_validations → has_j_send_result_params_validations}/using_dry_validation.rb +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e849e1385e9637d36289bfeb4e78eccddd53b22f5f9e828c5a35c8c90967954d
|
4
|
+
data.tar.gz: 9538a0fb396cbe7a9f04879845a25287145021b4bfa17ea78eaf4e54643552d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4cc32889e3c0958bc5acebc744a01b9fc80c0fa2c7a7c3a609ffd4a9d8254822d0ad4a8c1d75fd2ce39472b2ededc2ef69b3d899edcda406f1eff99b06df2b8
|
7
|
+
data.tar.gz: 30bf372859ef693d1d67058a886065eb7db3b3dddb530cc585e471417a94ccedfac1c86d17df56881c3f5849b04d6a0a64b752746209afa5d860f9f35f3b3689
|
data/.dev/.tmuxinator.yml
CHANGED
data/.github/workflows/ci.yml
CHANGED
data/.gitignore
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
/.bundle/
|
2
2
|
/.yardoc
|
3
3
|
/_yardoc/
|
4
|
+
|
5
|
+
##
|
6
|
+
# NOTE: Ignores `coverage` content, but NOT the folder.
|
7
|
+
#
|
4
8
|
/coverage/*
|
5
9
|
!/coverage/.gitkeep
|
10
|
+
|
6
11
|
/doc/
|
7
12
|
/pkg/
|
8
13
|
/spec/reports/
|
@@ -25,6 +30,13 @@
|
|
25
30
|
#
|
26
31
|
/Gemfile*
|
27
32
|
|
33
|
+
##
|
34
|
+
# NOTE: Ignores `gemfiles` content, but NOT the folder.
|
35
|
+
# NOTE: `gemfiles` folder is generated by Appraisal.
|
36
|
+
#
|
37
|
+
/gemfiles/*
|
38
|
+
!/gemfiles/.gitkeep
|
39
|
+
|
28
40
|
##
|
29
41
|
# NOTE: Ignores `.DS_Store` in any nesting.
|
30
42
|
#
|
@@ -32,3 +44,9 @@
|
|
32
44
|
|
33
45
|
# Ignore docs
|
34
46
|
/docs/*
|
47
|
+
|
48
|
+
##
|
49
|
+
# NOTE: Ignores `flowchart.html`, that can be generated by `Service.mermaid_flowchart.save`.
|
50
|
+
# Check `HasMermaidFlowchart` for details.
|
51
|
+
#
|
52
|
+
flowchart.html
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
////
|
3
|
+
// NOTE: `.code-snippets` files support only C-style comments.
|
4
|
+
// NOTE: More information about VS Code Snippets can be found here:
|
5
|
+
// - https://code.visualstudio.com/docs/editor/userdefinedsnippets
|
6
|
+
//
|
7
|
+
"CacheItsValue RSpec module": {
|
8
|
+
"scope": "ruby",
|
9
|
+
"prefix": "CacheItsValue",
|
10
|
+
"body": [
|
11
|
+
"include ConvenientService::RSpec::Matchers::CacheItsValue",
|
12
|
+
],
|
13
|
+
"description": "`CacheItsValue` - a module that allows to use custom RSpec matcher `cache_its_value` to verify caching"
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,15 @@
|
|
1
|
+
{
|
2
|
+
////
|
3
|
+
// NOTE: `.code-snippets` files support only C-style comments.
|
4
|
+
// NOTE: More information about VS Code Snippets can be found here:
|
5
|
+
// - https://code.visualstudio.com/docs/editor/userdefinedsnippets
|
6
|
+
//
|
7
|
+
"DelegateTo RSpec module": {
|
8
|
+
"scope": "ruby",
|
9
|
+
"prefix": "DelegateTo",
|
10
|
+
"body": [
|
11
|
+
"include ConvenientService::RSpec::Matchers::DelegateTo",
|
12
|
+
],
|
13
|
+
"description": "`DelegateTo` - a module that allows to use custom RSpec matcher `delegate_to` to verify delegations"
|
14
|
+
}
|
15
|
+
}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
{
|
2
|
+
////
|
3
|
+
// NOTE: `.code-snippets` files support only C-style comments.
|
4
|
+
// NOTE: More information about VS Code Snippets can be found here:
|
5
|
+
// - https://code.visualstudio.com/docs/editor/userdefinedsnippets
|
6
|
+
//
|
7
|
+
"cache_its_value RSpec matcher": {
|
8
|
+
"scope": "ruby",
|
9
|
+
"prefix": "cache_its_value",
|
10
|
+
"body": [
|
11
|
+
"specify do",
|
12
|
+
" expect { $1 }.to cache_its_value",
|
13
|
+
"end"
|
14
|
+
],
|
15
|
+
"description": "`cache_its_value` - a custom RSpec matcher to verify caching"
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,41 @@
|
|
1
|
+
{
|
2
|
+
////
|
3
|
+
// NOTE: `.code-snippets` files support only C-style comments.
|
4
|
+
// NOTE: More information about VS Code Snippets can be found here:
|
5
|
+
// - https://code.visualstudio.com/docs/editor/userdefinedsnippets
|
6
|
+
//
|
7
|
+
"comparison RSpec example group": {
|
8
|
+
"scope": "ruby",
|
9
|
+
"prefix": "comparison",
|
10
|
+
"body": [
|
11
|
+
"example_group \"comparison\" do",
|
12
|
+
" describe \"#==\" do",
|
13
|
+
" context \"when `other` have different class\" do",
|
14
|
+
" let(:other) { 42 }",
|
15
|
+
"",
|
16
|
+
" it \"returns `nil`\" do",
|
17
|
+
" expect(${1:entity} == other).to be_nil",
|
18
|
+
" end",
|
19
|
+
" end",
|
20
|
+
"",
|
21
|
+
" context \"when `other` have different ${2:attribute}\" do",
|
22
|
+
" let(:other) { described_class.new(${2:attribute}: other_${2:attribute}) }",
|
23
|
+
"",
|
24
|
+
" it \"returns `false`\" do",
|
25
|
+
" expect(${1:entity} == other).to eq(false)",
|
26
|
+
" end",
|
27
|
+
" end",
|
28
|
+
"",
|
29
|
+
" context \"when `other` has same attributes\" do",
|
30
|
+
" let(:other) { described_class.new }",
|
31
|
+
"",
|
32
|
+
" it \"returns `true`\" do",
|
33
|
+
" expect(${1:entity} == other).to eq(true)",
|
34
|
+
" end",
|
35
|
+
" end",
|
36
|
+
" end",
|
37
|
+
"end",
|
38
|
+
],
|
39
|
+
"description": "`comparison` - an example group for RSpec to verify `#==`, `#===`, `#equal?`, `#eql?` methods"
|
40
|
+
}
|
41
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
{
|
2
|
+
////
|
3
|
+
// NOTE: `.code-snippets` files support only C-style comments.
|
4
|
+
// NOTE: More information about VS Code Snippets can be found here:
|
5
|
+
// - https://code.visualstudio.com/docs/editor/userdefinedsnippets
|
6
|
+
//
|
7
|
+
"delegate_to RSpec matcher": {
|
8
|
+
"scope": "ruby",
|
9
|
+
"prefix": "delegate_to",
|
10
|
+
"body": [
|
11
|
+
"specify do",
|
12
|
+
" expect { $1 }",
|
13
|
+
" .to delegate_to($2, $3)",
|
14
|
+
" .with_arguments(${4:*args, **kwargs, &block})",
|
15
|
+
" .and_return_its_value",
|
16
|
+
"end"
|
17
|
+
],
|
18
|
+
"description": "`delegate_to` - a custom RSpec matcher to verify delegations"
|
19
|
+
}
|
20
|
+
}
|
data/Appraisals
CHANGED
@@ -4,8 +4,8 @@
|
|
4
4
|
# TODO: GitHub wiki for `shouda-matchers`.
|
5
5
|
#
|
6
6
|
# IMPORTANT: `shoulda-matchers` loads active support core extensions.
|
7
|
-
# https://guides.rubyonrails.org/active_support_core_extensions.html
|
8
|
-
# https://apidock.com/rails/v6.1.3.1/Hash/symbolize_keys
|
7
|
+
# - https://guides.rubyonrails.org/active_support_core_extensions.html
|
8
|
+
# - https://apidock.com/rails/v6.1.3.1/Hash/symbolize_keys
|
9
9
|
#
|
10
10
|
# This can lead to the false positive tests. For example:
|
11
11
|
#
|
@@ -27,7 +27,29 @@
|
|
27
27
|
#
|
28
28
|
# super
|
29
29
|
# end
|
30
|
+
##
|
31
|
+
|
32
|
+
##
|
33
|
+
# This wrapper appends Ruby engine and version to the `appraisal_name`.
|
34
|
+
# This way every Appraisal has a dedicated Gemfile for any combination of Ruby and particular `appraisal_name`.
|
35
|
+
# For example: `ruby_2.7_rails_5.2`, `ruby_3.0_rails_6.0`, `jruby_9.4_rails_7.0`, etc.
|
36
|
+
#
|
37
|
+
# @note Check `gemfiles` directory.
|
38
|
+
#
|
39
|
+
# @see https://github.com/thoughtbot/appraisal
|
40
|
+
# @see https://github.com/thoughtbot/appraisal/blob/v2.4.1/lib/appraisal/appraisal_file.rb#L30
|
30
41
|
#
|
42
|
+
# @param appraisal_name [String]
|
43
|
+
# @param block [Proc]
|
44
|
+
# @return [void]
|
45
|
+
#
|
46
|
+
# @internal
|
47
|
+
# Taskfile uses a combination of Ruby engine, Ruby version and `appraisal_name` as `{{.APPRAISAL_NAME}}`.
|
48
|
+
#
|
49
|
+
def appraise(appraisal_name, &block)
|
50
|
+
super([::RUBY_ENGINE, ::RUBY_VERSION, appraisal_name].join("_"), &block)
|
51
|
+
end
|
52
|
+
|
31
53
|
appraise "rails_5.2" do
|
32
54
|
gem "activemodel", "~> 5.2.0"
|
33
55
|
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,188 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.14.0](https://github.com/marian13/convenient_service/compare/v0.13.0...v0.14.0) (2023-09-20)
|
4
|
+
|
5
|
+
|
6
|
+
### ⚠ BREAKING CHANGES
|
7
|
+
|
8
|
+
* **has_j_send_result_params_validations:** return errors on validation issues
|
9
|
+
* **has_j_send_result_params_validations:** return errors on validation issues
|
10
|
+
* **can_have_fallbacks:** fallback only failures by default
|
11
|
+
* **be_result:** update got part
|
12
|
+
* **has_j_send_result_short:** update constants
|
13
|
+
* **fallbacks:** create separate fallbacks failures and errors, run only error fallback when true
|
14
|
+
|
15
|
+
### Features
|
16
|
+
|
17
|
+
* **be_result:** introduce be_result ([f8fc85b](https://github.com/marian13/convenient_service/commit/f8fc85bb9141851c130a040731e4bb99114050d2))
|
18
|
+
* **can_have_fallbacks:** allow to pass fallback_true_status ([584dabe](https://github.com/marian13/convenient_service/commit/584dabe83f87c2d794ea779a3e5c7f0b0ea97f65))
|
19
|
+
* **can_have_fallbacks:** fallback only failures by default ([58650a7](https://github.com/marian13/convenient_service/commit/58650a736be0a4daaf283c6eef9e0867a34d44d4))
|
20
|
+
* **configs:** create copy of v1 ([bb039c8](https://github.com/marian13/convenient_service/commit/bb039c83f53607c4cf59f634c662fc604f13ff7b))
|
21
|
+
* **examples:** create copy of v1 ([70bd3fe](https://github.com/marian13/convenient_service/commit/70bd3febc4a88ebe7e7c3d33c7dd2e1c03331ccb))
|
22
|
+
* **has_awesome_print_inspect:** add message and data keys ([14e0a3f](https://github.com/marian13/convenient_service/commit/14e0a3f088edf8ea8565ba7ff06ca0212c4116e9))
|
23
|
+
* **has_inspect:** add message and data keys ([8f30b7a](https://github.com/marian13/convenient_service/commit/8f30b7a905b8a953d514061ed381a404b65c81af))
|
24
|
+
* **has_j_send_result_params_validations:** return errors on validation issues ([e25e1a4](https://github.com/marian13/convenient_service/commit/e25e1a4f94cc309035533220dbcfbfccbb94cc94))
|
25
|
+
* **has_j_send_result_params_validations:** return errors on validation issues ([09a9b94](https://github.com/marian13/convenient_service/commit/09a9b948070f3132818d1da9ef009d1d15655ab9))
|
26
|
+
* **has_j_send_result_short_syntax:** allow to pass data, message, code to all results ([aabf2f9](https://github.com/marian13/convenient_service/commit/aabf2f98d32407616159cbcd2bcc6349a9a3b98f))
|
27
|
+
* **has_j_send_result_short_syntax:** allow to pass message and code to short form of error ([1af3153](https://github.com/marian13/convenient_service/commit/1af3153aa1bf385eadcf73f30e13a3cc5126d793))
|
28
|
+
* **has_j_send_result_short_syntax:** allow to pass message and code to short form of failure ([7390630](https://github.com/marian13/convenient_service/commit/73906300f94ec6488f312d4a611f433d8c850691))
|
29
|
+
* **has_j_send_result_short_syntax:** allow to pass message and code to short form of success ([fdf2ab2](https://github.com/marian13/convenient_service/commit/fdf2ab23ade8941ed2c6dd10d17769eaebecc855))
|
30
|
+
* **has_j_send_status_and_attributes:** introduce Data#keys ([27f43e1](https://github.com/marian13/convenient_service/commit/27f43e1594988cc523e9bb3608e90a40e4c2b442))
|
31
|
+
* **has_j_send_status_and_attributes:** introduce Message#empty? ([6c1452d](https://github.com/marian13/convenient_service/commit/6c1452d99d71be45bb6cb95159a2fd32ffca668e))
|
32
|
+
* **rescues_result_unhandled_exceptions:** allow to pass status ([2ef85f2](https://github.com/marian13/convenient_service/commit/2ef85f2970dd56802bd22f467529da6242faf967))
|
33
|
+
* **using_active_model_validations:** allow to pass status to middleware ([bc5bb70](https://github.com/marian13/convenient_service/commit/bc5bb7027fe94724a8d28a3770b68c731b37ff10))
|
34
|
+
* **using_dry_validation:** allow to pass status to middleware ([3a5ef12](https://github.com/marian13/convenient_service/commit/3a5ef120219a8a94b1d15bb7226f265db967ce9e))
|
35
|
+
|
36
|
+
|
37
|
+
### Miscellaneous Chores
|
38
|
+
|
39
|
+
* release 0.14.0 ([c7cef07](https://github.com/marian13/convenient_service/commit/c7cef0721d8360329c19b8ad4d636bcec83805c6))
|
40
|
+
|
41
|
+
|
42
|
+
### Code Refactoring
|
43
|
+
|
44
|
+
* **be_result:** update got part ([428280a](https://github.com/marian13/convenient_service/commit/428280a8eb2aed09f49bd949f84b7e10ef933708))
|
45
|
+
* **fallbacks:** create separate fallbacks failures and errors, run only error fallback when true ([bbab564](https://github.com/marian13/convenient_service/commit/bbab5647d09ecdba9c9727bef3e2dc6b8138710b))
|
46
|
+
* **has_j_send_result_short:** update constants ([2074acd](https://github.com/marian13/convenient_service/commit/2074acd001115dd4c60d432e71a4fef58794c881))
|
47
|
+
|
48
|
+
## 0.13.0 (2023-08-27)
|
49
|
+
|
50
|
+
|
51
|
+
### ⚠ BREAKING CHANGES
|
52
|
+
|
53
|
+
* **has_j_send_result:** rename HasResult to HasJSendResult
|
54
|
+
* **has_result_short_syntax:** allow to pass message to failures
|
55
|
+
* **core:** disallow config commitment by missing private method
|
56
|
+
* **can_have_stubbed_result:** state explicitly cache backend
|
57
|
+
* **has_j_send_status_and_attributes:** use Jsend to JSend
|
58
|
+
|
59
|
+
### Features
|
60
|
+
|
61
|
+
* **alias:** introduce CS alias ([14652d7](https://github.com/marian13/convenient_service/commit/14652d77b6518d1b4ba75fa88eea6aba20ee0e5f))
|
62
|
+
* **array-based-cache:** add array-based cache implementation ([795888a](https://github.com/marian13/convenient_service/commit/795888a15dbd1e488fe824e6bb8094b9997044e3))
|
63
|
+
* **be_result:** add trigger for BE_RESULT ([d7a416e](https://github.com/marian13/convenient_service/commit/d7a416e39377378655740d9997695c0100b60258))
|
64
|
+
* **be_result:** introduce comparing_by ([c304fa7](https://github.com/marian13/convenient_service/commit/c304fa7e4eb15aeae2da075a7947ae835759a605))
|
65
|
+
* **cache:** introduce thread safe array ([b592853](https://github.com/marian13/convenient_service/commit/b5928536a7dc3e804d386c553da5b9b1e3da1291))
|
66
|
+
* **call_chain_next:** introduce with_any_arguments ([17316d1](https://github.com/marian13/convenient_service/commit/17316d1f4d6f172f81cc0752ddfb36b9bb8338da))
|
67
|
+
* **can_be_own_result:** introduce new plugin ([ba7111c](https://github.com/marian13/convenient_service/commit/ba7111c2e01e758affa0e71a4638049fce206243))
|
68
|
+
* **can_be_tried:** inroduce CanBeTried for result ([9e68538](https://github.com/marian13/convenient_service/commit/9e68538df1207b5bd7906203728b3860324c6d6c))
|
69
|
+
* **can_be_tried:** introduce step try option ([9c1f493](https://github.com/marian13/convenient_service/commit/9c1f4932b3bf8986624dde9c40580e76b0a0a7ac))
|
70
|
+
* **can_have_checked_status:** refactor marks_result_status_as_checked to have an ability of a pure status check ([86750dd](https://github.com/marian13/convenient_service/commit/86750dd826ad9b6b8f84e6d26182ac16ec769b8c))
|
71
|
+
* **can_have_steps:** allow to pass extra kwargs to step definition ([bd867e3](https://github.com/marian13/convenient_service/commit/bd867e3d7e1147889dab982e2b7bea49a95a3d90))
|
72
|
+
* **can_have_steps:** introduce Step#resolved_result ([68ee612](https://github.com/marian13/convenient_service/commit/68ee612800e61e09e3fb9e18a418ee09261da0bc))
|
73
|
+
* **can_have_stubbed_results:** use thread safe array backend ([45b9e24](https://github.com/marian13/convenient_service/commit/45b9e249052e154123e1a014a16df0b2b165268b))
|
74
|
+
* **can_have_try_result:** introduce middleware ([da24051](https://github.com/marian13/convenient_service/commit/da24051cd240a4ec90f3a970f9f721ec13160dc8))
|
75
|
+
* **can_have_try_result:** introduce Service.try_result ([92914dc](https://github.com/marian13/convenient_service/commit/92914dc3090774baa455e59709bb79a6b8c8c48a))
|
76
|
+
* **can_have_try_result:** introduce Service#try_result ([521e80f](https://github.com/marian13/convenient_service/commit/521e80f5909bb2c0373a340cb2f4e4c7f3b790c1))
|
77
|
+
* **can_have_try_result:** use in minimal config ([bf1135d](https://github.com/marian13/convenient_service/commit/bf1135df3bb650ee4190cbfba7bc2c52bec21885))
|
78
|
+
* **can_utilize_finite_loop:** introduce new plugin ([b161ecf](https://github.com/marian13/convenient_service/commit/b161ecf062e9ef2484862d00eadf5ed7cab6c628))
|
79
|
+
* **collects_services_in_exception:** add initial version of plugin ([720267a](https://github.com/marian13/convenient_service/commit/720267ab070225892db9743aa379935f16a4b0b5))
|
80
|
+
* **configs:** add ok? and not_ok? aliases for success? and not_success? ([5dfb378](https://github.com/marian13/convenient_service/commit/5dfb378ea905bf0fd12e0a78b812ecc208efdf2a))
|
81
|
+
* **core:** add trigger for RESOLVE_METHOD_MIDDLEWARES_SUPER_METHOD ([d419985](https://github.com/marian13/convenient_service/commit/d419985dca3e348b1ee8607aadfd2ea4a0cc84be))
|
82
|
+
* **core:** commit config from .new ([9e252a0](https://github.com/marian13/convenient_service/commit/9e252a0094e8d55fa5d51c0c33b867f6e16d1882))
|
83
|
+
* **core:** introduce has_committed_config? ([ae01495](https://github.com/marian13/convenient_service/commit/ae01495c5360675a1a7e825e90f1993c38392d70))
|
84
|
+
* **core:** introduce middleware arguments ([5ca7868](https://github.com/marian13/convenient_service/commit/5ca7868181d44f0f1eb1f2958270e4c6bbb76646))
|
85
|
+
* **core:** introduce Middleware.with ([4272262](https://github.com/marian13/convenient_service/commit/427226258cce031679c51a5b4ea900506c995c4a))
|
86
|
+
* **core:** introduce MiddlewareCreator ([d1b6ce8](https://github.com/marian13/convenient_service/commit/d1b6ce89fdc008359f9fd0ed080c3cfb28bd39b7))
|
87
|
+
* **core:** introduce observable middleware ([f767a13](https://github.com/marian13/convenient_service/commit/f767a13272bcdd4dd7171a9d0bdf4bb8d7f425d7))
|
88
|
+
* **core:** introduce observe and use_and_observe ([c19f624](https://github.com/marian13/convenient_service/commit/c19f6246689b3c222d87ff16bba8b65d7b1c04f5))
|
89
|
+
* **core:** MiddlewareCreator#new ([e36cee9](https://github.com/marian13/convenient_service/commit/e36cee97a8cceb70fe7564bde516dc31f4b37157))
|
90
|
+
* **core:** track method_missing commit triggers ([f3a7264](https://github.com/marian13/convenient_service/commit/f3a7264e3ddb67976fbf2e1c875df15f6f133c0b))
|
91
|
+
* **debug:** add Step#output_values without specs ([b7e4712](https://github.com/marian13/convenient_service/commit/b7e47126b22fa93d29198b9e6843a395c4eaad7c))
|
92
|
+
* **delegate_to:** add with_any_arguments ([f296e53](https://github.com/marian13/convenient_service/commit/f296e53f19b57128e45cc25cc10edac010ba671c))
|
93
|
+
* **depencency_container:** introduce entry ([a905b6e](https://github.com/marian13/convenient_service/commit/a905b6e90cf656a409246f17be84d39c3b4f79c6))
|
94
|
+
* **feature:** introduce initial feature ([7413273](https://github.com/marian13/convenient_service/commit/7413273af1d5abad4aee912cc8bffe8f1d6d1d0b))
|
95
|
+
* **has_awesome_print_inspect:** add initial has_awesome_print_inspect for result ([8437efe](https://github.com/marian13/convenient_service/commit/8437efe19601f73b333544de2b9522642b313e1e))
|
96
|
+
* **has_awesome_print_inspect:** add initial has_awesome_print_inspect for service ([0e5d3c0](https://github.com/marian13/convenient_service/commit/0e5d3c0021e05b6bea10817fc27d23628ef00a04))
|
97
|
+
* **has_awesome_print_inspect:** add initial has_awesome_print_inspect for step ([d192327](https://github.com/marian13/convenient_service/commit/d1923276309f044ccb7f6793bc099257aa7970e3))
|
98
|
+
* **has_awesome_print_inspect:** add initial HasAwesomePrintInspect for Data ([b5a9b7b](https://github.com/marian13/convenient_service/commit/b5a9b7b8c67f3ee22ee711d8417959918a942630))
|
99
|
+
* **has_inspect:** show anonymous class ([87cc634](https://github.com/marian13/convenient_service/commit/87cc63469cb8ecaacc4dbab4817bf43e91cb3e86))
|
100
|
+
* **has_inspect:** show anonymous class ([5dc7779](https://github.com/marian13/convenient_service/commit/5dc7779f86431492d6fdbbc2386410c41b5f9164))
|
101
|
+
* **has_j_send_status_and_attributes:** add public creators ([a954ef2](https://github.com/marian13/convenient_service/commit/a954ef2cd8020fc8158eba864883e15f0442630b))
|
102
|
+
* **has_j_send_status_and_attributes:** allow to compare code by #=== ([54b5025](https://github.com/marian13/convenient_service/commit/54b502580e2e326bb319c4a7de050242bacdf0ba))
|
103
|
+
* **has_j_send_status_and_attributes:** allow to compare data by #=== ([a5ce835](https://github.com/marian13/convenient_service/commit/a5ce835da8c0d920dc4a45baf2e599071867511e))
|
104
|
+
* **has_j_send_status_and_attributes:** allow to compare message by #=== ([ddd5ffd](https://github.com/marian13/convenient_service/commit/ddd5ffd16596fd4288273df980b9a5c150cdbb1b))
|
105
|
+
* **has_j_send_status_and_attributes:** introduce Code.=== ([c2414cc](https://github.com/marian13/convenient_service/commit/c2414cc251c754b6d405494ed2d6e241457e71ff))
|
106
|
+
* **has_j_send_status_and_attributes:** introduce Data.=== ([d47202d](https://github.com/marian13/convenient_service/commit/d47202d164fa6215f730d4c75914fd2b53ef7734))
|
107
|
+
* **has_j_send_status_and_attributes:** introduce Message.=== ([f936fae](https://github.com/marian13/convenient_service/commit/f936fae60a3743c97ea84ceada6c7bc59d59ece6))
|
108
|
+
* **has_j_send_status_and_attributes:** introduce Status.=== ([494a9b3](https://github.com/marian13/convenient_service/commit/494a9b3b9b5cdd8df737c941c93bdbfbb771115f))
|
109
|
+
* **has_j_send_status_and_attributes:** link result to status, data, message, code ([dd87723](https://github.com/marian13/convenient_service/commit/dd877234c300151053bae45fd9ae9aac9b74711a))
|
110
|
+
* **has_j_send_status_and_attributes:** respect RSpec argument matchers via #=== ([c163b32](https://github.com/marian13/convenient_service/commit/c163b3207bd7fdfec1c5ff1a222de80210f1e6fd))
|
111
|
+
* **has_j_send_status_and_attributes:** support partial data matching ([154a4fd](https://github.com/marian13/convenient_service/commit/154a4fda1a83135cabf6fb31b6b65bb6cec3916f))
|
112
|
+
* **has_jsend_status_and_attributes:** allow user to provide Code, Data, Message and Status classes ([ff9703e](https://github.com/marian13/convenient_service/commit/ff9703e91c310d6223fbf8c9142c9e41d58498ba))
|
113
|
+
* **has_mermaid_flowchart:** introduce experimental flowchart ([73475e6](https://github.com/marian13/convenient_service/commit/73475e6f7067439b867a7d9d193d9759dbfa41cf))
|
114
|
+
* **has_result_status_check_short_syntax:** Add two more short bool result checks ([a8a8a8b](https://github.com/marian13/convenient_service/commit/a8a8a8b2c7d6ff90249488dffff892dff90bf914))
|
115
|
+
* **has_result:** export commands.is_result? ([17e6bb6](https://github.com/marian13/convenient_service/commit/17e6bb60638f521728735baddab5a623d81e91fd))
|
116
|
+
* **has_result:** introduce Commands::IsResult ([94e337a](https://github.com/marian13/convenient_service/commit/94e337a93e4724b7382d6afbfc802ac5601c1cad))
|
117
|
+
* **logger:** add version class ([2e5b236](https://github.com/marian13/convenient_service/commit/2e5b2361caf87d6e08854f7b7c53d2d90cc31a60))
|
118
|
+
* **logger:** provide fallback for older loggers ([6bbefdc](https://github.com/marian13/convenient_service/commit/6bbefdcd2cceee20588a482af0725b380f897c87))
|
119
|
+
* **method_middlewares:** introduce #next_arguments ([a878d51](https://github.com/marian13/convenient_service/commit/a878d511bc8cefabd434d38a0502949bc2604de6))
|
120
|
+
* **middlewares:** add intended entity ([d1a5a0f](https://github.com/marian13/convenient_service/commit/d1a5a0fe6b87cc47ab4f9c85722a2707518777f8))
|
121
|
+
* **paint:** add version class ([118c650](https://github.com/marian13/convenient_service/commit/118c650c45c8cac20cc9a8c7411b5b091a77b5e0))
|
122
|
+
* **rescues_result_unhandled_exceptions:** read max_backtrace_size from middleware arguments ([6d7de5e](https://github.com/marian13/convenient_service/commit/6d7de5ecd38d2a9bc7bc719aa44e86f3a31694d7))
|
123
|
+
* **result:** introduce CanBeStubbed plugin ([9a41145](https://github.com/marian13/convenient_service/commit/9a41145a5c100a4bc3169fda34ffb0574edc01ab))
|
124
|
+
* **ruby_middleware:** add support of middleware creators ([06bcc15](https://github.com/marian13/convenient_service/commit/06bcc15f6f600e4fc40ec7e1842495f2b37edfd0))
|
125
|
+
* **ruby:** check if truffleruby ([341ced1](https://github.com/marian13/convenient_service/commit/341ced193953cd8c51a97ac3c4cb8822433485f0))
|
126
|
+
* **service:** extract RaisesOnNotResultReturnValue ([4de15bc](https://github.com/marian13/convenient_service/commit/4de15bce4fbb4f190fdd79a5a478a8e12a5843a2))
|
127
|
+
* **sets_parent_to_foreign_result:** include foreign result into parents enum ([b680678](https://github.com/marian13/convenient_service/commit/b680678ee32c2797993084ef4f4a1f18fb01e4f2))
|
128
|
+
* **step:** add Step#method_step? ([caefe8e](https://github.com/marian13/convenient_service/commit/caefe8e28ce75fece673998de2181c7d94cc4029))
|
129
|
+
* **stub_service:** add trigger for STUB_SERVICE ([047c835](https://github.com/marian13/convenient_service/commit/047c8358cafd86d84ced0f300440d4a08ee10994))
|
130
|
+
* **stub_service:** introduce Service::CountsStubbedResultsInvocations and Result::HasStubbedResultInvocationsCounter ([88860a5](https://github.com/marian13/convenient_service/commit/88860a5917f88362670b0fc830b97de79ae83732))
|
131
|
+
* **stub_service:** use result stubs by service instances ([3dde79b](https://github.com/marian13/convenient_service/commit/3dde79bdbedfa03abe94f979475cbdb8ee40d799))
|
132
|
+
* **support:** add default for finite_loop ([e1c14b9](https://github.com/marian13/convenient_service/commit/e1c14b9b6e221b521714e1742001d44ac57f0d31))
|
133
|
+
* **support:** introduce anything ([4a4a287](https://github.com/marian13/convenient_service/commit/4a4a28754aa4325e434e6bce11735e8837680e50))
|
134
|
+
* **support:** safe_method ([b37d735](https://github.com/marian13/convenient_service/commit/b37d735c03b08e57d930c9d5cb1c7cd089a07e0a))
|
135
|
+
* **support:** ThreadSafeCounter#current_value= ([bf703bb](https://github.com/marian13/convenient_service/commit/bf703bb80e4bdac62edff930ea9e524012dbd221))
|
136
|
+
* **utils:** add protected option for Method#defined? ([2bfd1f6](https://github.com/marian13/convenient_service/commit/2bfd1f6210c2774a7f3bb88e9ce7dbb18c40c777))
|
137
|
+
* **utils:** introduce clamp_class ([ae1712c](https://github.com/marian13/convenient_service/commit/ae1712c3750d256a61d846e052fedd00856b1aa5))
|
138
|
+
* **utils:** introduce Class#display_name ([5316ec1](https://github.com/marian13/convenient_service/commit/5316ec18d58dbbf017683592f177a3185572c7ff))
|
139
|
+
* **utils:** introduce Hash#assert_valid_keys ([35b3f68](https://github.com/marian13/convenient_service/commit/35b3f681aa2e544cab7a1c81d00e187325802ad1))
|
140
|
+
* **utils:** introduce Hash#triple_equality_compare ([4aeb91f](https://github.com/marian13/convenient_service/commit/4aeb91f8c702b7f6b32d1964b2e5153f67fca9dd))
|
141
|
+
* **utils:** introduce shorter Utils.to_bool ([8713470](https://github.com/marian13/convenient_service/commit/87134707bac542f550ea8dae941bb7c0112b33f0))
|
142
|
+
* **utils:** introduce String.truncate ([f08e053](https://github.com/marian13/convenient_service/commit/f08e0536b3381e01cd88015bc49036999db58160))
|
143
|
+
|
144
|
+
|
145
|
+
### Bug Fixes
|
146
|
+
|
147
|
+
* **be_result:** do not always show JSend attributes ([83c7d20](https://github.com/marian13/convenient_service/commit/83c7d20cc3ada10489abed99ab67c9751739f4f0))
|
148
|
+
* **cache:** change order of require ([ba20e90](https://github.com/marian13/convenient_service/commit/ba20e90f822c7fb90819a04256929429f0375136))
|
149
|
+
* **cache:** remove accidentally added file ([fac0105](https://github.com/marian13/convenient_service/commit/fac0105885541a950befe441c081bd03a095f58e))
|
150
|
+
* **can_be_stubbed_result:** remove typo ([cf9ece7](https://github.com/marian13/convenient_service/commit/cf9ece771b0a97823b0a3f9f1192457b74fa5ef7))
|
151
|
+
* **can_have_fallback:** precheck status of fallback results ([e7c0468](https://github.com/marian13/convenient_service/commit/e7c04688d20d22595e228cd164f992fa01821b66))
|
152
|
+
* **can_have_try_result:** return copy to have fresh state ([ba5e86d](https://github.com/marian13/convenient_service/commit/ba5e86d8a3a015e54143b6193bf3a806dfe87d95))
|
153
|
+
* **can_have_user_provided_entity:** include Core to proto entity as well ([086d15c](https://github.com/marian13/convenient_service/commit/086d15ce2724e8daa7c0ccbe363dea1a1b8fd9fb))
|
154
|
+
* **contain_exactly:** using `tally` method ([9639f28](https://github.com/marian13/convenient_service/commit/9639f28900143e9873a579d4dd471bb227217dab))
|
155
|
+
* **core:** disallow config commitment by missing private method ([7b3a20b](https://github.com/marian13/convenient_service/commit/7b3a20bedaf0d3c3cfbcab6a5a0d7a004b673a3b))
|
156
|
+
* **core:** disallow config commitment by missing private method ([a40d5d1](https://github.com/marian13/convenient_service/commit/a40d5d16abdf9e3c05052adce8caca363834573d))
|
157
|
+
* **has_j_send_status_and_attributes:** compare by === manually since Hash does NOT have its own === ([31d5782](https://github.com/marian13/convenient_service/commit/31d57820b5e8d6160d40da3ddf25ab73e6bcef32))
|
158
|
+
* **has_j_send_status_and_attributes:** correct comparison order ([a9def90](https://github.com/marian13/convenient_service/commit/a9def90e772324450f9f2cd6a177df5cef7018c9))
|
159
|
+
* **has_result_status_check_short_syntax:** Correct implementation of two methods ([5cf6004](https://github.com/marian13/convenient_service/commit/5cf6004bdfe49973452846e452dbcd087074b723))
|
160
|
+
* **kwargs:** add compatibility between Ruby 2 and 3 ([a361ad7](https://github.com/marian13/convenient_service/commit/a361ad7334df88339fd372a5bf3f44005234c36e))
|
161
|
+
* **method_collection:** fix failed specs ([baa7e1f](https://github.com/marian13/convenient_service/commit/baa7e1f7e5ab694c61cf7d3422b3673e36e57ab4))
|
162
|
+
* **middleware_spec:** removed unused require ([0a39c4f](https://github.com/marian13/convenient_service/commit/0a39c4f394fdf484b2cdf20b8e6be5f291fd05c0))
|
163
|
+
* Remove /gemfiles directory ([4f11a14](https://github.com/marian13/convenient_service/commit/4f11a140bf53bcf1298707dbee2365c053041824))
|
164
|
+
* **support:** move lock to thread safe counter ([b90f2e7](https://github.com/marian13/convenient_service/commit/b90f2e7f424568d75be8cad6cb71a288ce13b1ce))
|
165
|
+
* **yard:** remove colon in tags ([81239d7](https://github.com/marian13/convenient_service/commit/81239d7bd37a92de5c727224c992db94e9fe2b61))
|
166
|
+
|
167
|
+
|
168
|
+
### Performance Improvements
|
169
|
+
|
170
|
+
* **core:** improve commit_config slightly ([c1738b4](https://github.com/marian13/convenient_service/commit/c1738b4de855a2b3a3f5fa25565f52ccfbd30bb0))
|
171
|
+
* **core:** improve config.committed? ([283c9ca](https://github.com/marian13/convenient_service/commit/283c9ca30728dfc6311e472d17a69a3dcfcb565b))
|
172
|
+
|
173
|
+
|
174
|
+
### Miscellaneous Chores
|
175
|
+
|
176
|
+
* release 0.13.0 ([7373f3e](https://github.com/marian13/convenient_service/commit/7373f3ecba7ded1a949d4a95aeb99a35214ef806))
|
177
|
+
|
178
|
+
|
179
|
+
### Code Refactoring
|
180
|
+
|
181
|
+
* **can_have_stubbed_result:** state explicitly cache backend ([b2e4228](https://github.com/marian13/convenient_service/commit/b2e4228708c0e247a1c509c6a04ae39920998eae))
|
182
|
+
* **has_j_send_result:** rename HasResult to HasJSendResult ([fd6846c](https://github.com/marian13/convenient_service/commit/fd6846c78edd9524eaf0121e77ce4e5a64980974))
|
183
|
+
* **has_j_send_status_and_attributes:** use Jsend to JSend ([ffb2642](https://github.com/marian13/convenient_service/commit/ffb26424f9ce8f176a148c146c238a2bb1c77ce6))
|
184
|
+
* **has_result_short_syntax:** allow to pass message to failures ([4a07a38](https://github.com/marian13/convenient_service/commit/4a07a38ac36cb1564059c9ad39a5c4c007db0f82))
|
185
|
+
|
3
186
|
## [0.12.0](https://github.com/marian13/convenient_service/compare/v0.11.0...v0.12.0) (2023-04-01)
|
4
187
|
|
5
188
|
|
data/Gemfile
CHANGED
@@ -2,11 +2,16 @@
|
|
2
2
|
|
3
3
|
source "https://rubygems.org"
|
4
4
|
|
5
|
-
|
5
|
+
##
|
6
|
+
# Specify your gem's dependencies in `convenient_service.gemspec`.
|
7
|
+
# - https://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
|
8
|
+
#
|
6
9
|
gemspec
|
7
10
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
11
|
+
##
|
12
|
+
# TODO: Uncomment if a license key is approved.
|
13
|
+
# - https://github.com/mbj/mutant/tree/a19e11a07e71a40cfa62636f7aea611e314de841#getting-an-opensource-license
|
14
|
+
#
|
15
|
+
# source 'https://${plan}:${key}@gem.mutant.dev' do
|
16
|
+
# gem 'mutant-license'
|
17
|
+
# end
|
data/README.md
CHANGED
@@ -13,10 +13,14 @@
|
|
13
13
|
</h1>
|
14
14
|
<!-- header:end -->
|
15
15
|
|
16
|
+
<!-- badges_docs:start -->
|
17
|
+
<!-- NOTE: Docs for badges can be found here - https://shields.io -->
|
18
|
+
<!-- badges_docs:end -->
|
19
|
+
|
16
20
|
<!-- badges:start -->
|
17
21
|
[![Ruby](https://img.shields.io/badge/ruby-%23CC342D.svg?style=for-the-badge&logo=ruby&logoColor=white)](https://www.ruby-lang.org/en/)
|
18
22
|
|
19
|
-
[![Gem Version](https://badge.fury.io/rb/convenient_service.svg)](https://rubygems.org/gems/convenient_service) [![Gem Downloads](https://img.shields.io/gem/dt/convenient_service.svg)](https://rubygems.org/gems/convenient_service) ![visitors](https://visitor-badge.glitch.me/badge?page_id=marian13/convenient_service) [![GitHub Actions CI](https://github.com/marian13/convenient_service/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/marian13/convenient_service/actions/workflows/ci.yml) [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard) [![Coverage Status](https://coveralls.io/repos/github/marian13/convenient_service/badge.svg)](https://coveralls.io/github/marian13/convenient_service?branch=main) [![inline docs](http://inch-ci.org/github/marian13/convenient_service.svg?branch=main)](http://inch-ci.org/github/marian13/convenient_service) [![yard docs](http://img.shields.io/badge/yard-docs-blue.svg)](https://marian13.github.io/convenient_service/)
|
23
|
+
[![Gem Version](https://badge.fury.io/rb/convenient_service.svg)](https://rubygems.org/gems/convenient_service) [![Gem Downloads](https://img.shields.io/gem/dt/convenient_service.svg)](https://rubygems.org/gems/convenient_service) ![visitors](https://visitor-badge.glitch.me/badge?page_id=marian13/convenient_service) ![GitHub repo size](https://img.shields.io/github/repo-size/marian13/convenient_service) [![GitHub Actions CI](https://github.com/marian13/convenient_service/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/marian13/convenient_service/actions/workflows/ci.yml) [![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard) [![Coverage Status](https://coveralls.io/repos/github/marian13/convenient_service/badge.svg)](https://coveralls.io/github/marian13/convenient_service?branch=main) [![inline docs](http://inch-ci.org/github/marian13/convenient_service.svg?branch=main)](http://inch-ci.org/github/marian13/convenient_service) [![yard docs](http://img.shields.io/badge/yard-docs-blue.svg)](https://marian13.github.io/convenient_service/)
|
20
24
|
[![Convenient Service on stackoverflow](https://img.shields.io/badge/stackoverflow-community-orange.svg?logo=stackoverflow)](https://stackoverflow.com/tags/convenient-service)
|
21
25
|
[![Patreon](https://img.shields.io/badge/patreon-donate-orange.svg)](https://www.patreon.com/user?u=31435716&fan_landing=true)
|
22
26
|
[![License: MIT](https://img.shields.io/badge/license-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
|
@@ -43,9 +47,11 @@ This library is under heavy development. Public API may be subject to change. Th
|
|
43
47
|
<!-- links:start -->
|
44
48
|
## Quick Links
|
45
49
|
|
46
|
-
-
|
50
|
+
- Visit the [All-in-One Presentation](https://marian13.github.io/static_content/convenient_service/presentations/all_in_one) to get a quick overview.
|
51
|
+
|
52
|
+
- Check out [Convenient Service Official User Docs](https://marian13.github.io/convenient_service_docs) for installation, requirements, and usage guides.
|
47
53
|
|
48
|
-
- Read [the API docs](https://marian13.github.io/convenient_service) to get familiar with the newest functionality that
|
54
|
+
- Read [the API docs](https://marian13.github.io/convenient_service) to get familiar with the newest functionality that is not documented yet.
|
49
55
|
|
50
56
|
- Create [an issue](https://github.com/marian13/convenient_service/issues) if you are going to report a bug.
|
51
57
|
|
@@ -55,6 +61,8 @@ This library is under heavy development. Public API may be subject to change. Th
|
|
55
61
|
|
56
62
|
- [RubyGems](https://rubygems.org/gems/convenient_service).
|
57
63
|
|
64
|
+
- [Static Content](https://github.com/marian13/static_content/tree/main/convenient_service) repo.
|
65
|
+
|
58
66
|
- Have a look at [Convenient Service Development Wiki](https://github.com/marian13/convenient_service/wiki) for the contribution tutorials.
|
59
67
|
|
60
68
|
<!-- links:end -->
|
data/ROADMAP.md
CHANGED
@@ -76,6 +76,10 @@
|
|
76
76
|
| Low | 🚧 | Generator to create a spec default structure | |
|
77
77
|
| Low | 🚧 | Rubocop cop that complains when a service does NOT have its own suite of specs | |
|
78
78
|
| High | 🚧 | Add specs for `WrappedMethod#call` | |
|
79
|
-
| High | 🚧 | Check whether ignoring error was used properly | |
|
79
|
+
| High | 🚧 | Check whether ignoring the error was used properly | |
|
80
|
+
| High | 🚧 | Steps are great for `and` logic, but what to do with `or` logic? | Create the third service | |
|
81
|
+
| High | 🚧 | Steps are great for `and` logic, but what to do with `case when` logic? | Create the third service | |
|
82
|
+
| High | 🚧 | Cacing of services | It is relatively simple to add caching for steps, but not for all services, since steps are managed by framework | |
|
83
|
+
| High | 🚧 | Fallback should return result with already checked status | |
|
80
84
|
|
81
85
|
Search for `TODO`s in the codebase for more tasks.
|