convenient_service 0.14.0 → 0.15.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -0
  3. data/.vscode/CacheItsValue.code-snippets +1 -1
  4. data/.yardopts +3 -0
  5. data/CHANGELOG.md +22 -0
  6. data/README.md +1 -1
  7. data/Taskfile.yml +14 -2
  8. data/lib/convenient_service/dependencies.rb +2 -2
  9. data/lib/convenient_service/examples/dry/gemfile.rb +1 -1
  10. data/lib/convenient_service/examples/dry/v1/gemfile.rb +1 -1
  11. data/lib/convenient_service/examples/rails/gemfile.rb +1 -1
  12. data/lib/convenient_service/examples/rails/v1/gemfile.rb +1 -1
  13. data/lib/convenient_service/examples/standard/cowsay.rb +1 -1
  14. data/lib/convenient_service/examples/standard/date_time.rb +1 -1
  15. data/lib/convenient_service/examples/standard/factorial.rb +1 -1
  16. data/lib/convenient_service/examples/standard/gemfile.rb +1 -1
  17. data/lib/convenient_service/examples/standard/request_params.rb +1 -1
  18. data/lib/convenient_service/examples/standard/v1/cowsay.rb +1 -1
  19. data/lib/convenient_service/examples/standard/v1/date_time.rb +1 -1
  20. data/lib/convenient_service/examples/standard/v1/factorial.rb +1 -1
  21. data/lib/convenient_service/examples/standard/v1/gemfile.rb +1 -1
  22. data/lib/convenient_service/examples/standard/v1/request_params.rb +1 -1
  23. data/lib/convenient_service/feature/configs/aliases.rb +9 -0
  24. data/lib/convenient_service/feature/configs/standard.rb +22 -0
  25. data/lib/convenient_service/feature/configs.rb +5 -0
  26. data/lib/convenient_service/feature/plugins/aliases.rb +7 -0
  27. data/lib/convenient_service/feature/plugins/can_have_entries/commands/define_entry.rb +51 -0
  28. data/lib/convenient_service/feature/plugins/can_have_entries/commands.rb +3 -0
  29. data/lib/convenient_service/feature/plugins/can_have_entries/concern.rb +24 -0
  30. data/lib/convenient_service/feature/plugins/can_have_entries.rb +4 -0
  31. data/lib/convenient_service/feature/plugins.rb +5 -0
  32. data/lib/convenient_service/feature.rb +2 -9
  33. data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service/constants.rb +1 -1
  34. data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service/entities/result_spec.rb +8 -8
  35. data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service/entities/stubbed_service.rb +6 -6
  36. data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service.rb +1 -1
  37. data/lib/convenient_service/rspec/helpers/{custom → classes}/wrap_method/entities/wrapped_method.rb +6 -6
  38. data/lib/convenient_service/rspec/helpers/{custom → classes}/wrap_method/exceptions.rb +1 -1
  39. data/lib/convenient_service/rspec/helpers/{custom → classes}/wrap_method.rb +2 -2
  40. data/lib/convenient_service/rspec/helpers/classes.rb +4 -0
  41. data/lib/convenient_service/rspec/helpers/ignoring_exception.rb +1 -1
  42. data/lib/convenient_service/rspec/helpers/stub_service.rb +5 -5
  43. data/lib/convenient_service/rspec/helpers/wrap_method.rb +1 -1
  44. data/lib/convenient_service/rspec/helpers.rb +4 -6
  45. data/lib/convenient_service/rspec/matchers/call_chain_next.rb +1 -1
  46. data/lib/convenient_service/rspec/matchers/{custom → classes}/call_chain_next.rb +8 -8
  47. data/lib/convenient_service/rspec/matchers/{custom → classes}/export.rb +1 -1
  48. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/constants.rb +1 -1
  49. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/chain.rb +1 -1
  50. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_code_part.rb +4 -4
  51. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_data_part.rb +4 -4
  52. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_message_part.rb +4 -4
  53. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_parts.rb +3 -3
  54. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_service_part.rb +4 -4
  55. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_status_part.rb +4 -4
  56. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_expected_step_part.rb +4 -4
  57. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_got_parts.rb +3 -3
  58. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_got_service_part.rb +4 -4
  59. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands/generate_got_step_part.rb +4 -4
  60. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base.rb +4 -4
  61. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/error/commands/generate_got_jsend_attributes_part.rb +4 -4
  62. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/error.rb +1 -1
  63. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/failure/commands/generate_got_jsend_attributes_part.rb +4 -4
  64. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/failure.rb +1 -1
  65. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/null.rb +1 -1
  66. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/success/commands/generate_got_jsend_attributes_part.rb +4 -4
  67. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/success.rb +1 -1
  68. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers.rb +3 -3
  69. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result.rb +4 -4
  70. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_code.rb +5 -5
  71. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_data.rb +5 -5
  72. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_message.rb +5 -5
  73. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_service.rb +5 -5
  74. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_status.rb +5 -5
  75. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_step.rb +6 -6
  76. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands/validate_result_type.rb +5 -5
  77. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator.rb +3 -3
  78. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/exceptions.rb +1 -1
  79. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base.rb +15 -15
  80. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_error.rb +1 -1
  81. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_failure.rb +1 -1
  82. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_not_error.rb +1 -1
  83. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_not_failure.rb +1 -1
  84. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_not_success.rb +1 -1
  85. data/lib/convenient_service/rspec/matchers/{custom → classes}/results/be_success.rb +1 -1
  86. data/lib/convenient_service/rspec/matchers/classes.rb +5 -0
  87. data/lib/convenient_service/rspec/matchers/delegate_to.rb +1 -1
  88. data/lib/convenient_service/rspec/matchers/export.rb +1 -1
  89. data/lib/convenient_service/rspec/matchers/include_module.rb +1 -1
  90. data/lib/convenient_service/rspec/matchers/results/be_error.rb +1 -1
  91. data/lib/convenient_service/rspec/matchers/results/be_failure.rb +1 -1
  92. data/lib/convenient_service/rspec/matchers/results/be_not_error.rb +1 -1
  93. data/lib/convenient_service/rspec/matchers/results/be_not_failure.rb +1 -1
  94. data/lib/convenient_service/rspec/matchers/results/be_not_success.rb +1 -1
  95. data/lib/convenient_service/rspec/matchers/results/be_result.rb +6 -6
  96. data/lib/convenient_service/rspec/matchers/results/be_success.rb +1 -1
  97. data/lib/convenient_service/rspec/matchers.rb +6 -28
  98. data/lib/convenient_service/rspec/{helpers/custom → primitive_helpers/classes}/ignoring_exception/exceptions.rb +2 -2
  99. data/lib/convenient_service/rspec/{helpers/custom → primitive_helpers/classes}/ignoring_exception.rb +3 -3
  100. data/lib/convenient_service/rspec/{helpers/custom → primitive_helpers/classes}/in_threads.rb +2 -2
  101. data/lib/convenient_service/rspec/primitive_helpers/classes.rb +4 -0
  102. data/lib/convenient_service/rspec/primitive_helpers/ignoring_exception.rb +13 -0
  103. data/lib/convenient_service/rspec/{helpers → primitive_helpers}/in_threads.rb +2 -2
  104. data/lib/convenient_service/rspec/primitive_helpers.rb +19 -0
  105. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/be_descendant_of.rb +2 -2
  106. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/be_direct_descendant_of.rb +2 -2
  107. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/cache_its_value.rb +2 -2
  108. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/be_descendant_of.rb +2 -2
  109. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/be_direct_descendant_of.rb +2 -2
  110. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/cache_its_value.rb +2 -2
  111. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/commands/generate_printable_method.rb +2 -2
  112. 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
  113. 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
  114. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/arguments.rb +2 -2
  115. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/base.rb +5 -5
  116. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/return_its_value.rb +2 -2
  117. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/with_any_arguments.rb +2 -2
  118. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/with_concrete_arguments.rb +2 -2
  119. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/without_arguments.rb +2 -2
  120. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/values/base.rb +4 -4
  121. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/values/with_calling_original.rb +2 -2
  122. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/values/without_calling_original.rb +2 -2
  123. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings_collection/exceptions.rb +2 -2
  124. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings_collection.rb +13 -13
  125. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/delegation.rb +3 -3
  126. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher.rb +13 -13
  127. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to.rb +13 -13
  128. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/extend_module.rb +2 -2
  129. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_abstract_method.rb +2 -2
  130. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_alias_method.rb +2 -2
  131. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_attr_accessor.rb +4 -4
  132. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_attr_reader.rb +2 -2
  133. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/have_attr_writer.rb +2 -2
  134. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/include_module.rb +2 -2
  135. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/prepend_module.rb +2 -2
  136. data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/singleton_prepend_module.rb +2 -2
  137. data/lib/convenient_service/rspec/primitive_matchers/classes.rb +15 -0
  138. data/lib/convenient_service/rspec/primitive_matchers/delegate_to.rb +13 -0
  139. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/extend_module.rb +2 -2
  140. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_abstract_method.rb +2 -2
  141. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_alias_method.rb +2 -2
  142. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_attr_accessor.rb +2 -2
  143. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_attr_reader.rb +2 -2
  144. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/have_attr_writer.rb +2 -2
  145. data/lib/convenient_service/rspec/primitive_matchers/include_module.rb +13 -0
  146. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/prepend_module.rb +2 -2
  147. data/lib/convenient_service/rspec/{matchers → primitive_matchers}/singleton_prepend_module.rb +2 -2
  148. data/lib/convenient_service/rspec/primitive_matchers.rb +41 -0
  149. data/lib/convenient_service/rspec.rb +3 -0
  150. data/lib/convenient_service/{configs → service/configs}/aliases.rb +1 -1
  151. data/lib/convenient_service/{configs → service/configs}/awesome_print_inspect/aliases.rb +1 -1
  152. data/lib/convenient_service/service/configs/awesome_print_inspect.rb +61 -0
  153. data/lib/convenient_service/service/configs/minimal.rb +261 -0
  154. data/lib/convenient_service/{configs → service/configs}/standard/aliases.rb +1 -1
  155. data/lib/convenient_service/service/configs/standard/v1.rb +185 -0
  156. data/lib/convenient_service/service/configs/standard.rb +238 -0
  157. data/lib/convenient_service/service/plugins/can_have_steps/concern.rb +9 -3
  158. data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value/exceptions.rb +32 -0
  159. data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value/middleware.rb +33 -0
  160. data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/raises_on_not_result_return_value.rb +4 -0
  161. data/lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins.rb +1 -0
  162. data/lib/convenient_service/service/plugins/can_have_steps/entities/step_collection.rb +16 -0
  163. data/lib/convenient_service/service.rb +1 -0
  164. data/lib/convenient_service/support/dependency_container/commands.rb +0 -1
  165. data/lib/convenient_service/support/dependency_container.rb +0 -1
  166. data/lib/convenient_service/version.rb +1 -1
  167. data/lib/convenient_service.rb +0 -1
  168. data/yard/yard-convenient_service_concern.rb +45 -0
  169. metadata +137 -119
  170. data/lib/convenient_service/configs/awesome_print_inspect.rb +0 -59
  171. data/lib/convenient_service/configs/minimal.rb +0 -257
  172. data/lib/convenient_service/configs/standard/v1.rb +0 -183
  173. data/lib/convenient_service/configs/standard.rb +0 -234
  174. data/lib/convenient_service/rspec/helpers/custom.rb +0 -6
  175. data/lib/convenient_service/rspec/matchers/custom.rb +0 -18
  176. data/lib/convenient_service/support/dependency_container/commands/define_entry.rb +0 -49
  177. data/lib/convenient_service/support/dependency_container/entry.rb +0 -22
  178. /data/lib/convenient_service/rspec/helpers/{custom → classes}/stub_service/entities.rb +0 -0
  179. /data/lib/convenient_service/rspec/helpers/{custom → classes}/wrap_method/entities.rb +0 -0
  180. /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/base/commands.rb +0 -0
  181. /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/error/commands.rb +0 -0
  182. /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/failure/commands.rb +0 -0
  183. /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/printers/success/commands.rb +0 -0
  184. /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities/validator/commands.rb +0 -0
  185. /data/lib/convenient_service/rspec/matchers/{custom → classes}/results/base/entities.rb +0 -0
  186. /data/lib/convenient_service/rspec/matchers/{custom → classes}/results.rb +0 -0
  187. /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/commands.rb +0 -0
  188. /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings/sub_matchers/arguments/commands.rb +0 -0
  189. /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities/chainings.rb +0 -0
  190. /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities/matcher/entities.rb +0 -0
  191. /data/lib/convenient_service/rspec/{matchers/custom → primitive_matchers/classes}/delegate_to/entities.rb +0 -0
  192. /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 Custom
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::Custom::Results::Base::Entities::Printers::Success]
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::Custom::Results::Base::Entities::Chain]
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::Custom::Results::Base::Entities::Printers::Base]
49
+ # @param printer [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
50
50
  # @return [void]
