Sha256: 5e2919512f669a788bf368adc78834220349522cb87637a6607c93f6ca846b01

Contents?: true

Size: 294 Bytes

Versions: 7

Compression:

Stored size: 294 Bytes

Contents

# frozen_string_literal: true

module KeepUp
  # 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

7 entries across 7 versions & 1 rubygems

Version Path
keep_up-0.10.1 lib/keep_up/skip_filter.rb
keep_up-0.10.0 lib/keep_up/skip_filter.rb
keep_up-0.9.0 lib/keep_up/skip_filter.rb
keep_up-0.8.1 lib/keep_up/skip_filter.rb
keep_up-0.8.0 lib/keep_up/skip_filter.rb
keep_up-0.7.1 lib/keep_up/skip_filter.rb
keep_up-0.7.0 lib/keep_up/skip_filter.rb