lib/rubygems/exceptions.rb in rubygems-update-3.1.6 vs lib/rubygems/exceptions.rb in rubygems-update-3.2.0.rc.1
- old
+ new
@@ -3,23 +3,12 @@
require 'rubygems/deprecate'
##
# Base exception class for RubyGems. All exception raised by RubyGems are a
# subclass of this one.
-class Gem::Exception < RuntimeError
+class Gem::Exception < RuntimeError; end
- ##
- #--
- # TODO: remove in RubyGems 4, nobody sets this
-
- attr_accessor :source_exception # :nodoc:
-
- extend Gem::Deprecate
- deprecate :source_exception, :none, 2018, 12
-
-end
-
class Gem::CommandLineError < Gem::Exception; end
class Gem::DependencyError < Gem::Exception; end
class Gem::DependencyRemovalException < Gem::Exception; end
@@ -254,10 +243,10 @@
# Creates a new UnsatisfiableDependencyError for the unsatisfiable
# Gem::Resolver::DependencyRequest +dep+
def initialize(dep, platform_mismatch=nil)
if platform_mismatch and !platform_mismatch.empty?
- plats = platform_mismatch.map { |x| x.platform.to_s }.sort.uniq
+ plats = platform_mismatch.map {|x| x.platform.to_s }.sort.uniq
super "Unable to resolve dependency: No match for '#{dep}' on this platform. Found: #{plats.join(', ')}"
else
if dep.explicit?
super "Unable to resolve dependency: user requested '#{dep}'"
else