51
51
  #
52
52
  def initialize(printer:)
@@ -5,7 +5,7 @@ require_relative "success/commands"
5
5
  module ConvenientService
6
6
  module RSpec
7
7
  module Matchers
8
- module Custom
8
+ module Classes
9
9
  module Results
10
10
  class Base
11
11
  module Entities
@@ -9,7 +9,7 @@ require_relative "printers/success"
9
9
  module ConvenientService
10
10
  module RSpec
11
11
  module Matchers
12
- module Custom
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::Custom::Results::Base]
22
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Printers::Base]
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 Custom
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::Custom::Results::Base::Entities::Validator]
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::Custom::Results::Base::Entities::Validator]
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::Custom::Results::Base::Exceptions::InvalidStep]
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 Custom
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::Custom::Results::Base::Entities::Validator]
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::Custom::Results::Base]
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::Custom::Results::Base::Entities::Chain]
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::Custom::Results::Base::Entities::Validator]
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 Custom
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::Custom::Results::Base::Entities::Validator]
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::Custom::Results::Base]
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::Custom::Results::Base::Entities::Chain]
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::Custom::Results::Base::Entities::Validator]
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 Custom
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::Custom::Results::Base::Entities::Validator]
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::Custom::Results::Base]
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::Custom::Results::Base::Entities::Chain]
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::Custom::Results::Base::Entities::Validator]
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 Custom
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::Custom::Results::Base::Entities::Validator]
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::Custom::Results::Base]
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::Custom::Results::Base::Entities::Chain]
40
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
41
41
  #
