Sha256: b8f3c6c1a9b73c41af0909355ed877fadea3b38b910738fb6c7eef6102d2344d

Contents?: true

Size: 309 Bytes

Versions: 2

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

module KeepUp
  # Dependency filter that skips dependencies if their name is on the list of
  # things to be skipped.
  class SkipFilter
    def initialize(skip_list)
      @skip_list = skip_list
    end

    def call(dep)
      !@skip_list.include?(dep.name)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
keep_up-0.11.0 lib/keep_up/skip_filter.rb
keep_up-0.10.2 lib/keep_up/skip_filter.rb