Method: Bundler::CLI::Outdated#initialize

Defined in:
lib/bundler/cli/outdated.rb

#initialize(options, gems) ⇒ Outdated

Returns a new instance of Outdated.



8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/bundler/cli/outdated.rb', line 8

def initialize(options, gems)
  @options = options
  @gems = gems
  @sources = Array(options[:source])

  @filter_options_patch = options.keys & %w[filter-major filter-minor filter-patch]

  @outdated_gems = []

  @options_include_groups = [:group, :groups].any? do |v|
    options.keys.include?(v.to_s)
  end

  # the patch level options imply strict is also true. It wouldn't make
  # sense otherwise.
  @strict = options["filter-strict"] || Bundler::CLI::Common.patch_level_options(options).any?
end