End of Life Ruby 3.2 has reached end of life and gets no more fixes. 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.2.0/lib/rubygems/version_option.rb, line 79
def get_platform_from_requirements(requirements)
Gem.platforms[1].to_s if requirements.key? :added_platform
end
Extract platform given on the command line