ruby/lib/rubygems/specification.rb
##
# Return any possible conflicts against the currently loaded specs.
Return any possible conflicts against the currently loaded specs.
Return any possible conflicts against the currently loaded specs .
def conflicts
    conflicts = {}
    self.runtime_dependencies.each { |dep|
      spec = Gem.loaded_specs[dep.name]
      if spec and not spec.satisfies_requirement? dep
        (conflicts[spec] ||= []) << dep
      end
    }
    env_req = Gem.env_requirement(name)
    (conflicts[self] ||= []) << env_req unless env_req.satisfied_by? version
    conflicts
  end
def conflicts conflicts = { } self . runtime_dependencies . each { | dep | spec = Gem . loaded_specs [ dep . name ] if spec and not spec . satisfies_requirement? dep ( conflicts [ spec ] ||= [ ] ) << dep end } env_req = Gem . env_requirement ( name ) ( conflicts [ self ] ||= [ ] ) << env_req unless env_req . satisfied_by? version conflicts end
Return any possible conflicts against the currently loaded specs.
Return any possible conflicts against the currently loaded specs .