HEX
Server: Apache
System: Linux cpanel91.fastsecurehost.com 3.10.0-962.3.2.lve1.5.87.el7.x86_64 #1 SMP Tue Jan 28 09:38:56 UTC 2025 x86_64
User: harmonyg (1050)
PHP: 8.2.29
Disabled: shell, shell_exec, exec, ini_alter, dl, show_source, passthru, system, eval, pfsockopen, leak, apache_child_terminate, posix_kill, posix_mkfifo, posix_setpgid, posix_setsid, posix_setuid
Upload Files
File: //home/harmonyg/ruby/lib/rubygems/errors.rb
class Gem::ErrorReason; end

# Generated when trying to lookup a gem to indicate that the gem
# was found, but that it isn't usable on the current platform.
#
# fetch and install read these and report them to the user to aid
# in figuring out why a gem couldn't be installed.
#
class Gem::PlatformMismatch < Gem::ErrorReason

  attr_reader :name
  attr_reader :version
  attr_reader :platforms

  def initialize(name, version)
    @name = name
    @version = version
    @platforms = []
  end

  def add_platform(platform)
    @platforms << platform
  end

  def wordy
    prefix = "Found #{@name} (#{@version})"

    if @platforms.size == 1
      "#{prefix}, but was for platform #{@platforms[0]}"
    else
      "#{prefix}, but was for platforms #{@platforms.join(' ,')}"
    end
  end

end