simple_command_dispatcher 5.0.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/.ruby-version +1 -1
- data/CHANGELOG.md +22 -0
- data/Gemfile.lock +59 -48
- data/README.md +9 -1
- data/lib/simple_command_dispatcher/version.rb +1 -1
- data/simple_command_dispatcher.gemspec +1 -1
- metadata +3 -3
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: ["4.0"]
|
|
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/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
4.0.
|
|
1
|
+
4.0.10
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
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
|
+
|
|
3
25
|
## Version 5.0.0 - 2026-02-17
|
|
4
26
|
|
|
5
27
|
- **Breaking Changes**:
|
data/Gemfile.lock
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
simple_command_dispatcher (5.0.
|
|
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.1.
|
|
10
|
+
activesupport (8.1.4.1)
|
|
11
11
|
base64
|
|
12
12
|
bigdecimal
|
|
13
13
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
@@ -22,99 +22,108 @@ GEM
|
|
|
22
22
|
uri (>= 0.13.1)
|
|
23
23
|
ast (2.4.3)
|
|
24
24
|
base64 (0.3.0)
|
|
25
|
-
bigdecimal (4.
|
|
25
|
+
bigdecimal (4.1.3)
|
|
26
26
|
byebug (13.0.0)
|
|
27
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 (3.0.
|
|
32
|
-
date (3.5.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 (6.0.
|
|
35
|
+
erb (6.0.7)
|
|
37
36
|
fiddle (1.1.8)
|
|
38
|
-
i18n (1.
|
|
37
|
+
i18n (1.15.2)
|
|
39
38
|
concurrent-ruby (~> 1.0)
|
|
40
|
-
io-console (0.
|
|
41
|
-
irb (1.
|
|
39
|
+
io-console (0.9.5)
|
|
40
|
+
irb (1.19.0)
|
|
42
41
|
pp (>= 0.6.0)
|
|
43
42
|
prism (>= 1.3.0)
|
|
44
43
|
rdoc (>= 4.0.0)
|
|
45
44
|
reline (>= 0.4.2)
|
|
46
|
-
json (2.
|
|
47
|
-
language_server-protocol (3.17.0.
|
|
45
|
+
json (3.2.0)
|
|
46
|
+
language_server-protocol (3.17.0.6)
|
|
48
47
|
lint_roller (1.1.0)
|
|
49
48
|
logger (1.7.0)
|
|
50
49
|
method_source (1.1.0)
|
|
51
|
-
minitest (6.0
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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)
|
|
55
55
|
ast (~> 2.4.1)
|
|
56
56
|
racc
|
|
57
|
-
pp (0.6.
|
|
57
|
+
pp (0.6.4)
|
|
58
58
|
prettyprint
|
|
59
|
-
prettyprint (0.2.
|
|
60
|
-
prism (1.
|
|
61
|
-
|
|
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)
|
|
62
66
|
coderay (~> 1.1)
|
|
63
67
|
method_source (~> 1.0)
|
|
64
68
|
reline (>= 0.6.0)
|
|
65
69
|
pry-byebug (3.12.0)
|
|
66
70
|
byebug (~> 13.0)
|
|
67
71
|
pry (>= 0.13, < 0.17)
|
|
68
|
-
psych (5.3.1)
|
|
69
|
-
date
|
|
70
|
-
stringio
|
|
71
72
|
racc (1.8.1)
|
|
72
73
|
rainbow (3.1.1)
|
|
73
|
-
rake (13.
|
|
74
|
-
|
|
74
|
+
rake (13.4.2)
|
|
75
|
+
rbs (4.2.0)
|
|
76
|
+
logger
|
|
77
|
+
prism (>= 1.6.0)
|
|
78
|
+
tsort
|
|
79
|
+
rdoc (8.1.0)
|
|
75
80
|
erb
|
|
76
|
-
|
|
81
|
+
prism (>= 1.6.0)
|
|
82
|
+
rbs (>= 4.0.0)
|
|
77
83
|
tsort
|
|
78
|
-
regexp_parser (2.
|
|
79
|
-
reline (0.
|
|
84
|
+
regexp_parser (2.13.4)
|
|
85
|
+
reline (0.7.0)
|
|
80
86
|
io-console (~> 0.5)
|
|
81
87
|
rspec (3.13.2)
|
|
82
88
|
rspec-core (~> 3.13.0)
|
|
83
89
|
rspec-expectations (~> 3.13.0)
|
|
84
90
|
rspec-mocks (~> 3.13.0)
|
|
85
|
-
rspec-core (3.13.
|
|
91
|
+
rspec-core (3.13.7)
|
|
86
92
|
rspec-support (~> 3.13.0)
|
|
87
|
-
rspec-expectations (3.13.
|
|
93
|
+
rspec-expectations (3.13.6)
|
|
88
94
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
89
95
|
rspec-support (~> 3.13.0)
|
|
90
|
-
rspec-mocks (3.13.
|
|
96
|
+
rspec-mocks (3.13.9)
|
|
91
97
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
92
98
|
rspec-support (~> 3.13.0)
|
|
93
|
-
rspec-support (3.13.
|
|
94
|
-
rubocop (1.
|
|
95
|
-
json (
|
|
99
|
+
rspec-support (3.13.8)
|
|
100
|
+
rubocop (1.92.3)
|
|
101
|
+
json (>= 2.3)
|
|
96
102
|
language_server-protocol (~> 3.17.0.2)
|
|
97
103
|
lint_roller (~> 1.1.0)
|
|
98
|
-
parallel (
|
|
104
|
+
parallel (>= 1.10)
|
|
99
105
|
parser (>= 3.3.0.2)
|
|
100
106
|
rainbow (>= 2.2.2, < 4.0)
|
|
101
|
-
regexp_parser (>= 2.
|
|
107
|
+
regexp_parser (>= 2.11.3, < 3.0)
|
|
102
108
|
rubocop-ast (>= 1.49.0, < 2.0)
|
|
103
109
|
ruby-progressbar (~> 1.7)
|
|
104
110
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
105
|
-
rubocop-ast (1.
|
|
111
|
+
rubocop-ast (1.54.0)
|
|
112
|
+
ast (~> 2.4)
|
|
106
113
|
parser (>= 3.3.7.2)
|
|
107
|
-
prism (
|
|
108
|
-
|
|
114
|
+
prism (>= 1.7)
|
|
115
|
+
racc
|
|
116
|
+
rubocop-performance (1.27.0)
|
|
109
117
|
lint_roller (~> 1.1)
|
|
110
|
-
rubocop (>= 1.
|
|
118
|
+
rubocop (>= 1.89.0, < 2.0)
|
|
111
119
|
rubocop-ast (>= 1.47.1, < 2.0)
|
|
112
120
|
rubocop-rake (0.7.1)
|
|
113
121
|
lint_roller (~> 1.1)
|
|
114
122
|
rubocop (>= 1.72.1)
|
|
115
|
-
rubocop-rspec (3.
|
|
123
|
+
rubocop-rspec (3.10.2)
|
|
116
124
|
lint_roller (~> 1.1)
|
|
117
|
-
|
|
125
|
+
regexp_parser (>= 2.0)
|
|
126
|
+
rubocop (~> 1.86, >= 1.86.2)
|
|
118
127
|
ruby-progressbar (1.13.0)
|
|
119
128
|
securerandom (0.4.1)
|
|
120
129
|
simplecov (0.22.0)
|
|
@@ -123,20 +132,22 @@ GEM
|
|
|
123
132
|
simplecov_json_formatter (~> 0.1)
|
|
124
133
|
simplecov-html (0.13.2)
|
|
125
134
|
simplecov_json_formatter (0.1.4)
|
|
126
|
-
stringio (3.2.0)
|
|
127
135
|
tsort (0.2.0)
|
|
128
136
|
tzinfo (2.0.6)
|
|
129
137
|
concurrent-ruby (~> 1.0)
|
|
130
|
-
unicode-display_width (3.
|
|
131
|
-
unicode-emoji (~> 4.
|
|
132
|
-
unicode-emoji (4.
|
|
133
|
-
uri (1.1.
|
|
138
|
+
unicode-display_width (3.3.0)
|
|
139
|
+
unicode-emoji (~> 4.3)
|
|
140
|
+
unicode-emoji (4.3.0)
|
|
141
|
+
uri (1.1.2)
|
|
134
142
|
|
|
135
143
|
PLATFORMS
|
|
144
|
+
aarch64-linux
|
|
145
|
+
arm64-darwin
|
|
136
146
|
arm64-darwin-22
|
|
137
147
|
arm64-darwin-23
|
|
138
148
|
arm64-darwin-25
|
|
139
149
|
x64-mingw-ucrt
|
|
150
|
+
x86_64-darwin
|
|
140
151
|
x86_64-darwin-19
|
|
141
152
|
x86_64-darwin-20
|
|
142
153
|
x86_64-darwin-21
|
|
@@ -160,4 +171,4 @@ DEPENDENCIES
|
|
|
160
171
|
simplecov (>= 0.22.0, < 1.0)
|
|
161
172
|
|
|
162
173
|
BUNDLED WITH
|
|
163
|
-
2.5.
|
|
174
|
+
2.5.23
|
data/README.md
CHANGED
|
@@ -44,10 +44,18 @@ Or install it yourself as:
|
|
|
44
44
|
|
|
45
45
|
## Requirements
|
|
46
46
|
|
|
47
|
-
- Ruby >= 4.0.
|
|
47
|
+
- Ruby >= 4.0.10 and < 5.0
|
|
48
48
|
- Rails (optional, but optimized for Rails applications)
|
|
49
49
|
- Rails 8 compatible (tested with ActiveSupport 8.x)
|
|
50
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
|
+
|
|
51
59
|
## Quick Start
|
|
52
60
|
|
|
53
61
|
Here's a complete minimal example showing how to use the gem in a Rails controller:
|
|
@@ -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('>= 4.0.
|
|
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,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple_command_dispatcher
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.0.
|
|
4
|
+
version: 5.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gene M. Angelo, Jr.
|
|
@@ -86,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - ">="
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: 4.0.
|
|
89
|
+
version: 4.0.10
|
|
90
90
|
- - "<"
|
|
91
91
|
- !ruby/object:Gem::Version
|
|
92
92
|
version: '5.0'
|
|
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
96
96
|
- !ruby/object:Gem::Version
|
|
97
97
|
version: '0'
|
|
98
98
|
requirements: []
|
|
99
|
-
rubygems_version: 4.0.
|
|
99
|
+
rubygems_version: 4.0.20
|
|
100
100
|
specification_version: 4
|
|
101
101
|
summary: Dynamic command execution for Rails applications using convention over configuration
|
|
102
102
|
- automatically maps request routes to command classes.
|