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
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "has_result_steps/commands"
4
- require_relative "has_result_steps/concern"
5
- require_relative "has_result_steps/middleware"
6
- require_relative "has_result_steps/entities"