convenient_service 0.14.0 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/contributing.md +15 -0
- data/.github/workflows/cd.yml +5 -4
- data/.github/workflows/ci.yml +5 -5
- data/.gitignore +15 -1
- data/.ruby-version +1 -1
- data/.tool-versions +1 -1
- data/.vscode/CacheItsValue.code-snippets +1 -1
- data/.yardopts +4 -1
- data/CHANGELOG.md +29 -0
- data/COMM-LICENSE.txt +99 -0
- data/LICENSE.txt +7 -19
- data/README.md +1 -1
- data/ROADMAP.md +14 -7
- data/Taskfile.yml +14 -2
- data/docs/.gitkeep +0 -0
- data/docs/api/.gitkeep +0 -0
- data/lib/convenient_service/dependencies.rb +2 -2
- data/lib/convenient_service/examples/dry/gemfile.rb +4 -2
- data/lib/convenient_service/examples/dry/v1/gemfile.rb +4 -2
- data/lib/convenient_service/examples/rails/gemfile.rb +4 -2
- data/lib/convenient_service/examples/rails/v1/gemfile.rb +4 -2
- data/lib/convenient_service/examples/standard/cowsay.rb +4 -2
- data/lib/convenient_service/examples/standard/date_time.rb +4 -2
- data/lib/convenient_service/examples/standard/factorial.rb +4 -2
- data/lib/convenient_service/examples/standard/gemfile.rb +4 -2
- data/lib/convenient_service/examples/standard/request_params.rb +4 -2
- data/lib/convenient_service/examples/standard/v1/cowsay.rb +1 -1
- data/lib/convenient_service/examples/standard/v1/date_time.rb +1 -1
- data/lib/convenient_service/examples/standard/v1/factorial.rb +1 -1
- data/lib/convenient_service/examples/standard/v1/gemfile.rb +1 -1
- data/lib/convenient_service/examples/standard/v1/request_params.rb +1 -1
- data/lib/convenient_service/feature/configs/aliases.rb +9 -0
- data/lib/convenient_service/feature/configs/standard.rb +22 -0
- data/lib/convenient_service/feature/configs.rb +5 -0
- data/lib/convenient_service/feature/plugins/aliases.rb +7 -0
- data/lib/convenient_service/feature/plugins/can_have_entries/commands/define_entry.rb +63 -0
- data/lib/convenient_service/feature/plugins/can_have_entries/commands.rb +3 -0
- data/lib/convenient_service/feature/plugins/can_have_entries/concern.rb +24 -0
- data/lib/convenient_service/feature/plugins/can_have_entries/exceptions.rb +35 -0
- data/lib/convenient_service/feature/plugins/can_have_entries.rb +5 -0
- data/lib/convenient_service/feature/plugins.rb +5 -0
- data/lib/convenient_service/feature.rb +2 -9
- data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service/constants.rb +1 -1
- data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service/entities/result_spec.rb +8 -8
- data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service/entities/stubbed_service.rb +6 -6
- data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service.rb +1 -1
- data/lib/convenient_service/rspec/helpers/{custom → classes}/wrap_method/entities/wrapped_method.rb +6 -6
- data/lib/convenient_service/rspec/helpers/{custom → classes}/wrap_method/exceptions.rb +1 -1
- data/lib/convenient_service/rspec/helpers/{custom → classes}/wrap_method.rb +2 -2
- data/lib/convenient_service/rspec/helpers/classes.rb +4 -0
- data/lib/convenient_service/rspec/helpers/ignoring_exception.rb +1 -1
- data/lib/convenient_service/rspec/helpers/stub_service.rb +5 -5
- data/lib/convenient_service/rspec/helpers/wrap_method.rb +1 -1
- data/lib/convenient_service/rspec/helpers.rb +4 -6
- data/lib/convenient_service/rspec/matchers/call_chain_next.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/call_chain_next.rb +8 -8
- data/lib/convenient_service/rspec/matchers/{custom → classes}/export.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/constants.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/chain.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_code_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_data_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_message_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_parts.rb +3 -3
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_service_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_status_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_step_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_got_parts.rb +3 -3
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_got_service_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_got_step_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/error.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/failure/commands/generate_got_jsend_attributes_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/failure.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/null.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/success/commands/generate_got_jsend_attributes_part.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/success.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers.rb +3 -3
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result.rb +4 -4
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_code.rb +5 -5
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_data.rb +5 -5
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_message.rb +5 -5
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_service.rb +5 -5
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_status.rb +5 -5
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_step.rb +6 -6
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_type.rb +5 -5
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator.rb +3 -3
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/exceptions.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base.rb +15 -15
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_error.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_failure.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_not_error.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_not_failure.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_not_success.rb +1 -1
- data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_success.rb +1 -1
- data/lib/convenient_service/rspec/matchers/classes.rb +5 -0
- data/lib/convenient_service/rspec/matchers/delegate_to.rb +1 -1
- data/lib/convenient_service/rspec/matchers/export.rb +1 -1
- data/lib/convenient_service/rspec/matchers/include_module.rb +1 -1
- data/lib/convenient_service/rspec/matchers/results/be_error.rb +1 -1
- data/lib/convenient_service/rspec/matchers/results/be_failure.rb +1 -1
- data/lib/convenient_service/rspec/matchers/results/be_not_error.rb +1 -1
- data/lib/convenient_service/rspec/matchers/results/be_not_failure.rb +1 -1
- data/lib/convenient_service/rspec/matchers/results/be_not_success.rb +1 -1
- data/lib/convenient_service/rspec/matchers/results/be_result.rb +6 -6
- data/lib/convenient_service/rspec/matchers/results/be_success.rb +1 -1
- data/lib/convenient_service/rspec/matchers.rb +6 -28
- data/lib/convenient_service/rspec/{helpers/custom → primitive_helpers/classes}/ignoring_exception/exceptions.rb +2 -2
- data/lib/convenient_service/rspec/{helpers/custom → primitive_helpers/classes}/ignoring_exception.rb +3 -3
- data/lib/convenient_service/rspec/{helpers/custom → primitive_helpers/classes}/in_threads.rb +2 -2
- data/lib/convenient_service/rspec/primitive_helpers/classes.rb +4 -0
- data/lib/convenient_service/rspec/primitive_helpers/ignoring_exception.rb +13 -0
- data/lib/convenient_service/rspec/{helpers → primitive_helpers}/in_threads.rb +2 -2
- data/lib/convenient_service/rspec/primitive_helpers.rb +19 -0
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/be_descendant_of.rb +2 -2
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/be_direct_descendant_of.rb +2 -2
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/cache_its_value.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/be_descendant_of.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/be_direct_descendant_of.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/cache_its_value.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/commands/generate_printable_method.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/arguments/commands/apply_stub_to_track_delegations.rb +4 -4
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/arguments/commands/generate_printable_arguments.rb +4 -4
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/arguments.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/base.rb +5 -5
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/return_its_value.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/with_any_arguments.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/with_concrete_arguments.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/without_arguments.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/values/base.rb +4 -4
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/values/with_calling_original.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/values/without_calling_original.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings_collection/exceptions.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings_collection.rb +13 -13
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/delegation.rb +3 -3
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher.rb +13 -13
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to.rb +13 -13
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/extend_module.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_abstract_method.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_alias_method.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_attr_accessor.rb +4 -4
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_attr_reader.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_attr_writer.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/include_module.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/prepend_module.rb +2 -2
- data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/singleton_prepend_module.rb +2 -2
- data/lib/convenient_service/rspec/primitive_matchers/classes.rb +15 -0
- data/lib/convenient_service/rspec/primitive_matchers/delegate_to.rb +13 -0
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/extend_module.rb +2 -2
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_abstract_method.rb +2 -2
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_alias_method.rb +2 -2
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_attr_accessor.rb +2 -2
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_attr_reader.rb +2 -2
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_attr_writer.rb +2 -2
- data/lib/convenient_service/rspec/primitive_matchers/include_module.rb +13 -0
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/prepend_module.rb +2 -2
- data/lib/convenient_service/rspec/{matchers → primitive_matchers}/singleton_prepend_module.rb +2 -2
- data/lib/convenient_service/rspec/primitive_matchers.rb +41 -0
- data/lib/convenient_service/rspec.rb +3 -0
- data/lib/convenient_service/{configs → service/configs}/aliases.rb +1 -1
- data/lib/convenient_service/{configs → service/configs}/awesome_print_inspect/aliases.rb +1 -1
- data/lib/convenient_service/service/configs/awesome_print_inspect.rb +61 -0
- data/lib/convenient_service/service/configs/minimal.rb +261 -0
- data/lib/convenient_service/{configs → service/configs}/standard/aliases.rb +1 -1
- data/lib/convenient_service/service/configs/standard/v1.rb +185 -0
- data/lib/convenient_service/service/configs/standard.rb +238 -0
- data/lib/convenient_service/service/plugins/can_have_steps/concern.rb +9 -3
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value/exceptions.rb +32 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value/middleware.rb +33 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value.rb +4 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins.rb +1 -0
- data/lib/convenient_service/service/plugins/can_have_steps/entities/step_collection.rb +16 -0
- 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 +24 -0
- data/lib/convenient_service/service.rb +1 -0
- data/lib/convenient_service/support/dependency_container/commands.rb +0 -1
- data/lib/convenient_service/support/dependency_container.rb +0 -1
- data/lib/convenient_service/version.rb +1 -1
- data/lib/convenient_service.rb +0 -1
- data/yard/yard-convenient_service_concern.rb +45 -0
- metadata +143 -120
- data/lib/convenient_service/configs/awesome_print_inspect.rb +0 -59
- data/lib/convenient_service/configs/minimal.rb +0 -257
- data/lib/convenient_service/configs/standard/v1.rb +0 -183
- data/lib/convenient_service/configs/standard.rb +0 -234
- data/lib/convenient_service/rspec/helpers/custom.rb +0 -6
- data/lib/convenient_service/rspec/matchers/custom.rb +0 -18
- data/lib/convenient_service/support/dependency_container/commands/define_entry.rb +0 -49
- data/lib/convenient_service/support/dependency_container/entry.rb +0 -22
- /data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service/entities.rb +0 -0
- /data/lib/convenient_service/rspec/helpers/{custom → classes}/wrap_method/entities.rb +0 -0
- /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands.rb +0 -0
- /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/error/commands.rb +0 -0
- /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/failure/commands.rb +0 -0
- /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/success/commands.rb +0 -0
- /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands.rb +0 -0
- /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities.rb +0 -0
- /data/lib/convenient_service/rspec/matchers/{custom → classes}/results.rb +0 -0
- /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/commands.rb +0 -0
- /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/arguments/commands.rb +0 -0
- /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings.rb +0 -0
- /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities.rb +0 -0
- /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities.rb +0 -0
- /data/lib/convenient_service/{configs.rb → service/configs.rb} +0 -0
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -17,21 +17,21 @@ module ConvenientService
|
|
17
17
|
# @api private
|
18
18
|
#
|
19
19
|
# @!attribute printer [r]
|
20
|
-
# @return [ConvenientService::RSpec::Matchers::
|
20
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
21
21
|
#
|
22
22
|
attr_reader :printer
|
23
23
|
|
24
24
|
##
|
25
25
|
# @api private
|
26
26
|
#
|
27
|
-
# @return [ConvenientService::RSpec::Matchers::
|
27
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
28
28
|
#
|
29
29
|
delegate :chain, to: :printer
|
30
30
|
|
31
31
|
##
|
32
32
|
# @api private
|
33
33
|
#
|
34
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
34
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
35
35
|
# @return [void]
|
36
36
|
#
|
37
37
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -17,21 +17,21 @@ module ConvenientService
|
|
17
17
|
# @api private
|
18
18
|
#
|
19
19
|
# @!attribute printer [r]
|
20
|
-
# @return [ConvenientService::RSpec::Matchers::
|
20
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
21
21
|
#
|
22
22
|
attr_reader :printer
|
23
23
|
|
24
24
|
##
|
25
25
|
# @api private
|
26
26
|
#
|
27
|
-
# @return [ConvenientService::RSpec::Matchers::
|
27
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
28
28
|
#
|
29
29
|
delegate :chain, to: :printer
|
30
30
|
|
31
31
|
##
|
32
32
|
# @api private
|
33
33
|
#
|
34
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
34
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
35
35
|
# @return [void]
|
36
36
|
#
|
37
37
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -17,7 +17,7 @@ module ConvenientService
|
|
17
17
|
# @api private
|
18
18
|
#
|
19
19
|
# @!attribute printer [r]
|
20
|
-
# @return [ConvenientService::RSpec::Matchers::
|
20
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
21
21
|
#
|
22
22
|
attr_reader :printer
|
23
23
|
|
@@ -73,7 +73,7 @@ module ConvenientService
|
|
73
73
|
##
|
74
74
|
# @api private
|
75
75
|
#
|
76
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
76
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
77
77
|
# @return [void]
|
78
78
|
#
|
79
79
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -17,21 +17,21 @@ module ConvenientService
|
|
17
17
|
# @api private
|
18
18
|
#
|
19
19
|
# @!attribute printer [r]
|
20
|
-
# @return [ConvenientService::RSpec::Matchers::
|
20
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
21
21
|
#
|
22
22
|
attr_reader :printer
|
23
23
|
|
24
24
|
##
|
25
25
|
# @api private
|
26
26
|
#
|
27
|
-
# @return [ConvenientService::RSpec::Matchers::
|
27
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
28
28
|
#
|
29
29
|
delegate :chain, to: :printer
|
30
30
|
|
31
31
|
##
|
32
32
|
# @api private
|
33
33
|
#
|
34
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
34
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
35
35
|
# @return [void]
|
36
36
|
#
|
37
37
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -17,21 +17,21 @@ module ConvenientService
|
|
17
17
|
# @api private
|
18
18
|
#
|
19
19
|
# @!attribute printer [r]
|
20
|
-
# @return [ConvenientService::RSpec::Matchers::
|
20
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
21
21
|
#
|
22
22
|
attr_reader :printer
|
23
23
|
|
24
24
|
##
|
25
25
|
# @api private
|
26
26
|
#
|
27
|
-
# @return [ConvenientService::RSpec::Matchers::
|
27
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
28
28
|
#
|
29
29
|
delegate :chain, to: :printer
|
30
30
|
|
31
31
|
##
|
32
32
|
# @api private
|
33
33
|
#
|
34
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
34
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
35
35
|
# @return [void]
|
36
36
|
#
|
37
37
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -17,21 +17,21 @@ module ConvenientService
|
|
17
17
|
# @api private
|
18
18
|
#
|
19
19
|
# @!attribute printer [r]
|
20
|
-
# @return [ConvenientService::RSpec::Matchers::
|
20
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
21
21
|
#
|
22
22
|
attr_reader :printer
|
23
23
|
|
24
24
|
##
|
25
25
|
# @api private
|
26
26
|
#
|
27
|
-
# @return [ConvenientService::RSpec::Matchers::
|
27
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
28
28
|
#
|
29
29
|
delegate :chain, to: :printer
|
30
30
|
|
31
31
|
##
|
32
32
|
# @api private
|
33
33
|
#
|
34
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
34
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
35
35
|
# @return [void]
|
36
36
|
#
|
37
37
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -17,7 +17,7 @@ module ConvenientService
|
|
17
17
|
# @api private
|
18
18
|
#
|
19
19
|
# @!attribute printer [r]
|
20
|
-
# @return [ConvenientService::RSpec::Matchers::
|
20
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
21
21
|
#
|
22
22
|
attr_reader :printer
|
23
23
|
|
@@ -52,7 +52,7 @@ module ConvenientService
|
|
52
52
|
##
|
53
53
|
# @api private
|
54
54
|
#
|
55
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
55
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
56
56
|
# @return [void]
|
57
57
|
#
|
58
58
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -17,7 +17,7 @@ module ConvenientService
|
|
17
17
|
# @api private
|
18
18
|
#
|
19
19
|
# @!attribute printer [r]
|
20
|
-
# @return [ConvenientService::RSpec::Matchers::
|
20
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
21
21
|
#
|
22
22
|
attr_reader :printer
|
23
23
|
|
@@ -31,14 +31,14 @@ module ConvenientService
|
|
31
31
|
##
|
32
32
|
# @api private
|
33
33
|
#
|
34
|
-
# @return [ConvenientService::RSpec::Matchers::
|
34
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
35
35
|
#
|
36
36
|
delegate :chain, to: :printer
|
37
37
|
|
38
38
|
##
|
39
39
|
# @api private
|
40
40
|
#
|
41
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
41
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
42
42
|
# @return [void]
|
43
43
|
#
|
44
44
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -17,7 +17,7 @@ module ConvenientService
|
|
17
17
|
# @api private
|
18
18
|
#
|
19
19
|
# @!attribute printer [r]
|
20
|
-
# @return [ConvenientService::RSpec::Matchers::
|
20
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
21
21
|
#
|
22
22
|
attr_reader :printer
|
23
23
|
|
@@ -31,14 +31,14 @@ module ConvenientService
|
|
31
31
|
##
|
32
32
|
# @api private
|
33
33
|
#
|
34
|
-
# @return [ConvenientService::RSpec::Matchers::
|
34
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
35
35
|
#
|
36
36
|
delegate :chain, to: :printer
|
37
37
|
|
38
38
|
##
|
39
39
|
# @api private
|
40
40
|
#
|
41
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
41
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
42
42
|
# @return [void]
|
43
43
|
#
|
44
44
|
def initialize(printer:)
|
data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base.rb
RENAMED
@@ -5,7 +5,7 @@ require_relative "base/commands"
|
|
5
5
|
module ConvenientService
|
6
6
|
module RSpec
|
7
7
|
module Matchers
|
8
|
-
module
|
8
|
+
module Classes
|
9
9
|
module Results
|
10
10
|
class Base
|
11
11
|
module Entities
|
@@ -22,7 +22,7 @@ module ConvenientService
|
|
22
22
|
# @api private
|
23
23
|
#
|
24
24
|
# @!attribute [r] matcher
|
25
|
-
# @return [ConvenientService::RSpec::Matchers::
|
25
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
|
26
26
|
#
|
27
27
|
attr_reader :matcher
|
28
28
|
|
@@ -43,14 +43,14 @@ module ConvenientService
|
|
43
43
|
##
|
44
44
|
# @api private
|
45
45
|
#
|
46
|
-
# @return [ConvenientService::RSpec::Matchers::
|
46
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
47
47
|
#
|
48
48
|
delegate :chain, to: :matcher
|
49
49
|
|
50
50
|
##
|
51
51
|
# @api private
|
52
52
|
#
|
53
|
-
# @param matcher [ConvenientService::RSpec::Matchers::
|
53
|
+
# @param matcher [ConvenientService::RSpec::Matchers::Classes::Results::Base]
|
54
54
|
# @return [void]
|
55
55
|
#
|
56
56
|
def initialize(matcher:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -18,14 +18,14 @@ module ConvenientService
|
|
18
18
|
# @api private
|
19
19
|
#
|
20
20
|
# @!attribute printer [r]
|
21
|
-
# @return [ConvenientService::RSpec::Matchers::
|
21
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Error]
|
22
22
|
#
|
23
23
|
attr_reader :printer
|
24
24
|
|
25
25
|
##
|
26
26
|
# @api private
|
27
27
|
#
|
28
|
-
# @return [ConvenientService::RSpec::Matchers::
|
28
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
29
29
|
#
|
30
30
|
delegate :chain, to: :printer
|
31
31
|
|
@@ -46,7 +46,7 @@ module ConvenientService
|
|
46
46
|
##
|
47
47
|
# @api private
|
48
48
|
#
|
49
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
49
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
50
50
|
# @return [void]
|
51
51
|
#
|
52
52
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -18,14 +18,14 @@ module ConvenientService
|
|
18
18
|
# @api private
|
19
19
|
#
|
20
20
|
# @!attribute printer [r]
|
21
|
-
# @return [ConvenientService::RSpec::Matchers::
|
21
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Failure]
|
22
22
|
#
|
23
23
|
attr_reader :printer
|
24
24
|
|
25
25
|
##
|
26
26
|
# @api private
|
27
27
|
#
|
28
|
-
# @return [ConvenientService::RSpec::Matchers::
|
28
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
29
29
|
#
|
30
30
|
delegate :chain, to: :printer
|
31
31
|
|
@@ -46,7 +46,7 @@ module ConvenientService
|
|
46
46
|
##
|
47
47
|
# @api private
|
48
48
|
#
|
49
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
49
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
50
50
|
# @return [void]
|
51
51
|
#
|
52
52
|
def initialize(printer:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -18,14 +18,14 @@ module ConvenientService
|
|
18
18
|
# @api private
|
19
19
|
#
|
20
20
|
# @!attribute printer [r]
|
21
|
-
# @return [ConvenientService::RSpec::Matchers::
|
21
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Success]
|
22
22
|
#
|
23
23
|
attr_reader :printer
|
24
24
|
|
25
25
|
##
|
26
26
|
# @api private
|
27
27
|
#
|
28
|
-
# @return [ConvenientService::RSpec::Matchers::
|
28
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
29
29
|
#
|
30
30
|
delegate :chain, to: :printer
|
31
31
|
|
@@ -46,7 +46,7 @@ module ConvenientService
|
|
46
46
|
##
|
47
47
|
# @api private
|
48
48
|
#
|
49
|
-
# @param printer [ConvenientService::RSpec::Matchers::
|
49
|
+
# @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
50
50
|
# @return [void]
|
51
51
|
#
|
52
52
|
def initialize(printer:)
|
data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers.rb
RENAMED
@@ -9,7 +9,7 @@ require_relative "printers/success"
|
|
9
9
|
module ConvenientService
|
10
10
|
module RSpec
|
11
11
|
module Matchers
|
12
|
-
module
|
12
|
+
module Classes
|
13
13
|
module Results
|
14
14
|
class Base
|
15
15
|
module Entities
|
@@ -18,8 +18,8 @@ module ConvenientService
|
|
18
18
|
##
|
19
19
|
# @api private
|
20
20
|
#
|
21
|
-
# @param matcher [ConvenientService::RSpec::Matchers::
|
22
|
-
# @return [ConvenientService::RSpec::Matchers::
|
21
|
+
# @param matcher [ConvenientService::RSpec::Matchers::Classes::Results::Base]
|
22
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
|
23
23
|
#
|
24
24
|
def create(matcher:)
|
25
25
|
return Entities::Printers::Null.new(matcher: matcher) unless matcher.result
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -16,7 +16,7 @@ module ConvenientService
|
|
16
16
|
# @api private
|
17
17
|
#
|
18
18
|
# @!attribute [r] validator
|
19
|
-
# @return [ConvenientService::RSpec::Matchers::
|
19
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
|
20
20
|
#
|
21
21
|
attr_reader :validator
|
22
22
|
|
@@ -72,7 +72,7 @@ module ConvenientService
|
|
72
72
|
##
|
73
73
|
# @api private
|
74
74
|
#
|
75
|
-
# @param validator [ConvenientService::RSpec::Matchers::
|
75
|
+
# @param validator [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
|
76
76
|
# @return [void]
|
77
77
|
#
|
78
78
|
def initialize(validator:)
|
@@ -83,7 +83,7 @@ module ConvenientService
|
|
83
83
|
# @api private
|
84
84
|
#
|
85
85
|
# @return [Boolean]
|
86
|
-
# @raise [ConvenientService::RSpec::Matchers::
|
86
|
+
# @raise [ConvenientService::RSpec::Matchers::Classes::Results::Base::Exceptions::InvalidStep]
|
87
87
|
#
|
88
88
|
def call
|
89
89
|
validations.all?(true)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -16,14 +16,14 @@ module ConvenientService
|
|
16
16
|
# @api private
|
17
17
|
#
|
18
18
|
# @!attribute [r] validator
|
19
|
-
# @return [ConvenientService::RSpec::Matchers::
|
19
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
|
20
20
|
#
|
21
21
|
attr_reader :validator
|
22
22
|
|
23
23
|
##
|
24
24
|
# @api private
|
25
25
|
#
|
26
|
-
# @return [ConvenientService::RSpec::Matchers::
|
26
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
|
27
27
|
#
|
28
28
|
delegate :matcher, to: :validator
|
29
29
|
|
@@ -37,7 +37,7 @@ module ConvenientService
|
|
37
37
|
##
|
38
38
|
# @api private
|
39
39
|
#
|
40
|
-
# @return [ConvenientService::RSpec::Matchers::
|
40
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
41
41
|
#
|
42
42
|
delegate :chain, to: :matcher
|
43
43
|
|
@@ -58,7 +58,7 @@ module ConvenientService
|
|
58
58
|
##
|
59
59
|
# @api private
|
60
60
|
#
|
61
|
-
# @param validator [ConvenientService::RSpec::Matchers::
|
61
|
+
# @param validator [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
|
62
62
|
# @return [void]
|
63
63
|
#
|
64
64
|
def initialize(validator:)
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module ConvenientService
|
4
4
|
module RSpec
|
5
5
|
module Matchers
|
6
|
-
module
|
6
|
+
module Classes
|
7
7
|
module Results
|
8
8
|
class Base
|
9
9
|
module Entities
|
@@ -16,14 +16,14 @@ module ConvenientService
|
|
16
16
|
# @api private
|
17
17
|
#
|
18
18
|
# @!attribute [r] validator
|
19
|
-
# @return [ConvenientService::RSpec::Matchers::
|
19
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
|
20
20
|
#
|
21
21
|
attr_reader :validator
|
22
22
|
|
23
23
|
##
|
24
24
|
# @api private
|
25
25
|
#
|
26
|
-
# @return [ConvenientService::RSpec::Matchers::
|
26
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
|
27
27
|
#
|
28
28
|
delegate :matcher, to: :validator
|
29
29
|
|
@@ -37,7 +37,7 @@ module ConvenientService
|
|
37
37
|
##
|
38
38
|
# @api private
|
39
39
|
#
|
40
|
-
# @return [ConvenientService::RSpec::Matchers::
|
40
|
+
# @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
|
41
41
|
#
|
42
42
|
delegate :chain, to: :matcher
|
43
43
|
|
@@ -58,7 +58,7 @@ module ConvenientService
|
|
58
58
|
##
|
59
59
|
# @api private
|
60
60
|
#
|
61
|
-
# @param validator [ConvenientService::RSpec::Matchers::
|
61
|
+
# @param validator [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
|
62
62
|
# @return [void]
|
63
63
|
#
|
64
64
|
def initialize(validator:)
|