convenient_service 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +30 -0
  3. data/lib/convenient_service/configs/minimal.rb +12 -2
  4. data/lib/convenient_service/configs/standard.rb +0 -4
  5. data/lib/convenient_service/examples/standard/gemfile/services/assert_npm_package_available.rb +10 -0
  6. data/lib/convenient_service/examples/standard/gemfile/services/format.rb +10 -0
  7. data/lib/convenient_service/examples/standard/gemfile/services/merge_sections.rb +10 -0
  8. data/lib/convenient_service/examples/standard/gemfile/services/parse_content.rb +10 -0
  9. data/lib/convenient_service/examples/standard/gemfile/services/read_file_content.rb +10 -0
  10. data/lib/convenient_service/examples/standard/gemfile/services/replace_file_content.rb +10 -0
  11. data/lib/convenient_service/examples/standard/request_params/services/extract_params_from_body.rb +10 -0
  12. data/lib/convenient_service/examples/standard/request_params/services/extract_params_from_path.rb +10 -0
  13. data/lib/convenient_service/examples/standard/request_params/services/validate_casted_params.rb +10 -0
  14. data/lib/convenient_service/examples/standard/request_params/services/validate_uncasted_params.rb +10 -0
  15. data/lib/convenient_service/factories/services.rb +40 -0
  16. data/lib/convenient_service/factories/step/instance.rb +11 -1
  17. data/lib/convenient_service/rspec/matchers/custom/delegate_to/entities/matcher.rb +2 -2
  18. data/lib/convenient_service/rspec/matchers/custom/results/base/commands/find_result_method_step.rb +4 -4
  19. data/lib/convenient_service/rspec/matchers/custom/results/base/commands/find_result_result_method_step.rb +4 -4
  20. data/lib/convenient_service/rspec/matchers/custom/results/base/commands/find_result_service_step.rb +1 -1
  21. data/lib/convenient_service/service/plugins/aliases.rb +1 -1
  22. data/lib/convenient_service/service/plugins/{has_result_method_steps → can_have_method_steps}/middleware.rb +12 -2
  23. data/lib/convenient_service/service/plugins/can_have_method_steps.rb +3 -0
  24. data/lib/convenient_service/service/plugins/can_have_result_step/middleware.rb +43 -0
  25. data/lib/convenient_service/service/plugins/can_have_result_step.rb +3 -0
  26. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/commands/create_step_class.rb +1 -1
  27. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/concern.rb +8 -8
  28. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/commands/cast_method.rb +1 -1
  29. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/commands/cast_method_caller.rb +1 -1
  30. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/commands/cast_method_direction.rb +1 -1
  31. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/commands/cast_method_key.rb +1 -1
  32. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/commands/cast_method_name.rb +1 -1
  33. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/commands/define_method_in_container.rb +3 -3
  34. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/concern/class_methods.rb +1 -1
  35. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/concern/instance_methods.rb +1 -1
  36. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/concern.rb +1 -1
  37. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/callers/alias.rb +1 -1
  38. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/callers/base.rb +1 -1
  39. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/callers/proc.rb +1 -1
  40. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/callers/raw.rb +1 -1
  41. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/callers/reassignment/commands/define_method_in_container.rb +1 -1
  42. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/callers/reassignment.rb +1 -1
  43. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/callers/usual.rb +1 -1
  44. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/directions/base.rb +1 -1
  45. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/directions/input.rb +1 -1
  46. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/directions/output.rb +1 -1
  47. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/key.rb +1 -1
  48. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/name.rb +1 -1
  49. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/values/reassignment.rb +1 -1
  50. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/errors.rb +1 -1
  51. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method.rb +1 -1
  52. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/service/class_methods.rb +1 -1
  53. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/service.rb +1 -1
  54. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/commands/cast_params.rb +1 -1
  55. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/commands/extract_params.rb +1 -1
  56. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/concern/instance_methods.rb +1 -1
  57. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/concern.rb +1 -1
  58. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/errors.rb +1 -1
  59. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/plugins/can_have_parent_result/middleware.rb +1 -1
  60. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/plugins/has_inspect/concern.rb +1 -1
  61. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/structs/params.rb +1 -1
  62. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step.rb +1 -1
  63. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step_collection.rb +2 -2
  64. data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/middleware.rb +4 -4
  65. data/lib/convenient_service/service/plugins/can_have_steps.rb +6 -0
  66. data/lib/convenient_service/service/plugins/can_have_stubbed_result/concern.rb +18 -1
  67. data/lib/convenient_service/service/plugins.rb +3 -2
  68. data/lib/convenient_service/version.rb +1 -1
  69. metadata +59 -57
  70. data/lib/convenient_service/service/plugins/has_result_method_steps.rb +0 -3
  71. data/lib/convenient_service/service/plugins/has_result_steps.rb +0 -6
  72. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/commands.rb +0 -0
  73. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/commands.rb +0 -0
  74. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/callers/reassignment/commands.rb +0 -0
  75. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/callers.rb +0 -0
  76. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/directions.rb +0 -0
  77. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities/values.rb +0 -0
  78. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/method/entities.rb +0 -0
  79. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/commands.rb +0 -0
  80. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/plugins/can_have_parent_result.rb +0 -0
  81. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/plugins/has_inspect.rb +0 -0
  82. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/plugins.rb +0 -0
  83. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities/step/structs.rb +0 -0
  84. /data/lib/convenient_service/service/plugins/{has_result_steps → can_have_steps}/entities.rb +0 -0
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Commands
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Commands
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Commands
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Commands
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Commands
@@ -43,13 +43,13 @@ module ConvenientService
43
43
 
