simple_command_dispatcher 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_command_dispatcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gene M. Angelo, Jr.
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
10
+ date: 2025-10-08 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: activesupport
@@ -18,7 +18,7 @@ dependencies:
18
18
  version: 7.0.8
19
19
  - - "<"
20
20
  - !ruby/object:Gem::Version
21
- version: '8.0'
21
+ version: '9.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -28,13 +28,14 @@ dependencies:
28
28
  version: 7.0.8
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
- version: '8.0'
32
- description: 'Within a services API (rails-api for instance), you may have a need
33
- to execute different simple_commands or your own custom commands (service objects)
34
- based on one or more factors: multiple application, API version, user type, user
35
- credentials, etc. For example, your service API may need to execute either Api::Auth::V1::AuthenticateCommand.call(...)
36
- or Api::Auth::V2::AuthenticateCommand.call(...) based on the API version. simple_command_dispatcher
37
- allows you to execute either command with one line of code dynamically.'
31
+ version: '9.0'
32
+ description: A lightweight Ruby gem that enables Rails applications to dynamically
33
+ execute command objects using convention over configuration. Automatically transforms
34
+ request paths into Ruby class constants, allowing controllers to dispatch commands
35
+ based on routes and parameters. Features the optional CommandCallable module for
36
+ standardized command interfaces with built-in success/failure tracking and error
37
+ handling. Perfect for clean, maintainable Rails APIs with RESTful route-to-command
38
+ mapping. Only depends on ActiveSupport for reliable camelization.
38
39
  email:
39
40
  - public.gma@gmail.com
40
41
  executables: []
@@ -61,14 +62,19 @@ files:
61
62
  - bin/setup
62
63
  - lib/core_ext/kernel.rb
63
64
  - lib/simple_command_dispatcher.rb
65
+ - lib/simple_command_dispatcher/commands/command_callable.rb
66
+ - lib/simple_command_dispatcher/commands/errors.rb
67
+ - lib/simple_command_dispatcher/commands/utils.rb
64
68
  - lib/simple_command_dispatcher/configuration.rb
65
69
  - lib/simple_command_dispatcher/errors.rb
66
70
  - lib/simple_command_dispatcher/errors/invalid_class_constant_error.rb
67
71
  - lib/simple_command_dispatcher/errors/required_class_method_missing_error.rb
68
72
  - lib/simple_command_dispatcher/helpers/camelize.rb
69
73
  - lib/simple_command_dispatcher/helpers/trim_all.rb
74
+ - lib/simple_command_dispatcher/logger.rb
70
75
  - lib/simple_command_dispatcher/services/command_namespace_service.rb
71
76
  - lib/simple_command_dispatcher/services/command_service.rb
77
+ - lib/simple_command_dispatcher/services/options_service.rb
72
78
  - lib/simple_command_dispatcher/version.rb
73
79
  - simple_command_dispatcher.gemspec
74
80
  homepage: https://github.com/gangelo/simple_command_dispatcher
@@ -92,9 +98,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
98
  - !ruby/object:Gem::Version
93
99
  version: '0'
94
100
  requirements: []
95
- rubygems_version: 3.6.8
101
+ rubygems_version: 3.6.2
96
102
  specification_version: 4
97
- summary: Provides a way to dispatch simple_command (ruby gem) commands or your own
98
- custom commands (service objects) in a more dynamic manner within your service API.
99
- Ideal for rails-api.
103
+ summary: Dynamic command execution for Rails applications using convention over configuration
104
+ - automatically maps request routes to command classes.
100
105
  test_files: []