class Bundler::Audit::Results::UnpatchedGem


upgraded.
Represents a gem version that has known vulnerabilities and needs to be

def ==(other)

Returns:
  • (Boolean) -

Parameters:
  • other (Result) --
def ==(other)
  self.class == other.class && (
    @gem.name == other.gem.name &&
    @gem.version == other.gem.version &&
    @advisory == other.advisory
  )
end

def initialize(gem,advisory)

Parameters:
  • advisory (Advisory) --
  • gem (Gem::Specification) --
def initialize(gem,advisory)
  @gem      = gem
  @advisory = advisory
end

def to_h

Returns:
  • (Hash{Symbol => Object}) -
def to_h
  {
    type: :unpatched_gem,
    gem:  {
      name: @gem.name,
      version: @gem.version
    },
    advisory: @advisory.to_h
  }
end

def to_s

Returns:
  • (String) -
def to_s
  @advisory.id
end