44
44
  def not_completed_step_error
45
45
  <<~RUBY.chomp
46
- ::ConvenientService::Service::Plugins::HasResultSteps::Entities::Method::Errors::NotCompletedStep
46
+ ::ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Errors::NotCompletedStep
47
47
  RUBY
48
48
  end
49
49
 
50
50
  def not_existing_step_result_data_attribute_error
51
51
  <<~RUBY.chomp
52
- ::ConvenientService::Service::Plugins::HasResultSteps::Entities::Method::Errors::NotExistingStepResultDataAttribute
52
+ ::ConvenientService::Service::Plugins::CanHaveSteps::Entities::Method::Errors::NotExistingStepResultDataAttribute
53
53
  RUBY
54
54
  end
55
55
  end
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Concern
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Concern
@@ -6,7 +6,7 @@ require_relative "concern/class_methods"
6
6
  module ConvenientService
7
7
  module Service
8
8
  module Plugins
9
- module HasResultSteps
9
+ module CanHaveSteps
10
10
  module Entities
11
11
  class Method
12
12
  module Concern
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -5,7 +5,7 @@ require_relative "reassignment/commands"
5
5
  module ConvenientService
6
6
  module Service
7
7
  module Plugins
8
- module HasResultSteps
8
+ module CanHaveSteps
9
9
  module Entities
10
10
  class Method
11
11
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Entities
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Method
9
9
  module Errors
@@ -8,7 +8,7 @@ require_relative "method/errors"
8
8
  module ConvenientService
9
9
  module Service
10
10
  module Plugins
11
- module HasResultSteps
11
+ module CanHaveSteps
12
12
  module Entities
13
13
  class Method
14
14
  include Concern
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Service
9
9
  module ClassMethods
@@ -5,7 +5,7 @@ require_relative "service/class_methods"
5
5
  module ConvenientService
6
6
  module Service
7
7
  module Plugins
8
- module HasResultSteps
8
+ module CanHaveSteps
9
9
  module Entities
10
10
  ##
11
11
  # NOTE: Service is a wrapper for a service class (klass). For example:
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Step
9
9
  module Commands
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Step
9
9
  module Commands
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Step
9
9
  module Concern
@@ -5,7 +5,7 @@ require_relative "concern/instance_methods"
5
5
  module ConvenientService
6
6
  module Service
7
7
  module Plugins
8
- module HasResultSteps
8
+ module CanHaveSteps
9
9
  module Entities
