In Files

  • rubygems/bundler_version_finder.rb

Class/Module Index [+]

Quicksearch

Gem::BundlerVersionFinder

Public Class Methods

bundler_version() click to toggle source
 
               # File rubygems/bundler_version_finder.rb, line 3
def self.bundler_version
  v = ENV["BUNDLER_VERSION"]

  v ||= bundle_update_bundler_version
  return if v == true

  v ||= lockfile_version
  return unless v

  Gem::Version.new(v)
end
            
prioritize!(specs) click to toggle source
 
               # File rubygems/bundler_version_finder.rb, line 15
def self.prioritize!(specs)
  exact_match_index = specs.find_index {|spec| spec.version == bundler_version }
  return unless exact_match_index

  specs.unshift(specs.delete_at(exact_match_index))
end
            
There is an updated format of the API docs for this version here.