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.

Required Ruby Version

>= 2.7.0

Authors

Gene M. Angelo, Jr.

Versions

  1. 5.0.0 February 18, 2026 (27.5 KB)
  2. 4.2.0 October 08, 2025 (27 KB)
  3. 4.1.0 July 14, 2025 (23.5 KB)
  4. 4.0.0 July 12, 2025 (22 KB)
  5. 3.0.4 August 03, 2024 (22.5 KB)
  6. 2.0.1 December 02, 2023 (22 KB)
Show all versions (27 total)

Pushed by

SHA 256 checksum