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(, gems) = @gems = gems @sources = Array([:source]) = .keys & %w[filter-major filter-minor filter-patch] @outdated_gems = [] = [:group, :groups].any? do |v| .keys.include?(v.to_s) end # the patch level options imply strict is also true. It wouldn't make # sense otherwise. @strict = ["filter-strict"] || Bundler::CLI::Common.().any? end |