42
42
  delegate :chain, to: :matcher
43
43
 
@@ -51,7 +51,7 @@ module ConvenientService
51
51
  ##
52
52
  # @api private
53
53
  #
54
- # @param validator [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Validator]
54
+ # @param validator [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
55
55
  # @return [void]
56
56
  #
57
57
  def initialize(validator:)
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
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::Custom::Results::Base::Entities::Validator]
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::Custom::Results::Base]
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::Custom::Results::Base::Entities::Chain]
40
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
41
41
  #
42
42
  delegate :chain, to: :matcher
43
43
 
@@ -51,7 +51,7 @@ module ConvenientService
51
51
  ##
52
52
  # @api private
53
53
  #
54
- # @param validator [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Validator]
54
+ # @param validator [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
55
55
  # @return [void]
56
56
  #
57
57
  def initialize(validator:)
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
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::Custom::Results::Base::Entities::Validator]
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::Custom::Results::Base]
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::Custom::Results::Base::Entities::Chain]
40
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
41
41
  #
42
42
  delegate :chain, to: :matcher
43
43
 
@@ -51,7 +51,7 @@ module ConvenientService
51
51
  ##
52
52
  # @api private
53
53
  #
54
- # @param validator [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Validator]
54
+ # @param validator [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
55
55
  # @return [void]
