class Bundler::Audit::Scanner
def scan_specs(options={})
- 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 = if options[:ignore] then Set.new(options[:ignore]) else config.ignore end @lockfile.specs.each do |gem| @database.check_gem(gem) do |advisory| is_ignored = ignore.intersect?(advisory.identifiers.to_set) next if is_ignored yield Results::UnpatchedGem.new(gem,advisory) end end end