10
10
  class Step
11
11
  module Concern
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Errors
8
8
  class StepHasNoOrganizer < ConvenientService::Error
9
9
  def initialize(step:)
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Step
9
9
  module Plugins
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Step
9
9
  module Plugins
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class Step
9
9
  module Structs
@@ -9,7 +9,7 @@ require_relative "step/structs"
9
9
  module ConvenientService
10
10
  module Service
11
11
  module Plugins
12
- module HasResultSteps
12
+ module CanHaveSteps
13
13
  module Entities
14
14
  class Step
15
15
  include Concern
@@ -3,7 +3,7 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  module Entities
8
8
  class StepCollection
9
9
  include ::Enumerable
@@ -43,7 +43,7 @@ module ConvenientService
43
43
  # Returns step by index.
44
44
  #
45
45
  # @param index [Integer]
46
- # @return [ConvenientService::Service::Plugins::HasResultSteps::Entities::Step]
46
+ # @return [ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step]
47
47
  #
48
48
  # @note Works in a similar way as `Array#[]`.
49
49
  # @see https://ruby-doc.org/core-2.7.0/Array.html#method-i-5B-5D
@@ -3,10 +3,10 @@
3
3
  module ConvenientService
4
4
  module Service
5
5
  module Plugins
6
- module HasResultSteps
6
+ module CanHaveSteps
7
7
  class Middleware < Core::MethodChainMiddleware
8
8
  ##
9
- # @return [ConvenientService::Service::Plugins::HasResultSteps::Entities::Step]
9
+ # @return [ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step]
10
10
  #
11
11
  def next(...)
12
12
  return chain.next(...) if entity.steps.none?
@@ -17,14 +17,14 @@ module ConvenientService
17
17
  private
18
18
 
19
19
  ##
20
- # @return [ConvenientService::Service::Plugins::HasResultSteps::Entities::Step]
20
+ # @return [ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step]
21
21
  #
22
22
  def last_step
23
23
  @last_step ||= entity.steps.find.with_index { |step, index| not_success?(step, index) } || entity.steps.last
24
24
  end
25
25
 
26
26
  ##
27
- # @return [ConvenientService::Service::Plugins::HasResultSteps::Entities::Step]
27
+ # @return [ConvenientService::Service::Plugins::CanHaveSteps::Entities::Step]
28
28
  #
29
29
  # @internal
30
30
  # NOTE: `entity.step(index)` is used as a hook (callbacks trigger).
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "can_have_steps/commands"
4
+ require_relative "can_have_steps/concern"
5
+ require_relative "can_have_steps/middleware"
6
+ require_relative "can_have_steps/entities"
@@ -22,7 +22,24 @@ module ConvenientService
22
22
  def stubbed_results
23
23
  return Support::Cache.new unless Support::Gems::RSpec.current_example
24
24
 
25
- cache = Utils::Object.instance_variable_fetch(::RSpec.current_example, :@__convenient_service_stubbed_results__) { Support::Cache.new }
25
+ ##
26
+ # IMPORTANT: ivar name with class and current thread enforces thread safety since there is no resource to share.
27
+ #
28
+ # TODO: Thread safety specs.
29
+ #
30
+ # NOTE: `self` is a service class in the current context. For example:
31
+ #
32
+ # before do
33
+ # stub_service(ConvenientService::Examples::Standard::Gemfile::Services::RunShell)
34
+ # .with_arguments(command: node_available_command)
35
+ # .to return_result(node_available_status)
36
+ # end
37
+ #
38
+ # # Then `self` is `ConvenientService::Examples::Standard::Gemfile::Services::RunShell`.
39
+ #
40
+ ivar_name = "@__convenient_service_stubbed_results__#{object_id}__#{Thread.current.object_id}__"
41
+
42
+ cache = Utils::Object.instance_variable_fetch(::RSpec.current_example, ivar_name) { Support::Cache.new }
26
43
 
27
44
  cache.scope(self)
28
45
  end