56
56
  #
57
57
  def initialize(validator:)
@@ -62,7 +62,7 @@ module ConvenientService
62
62
  # @api private
63
63
  #
64
64
  # @return [Boolean]
65
- # @raise [ConvenientService::RSpec::Matchers::Custom::Results::Base::Exceptions::InvalidStep]
65
+ # @raise [ConvenientService::RSpec::Matchers::Classes::Results::Base::Exceptions::InvalidStep]
66
66
  #
67
67
  # @internal
68
68
  # TODO: Import via commands.
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
6
+ module Classes
7
7
  module Results
8
8
  class Base
9
9
  module Entities
@@ -17,14 +17,14 @@ module ConvenientService
17
17
  # @api private
18
18
  #
19
19
  # @!attribute [r] validator
20
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Validator]
20
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
21
21
  #
22
22
  attr_reader :validator
23
23
 
24
24
  ##
25
25
  # @api private
26
26
  #
27
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
27
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
28
28
  #
29
29
  delegate :matcher, to: :validator
30
30
 
@@ -38,7 +38,7 @@ module ConvenientService
38
38
  ##
39
39
  # @api private
40
40
  #
41
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Chain]
41
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
42
42
  #
43
43
  delegate :chain, to: :matcher
44
44
 
@@ -57,7 +57,7 @@ module ConvenientService
57
57
  ##
