From: "hsbt (Hiroshi SHIBATA) via ruby-core" Date: 2023-12-06T10:13:45+00:00 Subject: [ruby-core:115603] [Ruby master Bug#19886] "default->bundled gem" warning is not shown under "bundle exec" Issue #19886 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Assigned to Closed I investigate this again. `bundle exec ruby` called `Bundler.setup`. But `Gem::BUNDLED_GEMS` is not loaded because `bundle exec ruby` ignore to load `gem_prelude.rb`. I'm not sure why `bundle exec t.rb` is load `gem_prelude.rb` yet. This is fixed by https://github.com/rubygems/rubygems/pull/7224. ---------------------------------------- Bug #19886: "default->bundled gem" warning is not shown under "bundle exec" https://bugs.ruby-lang.org/issues/19886#change-105534 * Author: mame (Yusuke Endoh) * Status: Closed * Priority: Normal * Assignee: hsbt (Hiroshi SHIBATA) * Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN ---------------------------------------- ``` $ cat Gemfile source "https://rubygems.org" $ cat test.rb require "base64" $ bundle exec ruby test.rb $ ``` In this situation, `bundle exec ruby test.rb` should print a warning: base64 which will be not part of the default gems since Ruby 3.4.0. Note that `ruby test.rb` shows the warning, which is not needed (see #19885). ``` $ ruby test.rb test.rb:1: warning: base64 which will be not part of the default gems since Ruby 3.4.0 ``` -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/