ruby-win32/lib/ruby/site_ruby/1.8/rubygems.rb
def report_activate_error(gem)
      matches = Gem.source_index.find_name(gem.name)

      if matches.empty? then
        error = Gem::LoadError.new(
          "Could not find RubyGem #{gem.name} (#{gem.version_requirements})\n")
      else
        error = Gem::LoadError.new(
          "RubyGem version error: " +
          "#{gem.name}(#{matches.first.version} not #{gem.version_requirements})\n")
      end

      error.name = gem.name
      error.version_requirement = gem.version_requirements
      raise error
    end
# Report a load error during activation.  The message of load
# error depends on whether it was a version mismatch or if there
# are not gems of any version by the requested name.
Report a load error during activation.  The message of load
error depends on whether it was a version mismatch or if there
are not gems of any version by the requested name.
Report a load error during activation . The message of load error depends on whether it was a version mismatch or if there are not gems of any version by the requested name .
def report_activate_error(gem)
      matches = Gem.source_index.find_name(gem.name)
      if matches.empty? then
        error = Gem::LoadError.new(
          "Could not find RubyGem #{gem.name} (#{gem.version_requirements})\n")
      else
        error = Gem::LoadError.new(
          "RubyGem version error: " +
          "#{gem.name}(#{matches.first.version} not #{gem.version_requirements})\n")
      end
      error.name = gem.name
      error.version_requirement = gem.version_requirements
      raise error
    end
def report_activate_error ( gem ) matches = Gem . source_index . find_name ( gem . name ) if matches . empty? then error = Gem :: LoadError . new ( "Could not find RubyGem #{gem.name} (#{gem.version_requirements})\n" ) else error = Gem :: LoadError . new ( "RubyGem version error: " + "#{gem.name}(#{matches.first.version} not #{gem.version_requirements})\n" ) end error . name = gem . name error . version_requirement = gem . version_requirements raise error end
Report a load error during activation.
Report a load error during activation .
gem