method
lockfile_version
v2_5_5 -
Show latest stable
- Class:
Gem::BundlerVersionFinder
lockfile_version()private
No documentation available.
# File lib/rubygems/bundler_version_finder.rb, line 64
def self.lockfile_version
return unless lockfile = lockfile_contents
lockfile, contents = lockfile
lockfile ||= "lockfile"
regexp = /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/
return unless contents =~ regexp
[$1, lockfile]
end