class Bundler::Audit::Scanner

def scan_specs(options={})

Other tags:
    Since: - 0.4.0

Other tags:
    Api: - semipublic

Returns:
  • (Enumerator) -

Other tags:
    Yieldparam: result -

Other tags:
    Yield: -

Options Hash: (**options)
  • :ignore (Array) --

Parameters:
  • options (Hash) --
def scan_specs(options={})
  return enum_for(__method__,options) unless block_given?
  ignore = Set[]
  ignore += options[:ignore] if options[:ignore]
  @lockfile.specs.each do |gem|
    @database.check_gem(gem) do |advisory|
      unless (ignore.include?(advisory.cve_id) ||
              ignore.include?(advisory.osvdb_id))
        yield UnpatchedGem.new(gem,advisory)
      end
    end
  end
end