simple_command_dispatcher 4.2.0 → 5.0.1
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/.github/workflows/ruby.yml +25 -27
- data/.rubocop.yml +1 -1
- data/.ruby-version +1 -1
- data/CHANGELOG.md +44 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +73 -56
- data/README.md +30 -4
- data/lib/simple_command_dispatcher/version.rb +1 -1
- data/simple_command_dispatcher.gemspec +1 -1
- metadata +5 -7
- data/.travis.yml +0 -5
- data/Jenkinsfile +0 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 47e4d336ee05200e14af2362804e03b323c86457f9d24cab690c3f3510af0064
|
|
4
|
+
data.tar.gz: dc637684ab1ef9b0d499a462fc9bce1abbe8f3a591178a3fd4f7855189b35ea6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c572789bcabde01f7bf824ac2fd5ee54cf930554c4655ac8bf05760d74c11bc560f30050480e58b2f6ea615e305aa10f38c574f7681bd2841d2704bc13febf04
|
|
7
|
+
data.tar.gz: ccc53bd6d776123c777f068b05a51a425edf8973bc325c210b4ac655476a94b9fddf3d4cf4b5ddd3739fe4bde76b89d6c53d1d91763689d04f7ab415b5318c81
|
data/.github/workflows/ruby.yml
CHANGED
|
@@ -11,52 +11,50 @@ permissions:
|
|
|
11
11
|
|
|
12
12
|
jobs:
|
|
13
13
|
test:
|
|
14
|
+
name: Ruby ${{ matrix.ruby }} / ${{ matrix.os }}
|
|
14
15
|
runs-on: ${{ matrix.os }}
|
|
16
|
+
timeout-minutes: 20
|
|
15
17
|
strategy:
|
|
18
|
+
fail-fast: false
|
|
16
19
|
matrix:
|
|
17
|
-
# See https://github.com/actions/runner-images
|
|
18
20
|
os:
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
#
|
|
29
|
-
ruby: ["
|
|
21
|
+
- ubuntu-22.04
|
|
22
|
+
- ubuntu-24.04
|
|
23
|
+
- ubuntu-latest
|
|
24
|
+
- ubuntu-24.04-arm
|
|
25
|
+
- macos-15-intel
|
|
26
|
+
- macos-15
|
|
27
|
+
- macos-26
|
|
28
|
+
- windows-2022
|
|
29
|
+
- windows-2025
|
|
30
|
+
# Exercise both the minimum supported Ruby and the latest 4.0 patch.
|
|
31
|
+
ruby: ["4.0.10", "4.0"]
|
|
32
|
+
env:
|
|
33
|
+
BUNDLE_FROZEN: "true"
|
|
30
34
|
|
|
31
35
|
steps:
|
|
32
|
-
- uses: actions/checkout@
|
|
36
|
+
- uses: actions/checkout@v6
|
|
33
37
|
|
|
34
38
|
- name: Set timezone on Linux
|
|
35
|
-
if:
|
|
39
|
+
if: runner.os == 'Linux'
|
|
36
40
|
run: sudo timedatectl set-timezone 'America/New_York'
|
|
37
41
|
|
|
38
42
|
- name: Set timezone on macOS
|
|
39
|
-
if:
|
|
43
|
+
if: runner.os == 'macOS'
|
|
40
44
|
run: sudo systemsetup -settimezone America/New_York
|
|
41
45
|
|
|
42
46
|
- name: Set timezone on Windows
|
|
43
|
-
if:
|
|
47
|
+
if: runner.os == 'Windows'
|
|
44
48
|
run: tzutil /s "Eastern Standard Time"
|
|
45
49
|
|
|
46
|
-
- name: Set up Ruby
|
|
50
|
+
- name: Set up Ruby and locked dependencies
|
|
47
51
|
uses: ruby/setup-ruby@v1
|
|
48
52
|
with:
|
|
49
53
|
ruby-version: ${{ matrix.ruby }}
|
|
50
54
|
bundler-cache: true
|
|
51
55
|
|
|
52
|
-
- name:
|
|
53
|
-
run: gem update --system
|
|
54
|
-
|
|
55
|
-
- name: Disable bundler frozen setting
|
|
56
|
-
run: bundle config set frozen false
|
|
57
|
-
|
|
58
|
-
- name: Install dependencies
|
|
59
|
-
run: bundle install
|
|
60
|
-
|
|
61
|
-
- name: Run tests
|
|
56
|
+
- name: Run tests and lint
|
|
62
57
|
run: bundle exec rake
|
|
58
|
+
|
|
59
|
+
- name: Verify lockfile is unchanged
|
|
60
|
+
run: git diff --exit-code -- Gemfile.lock
|
data/.rubocop.yml
CHANGED
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
4.0.10
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## Version 5.0.1 - 2026-11-25
|
|
4
|
+
|
|
5
|
+
- **Ruby compatibility**:
|
|
6
|
+
|
|
7
|
+
- Raise the development Ruby pin and minimum supported Ruby version to 4.0.10 for security fixes.
|
|
8
|
+
- Ruby 4.0.1 through 4.0.9 are no longer supported; upgrade Ruby before updating this gem.
|
|
9
|
+
- The dispatcher and CommandCallable interfaces are unchanged.
|
|
10
|
+
|
|
11
|
+
- **Dependency updates**:
|
|
12
|
+
|
|
13
|
+
- Refresh locked development and test dependencies, including ActiveSupport 8.1.4.1, concurrent-ruby 1.3.8, JSON 3.2.0, and ERB 6.0.7.
|
|
14
|
+
- Update the locked Bundler version to 2.5.23.
|
|
15
|
+
- The ActiveSupport dependency constraint is unchanged; consuming applications retain their own lockfiles.
|
|
16
|
+
|
|
17
|
+
- **CI updates**:
|
|
18
|
+
|
|
19
|
+
- Run tests and lint in 18 jobs covering minimum Ruby 4.0.10 and the latest Ruby 4.0 patch.
|
|
20
|
+
- Cover supported Linux, macOS, and Windows runners, including Linux ARM64 and both Intel and ARM64 macOS.
|
|
21
|
+
- Replace the retired macOS 14 runner and update checkout to v6.
|
|
22
|
+
- Add the corresponding Linux ARM64 and macOS lockfile platforms.
|
|
23
|
+
- Keep CI dependencies frozen to the committed lockfile and verify tests leave it unchanged.
|
|
24
|
+
|
|
25
|
+
## Version 5.0.0 - 2026-02-17
|
|
26
|
+
|
|
27
|
+
- **Breaking Changes**:
|
|
28
|
+
|
|
29
|
+
- Minimum Ruby version changed from 3.3 to 4.0.1
|
|
30
|
+
- Ruby version constraint updated to `>= 4.0.1`, `< 5.0`
|
|
31
|
+
|
|
32
|
+
- **CI/CD Updates**:
|
|
33
|
+
|
|
34
|
+
- Updated GitHub Actions matrix to test against Ruby 4.0
|
|
35
|
+
- Updated `actions/checkout` from v3 to v4
|
|
36
|
+
- Removed stale `.travis.yml` (referenced Ruby 2.0.0)
|
|
37
|
+
- Removed stale `Jenkinsfile` (referenced Ruby 3.2.6)
|
|
38
|
+
|
|
39
|
+
- **Dependency Updates**:
|
|
40
|
+
|
|
41
|
+
- Added `fiddle` gem for Windows compatibility (extracted from default gems in Ruby 4.0.0)
|
|
42
|
+
- Updated all gem dependencies via `bundle update`
|
|
43
|
+
- ActiveSupport updated to 8.1.2
|
|
44
|
+
- RuboCop updated to 1.84.2
|
|
45
|
+
- RSpec updated to 3.13.2
|
|
46
|
+
|
|
3
47
|
## Version 4.2.0 - 2025-10-07
|
|
4
48
|
|
|
5
49
|
- **New Feature: Configurable Logger with Debug Mode**:
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
simple_command_dispatcher (
|
|
4
|
+
simple_command_dispatcher (5.0.1)
|
|
5
5
|
activesupport (>= 7.0.8, < 9.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
8
8
|
remote: https://rubygems.org/
|
|
9
9
|
specs:
|
|
10
|
-
activesupport (8.
|
|
10
|
+
activesupport (8.1.4.1)
|
|
11
11
|
base64
|
|
12
|
-
benchmark (>= 0.3)
|
|
13
12
|
bigdecimal
|
|
14
13
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
15
14
|
connection_pool (>= 2.2.5)
|
|
16
15
|
drb
|
|
17
16
|
i18n (>= 1.6, < 2)
|
|
17
|
+
json
|
|
18
18
|
logger (>= 1.4.2)
|
|
19
19
|
minitest (>= 5.1)
|
|
20
20
|
securerandom (>= 0.3)
|
|
@@ -22,95 +22,108 @@ GEM
|
|
|
22
22
|
uri (>= 0.13.1)
|
|
23
23
|
ast (2.4.3)
|
|
24
24
|
base64 (0.3.0)
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
bigdecimal (4.1.3)
|
|
26
|
+
byebug (13.0.0)
|
|
27
|
+
reline (>= 0.6.0)
|
|
28
28
|
coderay (1.1.3)
|
|
29
29
|
colorize (1.1.0)
|
|
30
|
-
concurrent-ruby (1.3.
|
|
31
|
-
connection_pool (
|
|
32
|
-
date (3.4.1)
|
|
30
|
+
concurrent-ruby (1.3.8)
|
|
31
|
+
connection_pool (3.0.3)
|
|
33
32
|
diff-lcs (1.6.2)
|
|
34
33
|
docile (1.4.1)
|
|
35
34
|
drb (2.2.3)
|
|
36
|
-
erb (
|
|
37
|
-
|
|
35
|
+
erb (6.0.7)
|
|
36
|
+
fiddle (1.1.8)
|
|
37
|
+
i18n (1.15.2)
|
|
38
38
|
concurrent-ruby (~> 1.0)
|
|
39
|
-
io-console (0.
|
|
40
|
-
irb (1.
|
|
39
|
+
io-console (0.9.5)
|
|
40
|
+
irb (1.19.0)
|
|
41
41
|
pp (>= 0.6.0)
|
|
42
|
+
prism (>= 1.3.0)
|
|
42
43
|
rdoc (>= 4.0.0)
|
|
43
44
|
reline (>= 0.4.2)
|
|
44
|
-
json (2.
|
|
45
|
-
language_server-protocol (3.17.0.
|
|
45
|
+
json (3.2.0)
|
|
46
|
+
language_server-protocol (3.17.0.6)
|
|
46
47
|
lint_roller (1.1.0)
|
|
47
48
|
logger (1.7.0)
|
|
48
49
|
method_source (1.1.0)
|
|
49
|
-
minitest (
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
minitest (6.1.0)
|
|
51
|
+
drb (~> 2.0)
|
|
52
|
+
prism (>= 1.5, < 3)
|
|
53
|
+
parallel (2.3.0)
|
|
54
|
+
parser (3.3.14.0)
|
|
52
55
|
ast (~> 2.4.1)
|
|
53
56
|
racc
|
|
54
|
-
pp (0.6.
|
|
57
|
+
pp (0.6.4)
|
|
55
58
|
prettyprint
|
|
56
|
-
prettyprint (0.2.
|
|
57
|
-
prism (1.
|
|
58
|
-
|
|
59
|
+
prettyprint (0.2.1)
|
|
60
|
+
prism (2.1.0-aarch64-linux-gnu)
|
|
61
|
+
prism (2.1.0-arm64-darwin)
|
|
62
|
+
prism (2.1.0-x64-mingw-ucrt)
|
|
63
|
+
prism (2.1.0-x86_64-darwin)
|
|
64
|
+
prism (2.1.0-x86_64-linux-gnu)
|
|
65
|
+
pry (0.16.1)
|
|
59
66
|
coderay (~> 1.1)
|
|
60
67
|
method_source (~> 1.0)
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
date
|
|
66
|
-
stringio
|
|
68
|
+
reline (>= 0.6.0)
|
|
69
|
+
pry-byebug (3.12.0)
|
|
70
|
+
byebug (~> 13.0)
|
|
71
|
+
pry (>= 0.13, < 0.17)
|
|
67
72
|
racc (1.8.1)
|
|
68
73
|
rainbow (3.1.1)
|
|
69
|
-
rake (13.
|
|
70
|
-
|
|
74
|
+
rake (13.4.2)
|
|
75
|
+
rbs (4.2.0)
|
|
76
|
+
logger
|
|
77
|
+
prism (>= 1.6.0)
|
|
78
|
+
tsort
|
|
79
|
+
rdoc (8.1.0)
|
|
71
80
|
erb
|
|
72
|
-
|
|
81
|
+
prism (>= 1.6.0)
|
|
82
|
+
rbs (>= 4.0.0)
|
|
73
83
|
tsort
|
|
74
|
-
regexp_parser (2.
|
|
75
|
-
reline (0.
|
|
84
|
+
regexp_parser (2.13.4)
|
|
85
|
+
reline (0.7.0)
|
|
76
86
|
io-console (~> 0.5)
|
|
77
|
-
rspec (3.13.
|
|
87
|
+
rspec (3.13.2)
|
|
78
88
|
rspec-core (~> 3.13.0)
|
|
79
89
|
rspec-expectations (~> 3.13.0)
|
|
80
90
|
rspec-mocks (~> 3.13.0)
|
|
81
|
-
rspec-core (3.13.
|
|
91
|
+
rspec-core (3.13.7)
|
|
82
92
|
rspec-support (~> 3.13.0)
|
|
83
|
-
rspec-expectations (3.13.
|
|
93
|
+
rspec-expectations (3.13.6)
|
|
84
94
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
85
95
|
rspec-support (~> 3.13.0)
|
|
86
|
-
rspec-mocks (3.13.
|
|
96
|
+
rspec-mocks (3.13.9)
|
|
87
97
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
88
98
|
rspec-support (~> 3.13.0)
|
|
89
|
-
rspec-support (3.13.
|
|
90
|
-
rubocop (1.
|
|
91
|
-
json (
|
|
99
|
+
rspec-support (3.13.8)
|
|
100
|
+
rubocop (1.92.3)
|
|
101
|
+
json (>= 2.3)
|
|
92
102
|
language_server-protocol (~> 3.17.0.2)
|
|
93
103
|
lint_roller (~> 1.1.0)
|
|
94
|
-
parallel (
|
|
104
|
+
parallel (>= 1.10)
|
|
95
105
|
parser (>= 3.3.0.2)
|
|
96
106
|
rainbow (>= 2.2.2, < 4.0)
|
|
97
|
-
regexp_parser (>= 2.
|
|
98
|
-
rubocop-ast (>= 1.
|
|
107
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
108
|
+
rubocop-ast (>= 1.49.0, < 2.0)
|
|
99
109
|
ruby-progressbar (~> 1.7)
|
|
100
110
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
101
|
-
rubocop-ast (1.
|
|
111
|
+
rubocop-ast (1.54.0)
|
|
112
|
+
ast (~> 2.4)
|
|
102
113
|
parser (>= 3.3.7.2)
|
|
103
|
-
prism (
|
|
104
|
-
|
|
114
|
+
prism (>= 1.7)
|
|
115
|
+
racc
|
|
116
|
+
rubocop-performance (1.27.0)
|
|
105
117
|
lint_roller (~> 1.1)
|
|
106
|
-
rubocop (>= 1.
|
|
107
|
-
rubocop-ast (>= 1.
|
|
118
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
119
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
108
120
|
rubocop-rake (0.7.1)
|
|
109
121
|
lint_roller (~> 1.1)
|
|
110
122
|
rubocop (>= 1.72.1)
|
|
111
|
-
rubocop-rspec (3.
|
|
123
|
+
rubocop-rspec (3.10.2)
|
|
112
124
|
lint_roller (~> 1.1)
|
|
113
|
-
|
|
125
|
+
regexp_parser (>= 2.0)
|
|
126
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
114
127
|
ruby-progressbar (1.13.0)
|
|
115
128
|
securerandom (0.4.1)
|
|
116
129
|
simplecov (0.22.0)
|
|
@@ -119,19 +132,22 @@ GEM
|
|
|
119
132
|
simplecov_json_formatter (~> 0.1)
|
|
120
133
|
simplecov-html (0.13.2)
|
|
121
134
|
simplecov_json_formatter (0.1.4)
|
|
122
|
-
stringio (3.1.7)
|
|
123
135
|
tsort (0.2.0)
|
|
124
136
|
tzinfo (2.0.6)
|
|
125
137
|
concurrent-ruby (~> 1.0)
|
|
126
|
-
unicode-display_width (3.
|
|
127
|
-
unicode-emoji (~> 4.
|
|
128
|
-
unicode-emoji (4.
|
|
129
|
-
uri (1.
|
|
138
|
+
unicode-display_width (3.3.0)
|
|
139
|
+
unicode-emoji (~> 4.3)
|
|
140
|
+
unicode-emoji (4.3.0)
|
|
141
|
+
uri (1.1.2)
|
|
130
142
|
|
|
131
143
|
PLATFORMS
|
|
144
|
+
aarch64-linux
|
|
145
|
+
arm64-darwin
|
|
132
146
|
arm64-darwin-22
|
|
133
147
|
arm64-darwin-23
|
|
148
|
+
arm64-darwin-25
|
|
134
149
|
x64-mingw-ucrt
|
|
150
|
+
x86_64-darwin
|
|
135
151
|
x86_64-darwin-19
|
|
136
152
|
x86_64-darwin-20
|
|
137
153
|
x86_64-darwin-21
|
|
@@ -141,6 +157,7 @@ PLATFORMS
|
|
|
141
157
|
DEPENDENCIES
|
|
142
158
|
bundler (~> 2.5, >= 2.5.3)
|
|
143
159
|
colorize (>= 0.8.1, < 2.0)
|
|
160
|
+
fiddle (>= 1.1)
|
|
144
161
|
irb (>= 1.0)
|
|
145
162
|
pry-byebug (>= 3.9, < 4.0)
|
|
146
163
|
rake (>= 13.0, < 14.0)
|
|
@@ -154,4 +171,4 @@ DEPENDENCIES
|
|
|
154
171
|
simplecov (>= 0.22.0, < 1.0)
|
|
155
172
|
|
|
156
173
|
BUNDLED WITH
|
|
157
|
-
2.5.
|
|
174
|
+
2.5.23
|
data/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
[](https://github.com/gangelo/simple_command_dispatcher/actions/workflows/ruby.yml)
|
|
2
|
+
[](https://badge.fury.io/gh/gangelo%2Fsimple_command_dispatcher)
|
|
3
|
+
[](https://badge.fury.io/rb/simple_command_dispatcher)
|
|
4
4
|
[](http://www.rubydoc.info/gems/simple_command_dispatcher/)
|
|
5
5
|
[](http://www.rubydoc.info/gems/simple_command_dispatcher/)
|
|
6
6
|
[](https://github.com/gangelo/simple_command_dispatcher/issues)
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
|
|
15
15
|
📋 **See it in action:** Check out the [demo application](https://github.com/gangelo/simple_command_dispatcher_demo_app) - a Rails API app with tests that demonstrate how to use the gem and its capabilities.
|
|
16
16
|
|
|
17
|
+
📚 **Complete Documentation:** Visit the [comprehensive wiki](https://github.com/gangelo/simple_command_dispatcher/wiki) for in-depth guides, real-world examples, and advanced usage patterns.
|
|
18
|
+
|
|
17
19
|
## Features
|
|
18
20
|
|
|
19
21
|
- 🛠️ **Convention Over Configuration**: Call commands dynamically from controller actions using action routes and parameters
|
|
@@ -42,10 +44,18 @@ Or install it yourself as:
|
|
|
42
44
|
|
|
43
45
|
## Requirements
|
|
44
46
|
|
|
45
|
-
- Ruby >=
|
|
47
|
+
- Ruby >= 4.0.10 and < 5.0
|
|
46
48
|
- Rails (optional, but optimized for Rails applications)
|
|
47
49
|
- Rails 8 compatible (tested with ActiveSupport 8.x)
|
|
48
50
|
|
|
51
|
+
## Upgrading to 5.0.1
|
|
52
|
+
|
|
53
|
+
Version 5.0.1 requires Ruby 4.0.10 or newer within the Ruby 4.x series. If you use 5.0.0 on Ruby 4.0.1 through 4.0.9, upgrade Ruby before updating the gem. The dispatcher and `CommandCallable` interfaces are unchanged.
|
|
54
|
+
|
|
55
|
+
The development and CI lockfile includes refreshed security dependencies. Consuming applications resolve dependencies using their own Gemfile and lockfile; this gem's lockfile does not update application dependencies. Review and update the affected dependencies in each application separately.
|
|
56
|
+
|
|
57
|
+
CI runs tests and lint on minimum Ruby 4.0.10 and the latest Ruby 4.0 patch across Linux, macOS, and Windows, including Linux ARM64 and Intel/ARM64 macOS. See [CHANGELOG.md](CHANGELOG.md) for the release details.
|
|
58
|
+
|
|
49
59
|
## Quick Start
|
|
50
60
|
|
|
51
61
|
Here's a complete minimal example showing how to use the gem in a Rails controller:
|
|
@@ -603,6 +613,22 @@ Bug reports and pull requests are welcome on GitHub at https://github.com/gangel
|
|
|
603
613
|
|
|
604
614
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
|
605
615
|
|
|
616
|
+
## Documentation
|
|
617
|
+
|
|
618
|
+
For comprehensive documentation, examples, and guides, visit the **[Wiki](https://github.com/gangelo/simple_command_dispatcher/wiki)**:
|
|
619
|
+
|
|
620
|
+
- **[Quick Start Tutorial](https://github.com/gangelo/simple_command_dispatcher/wiki/Quick-Start)** - Build your first command in 5 minutes
|
|
621
|
+
- **[Core Concepts](https://github.com/gangelo/simple_command_dispatcher/wiki/Core-Concepts)** - Understand how SCD works
|
|
622
|
+
- **[Creating Commands](https://github.com/gangelo/simple_command_dispatcher/wiki/Creating-Commands)** - Learn to write command classes
|
|
623
|
+
- **[CommandCallable Module](https://github.com/gangelo/simple_command_dispatcher/wiki/CommandCallable-Module)** - Master command standardization
|
|
624
|
+
- **[Dynamic Dispatching](https://github.com/gangelo/simple_command_dispatcher/wiki/Dynamic-Dispatching)** - Advanced controller patterns
|
|
625
|
+
- **[Route-to-Command Mapping](https://github.com/gangelo/simple_command_dispatcher/wiki/Route-to-Command-Mapping)** - Convention over configuration explained
|
|
626
|
+
- **[Real-World Examples](https://github.com/gangelo/simple_command_dispatcher/wiki/Examples-Authentication)** - Authentication, payments, search, and more
|
|
627
|
+
- **[Parameter Handling](https://github.com/gangelo/simple_command_dispatcher/wiki/Parameter-Handling)** - Working with different parameter types
|
|
628
|
+
- **[Error Handling](https://github.com/gangelo/simple_command_dispatcher/wiki/Error-Handling)** - Validation and error management
|
|
629
|
+
- **[FAQ](https://github.com/gangelo/simple_command_dispatcher/wiki/FAQ)** - Frequently asked questions
|
|
630
|
+
- **[Installation](https://github.com/gangelo/simple_command_dispatcher/wiki/Installation)** - Complete setup guide
|
|
631
|
+
|
|
606
632
|
## Changelog
|
|
607
633
|
|
|
608
634
|
See [CHANGELOG.md](CHANGELOG.md) for version history and breaking changes.
|
|
@@ -34,7 +34,7 @@ Gem::Specification.new do |spec|
|
|
|
34
34
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
35
35
|
spec.require_paths = ['lib']
|
|
36
36
|
|
|
37
|
-
spec.required_ruby_version = Gem::Requirement.new('>=
|
|
37
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 4.0.10', '< 5.0')
|
|
38
38
|
|
|
39
39
|
spec.add_runtime_dependency 'activesupport', '>= 7.0.8', '< 9.0'
|
|
40
40
|
end
|
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
|
+
version: 5.0.1
|
|
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: 1980-01-02 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: activesupport
|
|
@@ -49,12 +49,10 @@ files:
|
|
|
49
49
|
- ".rspec"
|
|
50
50
|
- ".rubocop.yml"
|
|
51
51
|
- ".ruby-version"
|
|
52
|
-
- ".travis.yml"
|
|
53
52
|
- CHANGELOG.md
|
|
54
53
|
- CODE_OF_CONDUCT.md
|
|
55
54
|
- Gemfile
|
|
56
55
|
- Gemfile.lock
|
|
57
|
-
- Jenkinsfile
|
|
58
56
|
- LICENSE.txt
|
|
59
57
|
- README.md
|
|
60
58
|
- Rakefile
|
|
@@ -88,17 +86,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
88
86
|
requirements:
|
|
89
87
|
- - ">="
|
|
90
88
|
- !ruby/object:Gem::Version
|
|
91
|
-
version:
|
|
89
|
+
version: 4.0.10
|
|
92
90
|
- - "<"
|
|
93
91
|
- !ruby/object:Gem::Version
|
|
94
|
-
version: '
|
|
92
|
+
version: '5.0'
|
|
95
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
94
|
requirements:
|
|
97
95
|
- - ">="
|
|
98
96
|
- !ruby/object:Gem::Version
|
|
99
97
|
version: '0'
|
|
100
98
|
requirements: []
|
|
101
|
-
rubygems_version:
|
|
99
|
+
rubygems_version: 4.0.20
|
|
102
100
|
specification_version: 4
|
|
103
101
|
summary: Dynamic command execution for Rails applications using convention over configuration
|
|
104
102
|
- automatically maps request routes to command classes.
|
data/.travis.yml
DELETED
data/Jenkinsfile
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
pipeline {
|
|
2
|
-
agent { docker { image 'ruby:3.2.6' } }
|
|
3
|
-
stages {
|
|
4
|
-
stage('requirements') {
|
|
5
|
-
steps {
|
|
6
|
-
sh 'gem install bundler -v 2.5.6'
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
stage('build') {
|
|
10
|
-
steps {
|
|
11
|
-
sh 'bundle install'
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
stage('test') {
|
|
15
|
-
steps {
|
|
16
|
-
sh 'bundle exec rspec'
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|