Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
Gem::BundlerVersionFinder.lockfile_contents
lockfile_contents
lib/rubygems/bundler_version_finder.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/rubygems/bundler_version_finder.rb, line 62
def self.lockfile_contents
gemfile = gemfile_path
return unless gemfile
lockfile = ENV["BUNDLE_LOCKFILE"]
lockfile = nil if lockfile&.empty?
lockfile ||= case gemfile
when "gems.rb" then "gems.locked"
else "#{gemfile}.lock"
end
return unless File.file?(lockfile)
File.read(lockfile)
end
No documentation available
See also
.gemfile_path
.lockfile_version
.bundle_update_bundler_version
.prioritize!
also in
4.0 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0