@@ -4,12 +4,13 @@
4
4
  # NOTE: Order matters.
5
5
  #
6
6
  require_relative "plugins/can_recalculate_result"
7
+ require_relative "plugins/can_have_method_steps"
8
+ require_relative "plugins/can_have_result_step"
9
+ require_relative "plugins/can_have_steps"
7
10
  require_relative "plugins/can_have_stubbed_result"
8
11
  require_relative "plugins/has_inspect"
9
12
  require_relative "plugins/has_result"
10
- require_relative "plugins/has_result_method_steps"
11
13
  require_relative "plugins/has_result_short_syntax"
12
- require_relative "plugins/has_result_steps"
13
14
  require_relative "plugins/raises_on_double_result"
14
15
  require_relative "plugins/wraps_result_in_db_transaction"
15
16
  require_relative "plugins/has_result_status_check_short_syntax"
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ConvenientService
4
- VERSION = "0.10.0"
4
+ VERSION = "0.11.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: convenient_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marian Kostyk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-03-01 00:00:00.000000000 Z
11
+ date: 2023-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -685,6 +685,63 @@ files:
685
685
  - lib/convenient_service/service.rb
686
686
  - lib/convenient_service/service/plugins.rb
687
687
  - lib/convenient_service/service/plugins/aliases.rb
688
+ - lib/convenient_service/service/plugins/can_have_method_steps.rb
689
+ - lib/convenient_service/service/plugins/can_have_method_steps/middleware.rb
690
+ - lib/convenient_service/service/plugins/can_have_result_step.rb
691
+ - lib/convenient_service/service/plugins/can_have_result_step/middleware.rb
692
+ - lib/convenient_service/service/plugins/can_have_steps.rb
693
+ - lib/convenient_service/service/plugins/can_have_steps/commands.rb
694
+ - lib/convenient_service/service/plugins/can_have_steps/commands/create_step_class.rb
695
+ - lib/convenient_service/service/plugins/can_have_steps/concern.rb
696
+ - lib/convenient_service/service/plugins/can_have_steps/entities.rb
697
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method.rb
698
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/commands.rb
699
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method.rb
700
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_caller.rb
701
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_direction.rb
702
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_key.rb
703
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/cast_method_name.rb
704
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/commands/define_method_in_container.rb
705
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/concern.rb
706
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/concern/class_methods.rb
707
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/concern/instance_methods.rb
708
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities.rb
709
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers.rb
710
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/alias.rb
711
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/base.rb
712
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/proc.rb
713
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/raw.rb
714
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/reassignment.rb
715
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/reassignment/commands.rb
716
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/reassignment/commands/define_method_in_container.rb
717
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/callers/usual.rb
718
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions.rb
719
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/base.rb
720
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/input.rb
721
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/directions/output.rb
722
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/key.rb
723
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/name.rb
724
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values.rb
725
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/entities/values/reassignment.rb
726
+ - lib/convenient_service/service/plugins/can_have_steps/entities/method/errors.rb
727
+ - lib/convenient_service/service/plugins/can_have_steps/entities/service.rb
728
+ - lib/convenient_service/service/plugins/can_have_steps/entities/service/class_methods.rb
729
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step.rb
730
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/commands.rb
731
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/cast_params.rb
732
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/commands/extract_params.rb
733
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/concern.rb
734
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/concern/instance_methods.rb
735
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/errors.rb
736
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins.rb
737
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_parent_result.rb
738
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/can_have_parent_result/middleware.rb
739
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_inspect.rb
740
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/plugins/has_inspect/concern.rb
741
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/structs.rb
742
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step/structs/params.rb
743
+ - lib/convenient_service/service/plugins/can_have_steps/entities/step_collection.rb
744
+ - lib/convenient_service/service/plugins/can_have_steps/middleware.rb
688
745
  - lib/convenient_service/service/plugins/can_have_stubbed_result.rb
689
746
  - lib/convenient_service/service/plugins/can_have_stubbed_result/concern.rb
690
747
  - lib/convenient_service/service/plugins/can_have_stubbed_result/middleware.rb
