Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::PlatformMismatch#add_platform
add_platform(platform)
lib/rubygems/errors.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/errors.rb, line 131
def add_platform(platform)
@platforms << platform
end
append a platform to the list of mismatched platforms.
Platforms are added via this instead of injected via the constructor so that we can loop over a list of mismatches and just add them rather than perform some kind of calculation mismatch summary before creation.