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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +61 -0
- data/Gemfile +2 -0
- data/Gemfile.lock +45 -20
- data/README.md +408 -262
- data/lib/simple_command_dispatcher/commands/command_callable.rb +104 -0
- data/lib/simple_command_dispatcher/commands/errors.rb +83 -0
- data/lib/simple_command_dispatcher/commands/utils.rb +20 -0
- data/lib/simple_command_dispatcher/configuration.rb +25 -6
- data/lib/simple_command_dispatcher/helpers/camelize.rb +1 -1
- data/lib/simple_command_dispatcher/logger.rb +21 -0
- data/lib/simple_command_dispatcher/services/command_service.rb +31 -31
- data/lib/simple_command_dispatcher/services/options_service.rb +37 -0
- data/lib/simple_command_dispatcher/version.rb +1 -1
- data/lib/simple_command_dispatcher.rb +38 -6
- data/simple_command_dispatcher.gemspec +6 -7
- metadata +19 -14
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.
|
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:
|
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: '
|
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: '
|
32
|
-
description:
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
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.
|
101
|
+
rubygems_version: 3.6.2
|
96
102
|
specification_version: 4
|
97
|
-
summary:
|
98
|
-
|
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: []
|