@@ -749,8 +806,6 @@ files:
749
806
  - lib/convenient_service/service/plugins/has_result/entities/result/plugins/raises_on_not_checked_result_status/middleware.rb
750
807
  - lib/convenient_service/service/plugins/has_result/errors.rb
751
808
  - lib/convenient_service/service/plugins/has_result/middleware.rb
752
- - lib/convenient_service/service/plugins/has_result_method_steps.rb
753
- - lib/convenient_service/service/plugins/has_result_method_steps/middleware.rb
754
809
  - lib/convenient_service/service/plugins/has_result_params_validations/using_active_model_validations.rb
755
810
  - lib/convenient_service/service/plugins/has_result_params_validations/using_active_model_validations/concern.rb
756
811
  - lib/convenient_service/service/plugins/has_result_params_validations/using_active_model_validations/middleware.rb
@@ -777,59 +832,6 @@ files:
777
832
  - lib/convenient_service/service/plugins/has_result_short_syntax/success/middleware.rb
778
833
  - lib/convenient_service/service/plugins/has_result_status_check_short_syntax.rb
779
834
  - lib/convenient_service/service/plugins/has_result_status_check_short_syntax/concern.rb
780
- - lib/convenient_service/service/plugins/has_result_steps.rb
781
- - lib/convenient_service/service/plugins/has_result_steps/commands.rb
782
- - lib/convenient_service/service/plugins/has_result_steps/commands/create_step_class.rb
783
- - lib/convenient_service/service/plugins/has_result_steps/concern.rb
784
- - lib/convenient_service/service/plugins/has_result_steps/entities.rb
785
- - lib/convenient_service/service/plugins/has_result_steps/entities/method.rb
786
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/commands.rb
787
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/commands/cast_method.rb
788
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/commands/cast_method_caller.rb
789
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/commands/cast_method_direction.rb
790
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/commands/cast_method_key.rb
791
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/commands/cast_method_name.rb
792
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/commands/define_method_in_container.rb
793
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/concern.rb
794
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/concern/class_methods.rb
795
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/concern/instance_methods.rb
796
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities.rb
797
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers.rb
798
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/alias.rb
799
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/base.rb
800
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/proc.rb
801
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/raw.rb
802
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/reassignment.rb
803
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/reassignment/commands.rb
804
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/reassignment/commands/define_method_in_container.rb
805
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/callers/usual.rb
806
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/directions.rb
807
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/directions/base.rb
808
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/directions/input.rb
809
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/directions/output.rb
810
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/key.rb
811
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/name.rb
812
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values.rb
813
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/entities/values/reassignment.rb
814
- - lib/convenient_service/service/plugins/has_result_steps/entities/method/errors.rb
815
- - lib/convenient_service/service/plugins/has_result_steps/entities/service.rb
816
- - lib/convenient_service/service/plugins/has_result_steps/entities/service/class_methods.rb
817
- - lib/convenient_service/service/plugins/has_result_steps/entities/step.rb
818
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/commands.rb
819
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/cast_params.rb
820
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/commands/extract_params.rb
821
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/concern.rb
822
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/concern/instance_methods.rb
823
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/errors.rb
824
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/plugins.rb
825
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/plugins/can_have_parent_result.rb
826
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/plugins/can_have_parent_result/middleware.rb
827
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/plugins/has_inspect.rb
828
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/plugins/has_inspect/concern.rb
829
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/structs.rb
830
- - lib/convenient_service/service/plugins/has_result_steps/entities/step/structs/params.rb
831
- - lib/convenient_service/service/plugins/has_result_steps/entities/step_collection.rb
832
- - lib/convenient_service/service/plugins/has_result_steps/middleware.rb
833
835
  - lib/convenient_service/service/plugins/raises_on_double_result.rb
834
836
  - lib/convenient_service/service/plugins/raises_on_double_result/errors.rb
835
837
  - lib/convenient_service/service/plugins/raises_on_double_result/middleware.rb
@@ -1,3 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "has_result_method_steps/middleware"