Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::VersionOption#get_platform_from_requirements
get_platform_from_requirements(requirements)
lib/rubygems/version_option.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/version_option.rb, line 77
def get_platform_from_requirements(requirements)
Gem.platforms[1].to_s if requirements.key? :added_platform
end
Extract platform given on the command line