From cff18256ca9a99cdb59a8f9b9f4243fb96c158f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 30 Sep 2024 18:11:17 +0200 Subject: [PATCH] [rubygems/rubygems] No reason for `Definition#sources` to be private https://github.com/rubygems/rubygems/commit/432fe083a6 --- lib/bundler/definition.rb | 5 ++--- lib/bundler/lockfile_generator.rb | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index bb6eb11e4e..d9b5660e1f 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -19,7 +19,8 @@ module Bundler :ruby_version, :lockfile, :gemfiles, - :locked_checksums + :locked_checksums, + :sources ) # Given a gemfile and lockfile creates a Bundler definition @@ -500,8 +501,6 @@ module Bundler private - attr_reader :sources - def should_add_extra_platforms? !lockfile_exists? && generic_local_platform_is_ruby? && !Bundler.settings[:force_ruby_platform] end diff --git a/lib/bundler/lockfile_generator.rb b/lib/bundler/lockfile_generator.rb index a646d00ee1..904552fa0c 100644 --- a/lib/bundler/lockfile_generator.rb +++ b/lib/bundler/lockfile_generator.rb @@ -29,7 +29,7 @@ module Bundler private def add_sources - definition.send(:sources).lock_sources.each_with_index do |source, idx| + definition.sources.lock_sources.each_with_index do |source, idx| out << "\n" unless idx.zero? # Add the source header