58
58
  # @api private
59
59
  #
60
- # @param validator [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Validator]
60
+ # @param validator [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
61
61
  # @return [void]
62
62
  #
63
63
  def initialize(validator:)
@@ -5,7 +5,7 @@ require_relative "validator/commands"
5
5
  module ConvenientService
6
6
  module RSpec
7
7
  module Matchers
8
- module Custom
8
+ module Classes
9
9
  module Results
10
10
  class Base
11
11
  module Entities
@@ -14,14 +14,14 @@ module ConvenientService
14
14
  # @api private
15
15
  #
16
16
  # @!attribute [r] matcher
17
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
17
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
18
18
  #
19
19
  attr_reader :matcher
20
20
 
21
21
  ##
22
22
  # @api private
23
23
  #
24
- # @param matcher [ConvenientService::RSpec::Matchers::Custom::Results::Base]
24
+ # @param matcher [ConvenientService::RSpec::Matchers::Classes::Results::Base]
25
25
  # @return [void]
26
26
  #
27
27
  def initialize(matcher:)
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
6
+ module Classes
7
7
  module Results
8
8
  class Base
9
9
  module Exceptions
@@ -7,7 +7,7 @@ require_relative "base/exceptions"
7
7
  module ConvenientService
8
8
  module RSpec
9
9
  module Matchers
10
- module Custom
10
+ module Classes
11
11
  module Results
12
12
  class Base
13
13
  include Support::AbstractMethod
@@ -105,7 +105,7 @@ module ConvenientService
105
105
  # @api public
106
106
  #
107
107
  # @param data [Hash]
108
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
108
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
109
109
  #
110
110
  def with_data(data)
111
111
  chain.data = data
@@ -117,7 +117,7 @@ module ConvenientService
117
117
  # @api public
118
118
  #
119
119
  # @param data [Hash]
120
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
120
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
121
121
  #
122
122
  def and_data(data)
123
123
  chain.data = data
@@ -128,7 +128,7 @@ module ConvenientService
128
128
  ##
129
129
  # @api public
130
130
  #
131
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
131
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
132
132
  #
133
133
  def without_data
134
134
  chain.data = {}
@@ -140,7 +140,7 @@ module ConvenientService
140
140
  # @api public
141
141
  #
142
142
  # @param message [String]
143
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
143
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
144
144
  #
145
145
  def with_message(message)
146
146
  chain.message = message
