(PA-8499) Relax commander constraint

In Ruby 3.4, abbrev was promoted from a default gem to a bundled gem.
highline 1.x/2.x require abbrev and now fail to load under Ruby 3.4
unless an explicit dependency on it is declared. highline 3.0 removed
that dependency.

commander pins highline transitively: 4.x requires highline ~> 2.0,
and only commander 5.0 requires highline ~> 3.0. Relaxing the upper
bound to '< 6' lets vmfloaty resolve to highline 3.x on Ruby 3.4+
while still allowing commander 4.x for older consumers.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Michael Hashizume 2026-05-21 10:21:10 -07:00
parent 2507e8ae9b
commit dbcde7a69b
No known key found for this signature in database
GPG key ID: 7D7DF01108411652
2 changed files with 6 additions and 5 deletions

View file

@ -2,7 +2,7 @@ PATH
remote: . remote: .
specs: specs:
vmfloaty (1.9.0) vmfloaty (1.9.0)
commander (>= 4.4.3, < 4.7.0) commander (>= 4.4.3, < 6)
faraday (~> 2) faraday (~> 2)
GEM GEM
@ -13,8 +13,8 @@ GEM
ast (2.4.3) ast (2.4.3)
bigdecimal (4.1.2) bigdecimal (4.1.2)
coderay (1.1.3) coderay (1.1.3)
commander (4.6.0) commander (5.0.0)
highline (~> 2.0.0) highline (~> 3.0.0)
crack (1.0.1) crack (1.0.1)
bigdecimal bigdecimal
rexml rexml
@ -27,7 +27,7 @@ GEM
faraday-net_http (3.4.2) faraday-net_http (3.4.2)
net-http (~> 0.5) net-http (~> 0.5)
hashdiff (1.2.1) hashdiff (1.2.1)
highline (2.0.3) highline (3.0.1)
io-console (0.8.2) io-console (0.8.2)
json (2.19.4) json (2.19.4)
language_server-protocol (3.17.0.5) language_server-protocol (3.17.0.5)
@ -100,6 +100,7 @@ GEM
PLATFORMS PLATFORMS
aarch64-linux aarch64-linux
arm64-darwin-24
x86_64-darwin-22 x86_64-darwin-22
x86_64-linux x86_64-linux

View file

@ -22,6 +22,6 @@ Gem::Specification.new do |s|
s.require_path = 'lib' s.require_path = 'lib'
s.required_ruby_version = '>= 3.0' s.required_ruby_version = '>= 3.0'
s.add_dependency 'commander', '>= 4.4.3', '< 4.7.0' s.add_dependency 'commander', '>= 4.4.3', '< 6'
s.add_dependency 'faraday', '~> 2' s.add_dependency 'faraday', '~> 2'
end end