summaryrefslogtreecommitdiff
path: root/lib/bundler/definition.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2023-12-22 18:16:01 +0100
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-01-11 13:51:52 +0900
commite90081446785273d7df8b37f0ba384c810738d0f (patch)
treea8261043e45e92b03ad5465f02981cdbdbe12a35 /lib/bundler/definition.rb
parent76916217b6dcb5171a41aad07420f2d8b7d631ca (diff)
[rubygems/rubygems] Make private helper private
https://github.com/rubygems/rubygems/commit/de9dc90026
Diffstat (limited to 'lib/bundler/definition.rb')
-rw-r--r--lib/bundler/definition.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb
index 9b905db1f9..316a750639 100644
--- a/lib/bundler/definition.rb
+++ b/lib/bundler/definition.rb
@@ -312,10 +312,6 @@ module Bundler
end
end
- def should_complete_platforms?
- !lockfile_exists? && generic_local_platform_is_ruby? && !Bundler.settings[:force_ruby_platform]
- end
-
def spec_git_paths
sources.git_sources.map {|s| File.realpath(s.path) if File.exist?(s.path) }.compact
end
@@ -517,6 +513,10 @@ module Bundler
private
+ def should_complete_platforms?
+ !lockfile_exists? && generic_local_platform_is_ruby? && !Bundler.settings[:force_ruby_platform]
+ end
+
def lockfile_exists?
lockfile && File.exist?(lockfile)
end