summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2024-09-30 18:11:17 +0200
committergit <[email protected]>2024-10-16 21:57:51 +0000
commitcff18256ca9a99cdb59a8f9b9f4243fb96c158f9 (patch)
tree653206b284c13507f57164f9b32815dc91d369eb /lib
parent9d5be3d9ed87678ecbb98eede9cca95f62c03526 (diff)
[rubygems/rubygems] No reason for `Definition#sources` to be private
https://github.com/rubygems/rubygems/commit/432fe083a6
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/definition.rb5
-rw-r--r--lib/bundler/lockfile_generator.rb2
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