[rubygems/rubygems] No reason for Definition#sources to be private

https://github.com/rubygems/rubygems/commit/432fe083a6
This commit is contained in:
David Rodríguez 2024-09-30 18:11:17 +02:00 committed by git
parent 9d5be3d9ed
commit cff18256ca
2 changed files with 3 additions and 4 deletions

View File

@ -19,7 +19,8 @@ module Bundler
:ruby_version, :ruby_version,
:lockfile, :lockfile,
:gemfiles, :gemfiles,
:locked_checksums :locked_checksums,
:sources
) )
# Given a gemfile and lockfile creates a Bundler definition # Given a gemfile and lockfile creates a Bundler definition
@ -500,8 +501,6 @@ module Bundler
private private
attr_reader :sources
def should_add_extra_platforms? def should_add_extra_platforms?
!lockfile_exists? && generic_local_platform_is_ruby? && !Bundler.settings[:force_ruby_platform] !lockfile_exists? && generic_local_platform_is_ruby? && !Bundler.settings[:force_ruby_platform]
end end

View File

@ -29,7 +29,7 @@ module Bundler
private private
def add_sources 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? out << "\n" unless idx.zero?
# Add the source header # Add the source header