End of Life Ruby 3.0 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::BundlerVersionFinder.lockfile_version
lockfile_version
lib/rubygems/bundler_version_finder.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.0.5/lib/rubygems/bundler_version_finder.rb, line 70
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
No documentation available
See also
.lockfile_contents
.missing_version_message
.filter!
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.1