Lock source wraps an installed gem’s source and sorts before other sources during dependency resolution. This allows RubyGems to prefer gems from dependency lock files.
Public Class Methods
new(source) click to toggle source
Creates a new
Lock source that wraps
source and moves it earlier in the sort list.
# File lib/rubygems/source/lock.rb, line 18 def initialize(source) @wrapped = source end
Public Instance Methods
fetch_spec(name_tuple) click to toggle source
Delegates to the wrapped source’s
# File lib/rubygems/source/lock.rb, line 42 def fetch_spec(name_tuple) @wrapped.fetch_spec name_tuple end