simple_command_dispatcher 2.0.1
Within a services API (rails-api for instance), you may have a need to execute different simple_commands or your own custom commands (service objects) based on one or more factors: multiple application, API version, user type, user credentials, etc. For example, your service API may need to execute either Api::Auth::V1::AuthenticateCommand.call(...) or Api::Auth::V2::AuthenticateCommand.call(...) based on the API version. simple_command_dispatcher allows you to execute either command with one line of code dynamically.
Gemfile:
=
Copier
Copié!
installation:
=
Dépendances de Runtime (2):
activesupport
>= 7.0.8, < 8.0
simple_command
>= 0.2.0, < 1.0
Dépendances de Development (10):
bundler
>= 2.4, < 3.0
colorize
>= 0.8.1, < 1.0
pry-byebug
>= 3.9, < 4.0
rake
>= 13.0, < 14.0
rdoc
>= 6.4, < 7.0
rspec
>= 3.10, < 4.0
rubocop
>= 1.35, < 2.0
rubocop-performance
>= 1.14, < 2.0
rubocop-rspec
~> 2.25
yard
>= 0.9.28, < 1.0