@@ -152,7 +152,7 @@ module ConvenientService
152
152
  # @api public
153
153
  #
154
154
  # @param message [String]
155
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
155
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
156
156
  #
157
157
  def and_message(message)
158
158
  chain.message = message
@@ -164,7 +164,7 @@ module ConvenientService
164
164
  # @api public
165
165
  #
166
166
  # @return [String, Symbol]
167
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
167
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
168
168
  #
169
169
  def with_code(code)
170
170
  chain.code = code
@@ -176,7 +176,7 @@ module ConvenientService
176
176
  # @api public
177
177
  #
178
178
  # @return [String, Symbol]
179
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
179
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
180
180
  #
181
181
  def and_code(code)
182
182
  chain.code = code
@@ -188,7 +188,7 @@ module ConvenientService
188
188
  # @api public
189
189
  #
190
190
  # @param service [ConvenientService::Service]
191
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
191
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
192
192
  #
193
193
  def of_service(service)
194
194
  chain.service = service
@@ -200,7 +200,7 @@ module ConvenientService
200
200
  # @api public
201
201
  #
202
202
  # @param step [Class, Symbol]
203
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
203
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
204
204
  #
205
205
  def of_step(step)
206
206
  chain.step = step
@@ -211,7 +211,7 @@ module ConvenientService
211
211
  ##
212
212
  # @api public
213
213
  #
214
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
214
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
215
215
  #
216
216
  def without_step
217
217
  chain.step = nil
@@ -223,7 +223,7 @@ module ConvenientService
223
223
  # @api public
224
224
  #
225
225
  # @param comparison_method [Symbo, String]
226
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base]
226
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base]
227
227
  #
228
228
  def comparing_by(comparison_method)
229
229
  chain.comparison_method = comparison_method
@@ -234,7 +234,7 @@ module ConvenientService
234
234
  ##
235
235
  # @api private
236
236
  #
237
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Chain]
237
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Chain]
238
238
  #
239
239
  def chain
240
240
  @chain ||= Entities::Chain.new
@@ -243,7 +243,7 @@ module ConvenientService
243
243
  ##
244
244
  # @api private
245
245
  #
246
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Printers::Base]
246
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Printers::Base]
247
247
  #
248
248
  def printer
249
249
  @printer ||= Entities::Printers.create(matcher: self)
@@ -252,7 +252,7 @@ module ConvenientService
252
252
  ##
253
253
  # @api private
254
254
  #
255
- # @return [ConvenientService::RSpec::Matchers::Custom::Results::Base::Entities::Validator]
255
+ # @return [ConvenientService::RSpec::Matchers::Classes::Results::Base::Entities::Validator]
256
256
  #
257
257
  def validator
258
258
  @validator ||= Entities::Validator.new(matcher: self)
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
6
+ module Classes
7
7
  module Results
8
8
  class BeError < Results::Base
9
9
  ##
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
6
+ module Classes
7
7
  module Results
8
8
  class BeFailure < Results::Base
9
9
  ##
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
6
+ module Classes
7
7
  module Results
8
8
  class BeNotError < Results::Base
9
9
  ##
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
6
+ module Classes
7
7
  module Results
8
8
  class BeNotFailure < Results::Base
9
9
  ##
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
6
+ module Classes
7
7
  module Results
8
8
  class BeNotSuccess < Results::Base
9
9
  ##
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module RSpec
5
5
  module Matchers
6
- module Custom
6
+ module Classes
7
7
  module Results
8
8
  class BeSuccess < Results::Base
9
9
  ##
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "classes/call_chain_next"
4
+ require_relative "classes/export"
5
+ require_relative "classes/results"
@@ -5,7 +5,7 @@ module ConvenientService
5
5
  module Matchers
6
6
  module DelegateTo
7
7
  def delegate_to(...)
8
- Custom::DelegateTo.new(...)
8
+ RSpec::PrimitiveMatchers::Classes::DelegateTo.new(...)
9
9
  end
10
10
  end
11
11
  end