mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
Dont't handle inline Gemfile
This commit is contained in:
parent
75644f98e5
commit
c2bdb198d7
1 changed files with 1 additions and 6 deletions
|
@ -247,12 +247,7 @@ module Bundler
|
|||
file = File.path(file)
|
||||
name = file.tr("/", "-")
|
||||
if message = ::Gem::BUNDLED_GEMS.warning?(name)
|
||||
target_file = begin
|
||||
Bundler.default_gemfile.basename
|
||||
rescue GemfileNotFound
|
||||
"inline Gemfile"
|
||||
end
|
||||
message += " Add #{name} to your #{target_file}."
|
||||
message += " Add #{name} to your Gemfile."
|
||||
location = caller_locations(1,1)[0]&.path
|
||||
if File.file?(location) && !location.start_with?(Gem::BUNDLED_GEMS::LIBDIR)
|
||||
caller_gem = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue