Method: Bundler::Resolver::Base#unlock_names

Defined in:
lib/bundler/resolver/base.rb

#unlock_names(names) ⇒ Object

[View source]

50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# File 'lib/bundler/resolver/base.rb', line 50

def unlock_names(names)
  indirect_pins = indirect_pins(names)

  if indirect_pins.any?
    loosen_names(indirect_pins)
  else
    pins = pins(names)

    if pins.any?
      loosen_names(pins)
    else
      unrestrict_names(names)
    end
  end
end