class Bundler::Audit::Results::UnpatchedGem
upgraded.
Represents a gem version that has known vulnerabilities and needs to be
def ==(other)
-
(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)
-
advisory
(Advisory
) -- -
gem
(Gem::Specification
) --
def initialize(gem,advisory) @gem = gem @advisory = advisory end
def to_h
-
(Hash{Symbol => Object})
-
def to_h { type: :unpatched_gem, gem: { name: @gem.name, version: @gem.version }, advisory: @advisory.to_h } end
def to_s
-
(String)
-
def to_s @advisory.id end