mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/rubygems: Update to RubyGems 2.4.1 master(713ab65)
Complete history at: https://github.com/rubygems/rubygems/blob/master/History.txt#L3-L216 * test/rubygems: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47582 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e548c09d42
commit
4de117a615
153 changed files with 5400 additions and 981 deletions
|
@ -27,7 +27,7 @@ class Gem::DependencyRemovalException < Gem::Exception; end
|
|||
# toplevel. Indicates which dependencies were incompatible through #conflict
|
||||
# and #conflicting_dependencies
|
||||
|
||||
class Gem::DependencyResolutionError < Gem::Exception
|
||||
class Gem::DependencyResolutionError < Gem::DependencyError
|
||||
|
||||
attr_reader :conflict
|
||||
|
||||
|
@ -214,7 +214,7 @@ end
|
|||
# Raised by Resolver when a dependency requests a gem for which
|
||||
# there is no spec.
|
||||
|
||||
class Gem::UnsatisfiableDependencyError < Gem::Exception
|
||||
class Gem::UnsatisfiableDependencyError < Gem::DependencyError
|
||||
|
||||
##
|
||||
# The unsatisfiable dependency. This is a
|
||||
|
@ -222,6 +222,11 @@ class Gem::UnsatisfiableDependencyError < Gem::Exception
|
|||
|
||||
attr_reader :dependency
|
||||
|
||||
##
|
||||
# Errors encountered which may have contributed to this exception
|
||||
|
||||
attr_accessor :errors
|
||||
|
||||
##
|
||||
# Creates a new UnsatisfiableDependencyError for the unsatisfiable
|
||||
# Gem::Resolver::DependencyRequest +dep+
|
||||
|
@ -239,6 +244,21 @@ class Gem::UnsatisfiableDependencyError < Gem::Exception
|
|||
end
|
||||
|
||||
@dependency = dep
|
||||
@errors = []
|
||||
end
|
||||
|
||||
##
|
||||
# The name of the unresolved dependency
|
||||
|
||||
def name
|
||||
@dependency.name
|
||||
end
|
||||
|
||||
##
|
||||
# The Requirement of the unresolved dependency (not Version).
|
||||
|
||||
def version
|
||||
@dependency.requirement
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue