Actions
Bug #20463
closedRuby fails to generate warning for require syslog
Description
docker run -it ruby:3.3.1 bash
touch Gemfile
bundle
bundle exec ruby -e "require '/usr/local/lib/ruby/3.3.0/x86_64-linux/syslog'"
/usr/local/lib/ruby/3.3.0/bundled_gems.rb:130:in `<': comparison of String with nil failed (ArgumentError)
msg = " #{RUBY_VERSION < SINCE[gem] ? "will no longer be" : "is not"} part of the default gems since Ruby #{SINCE[gem]}."
^^^^^^^^^^
from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:130:in `build_message'
from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:126:in `warning?'
from /usr/local/lib/ruby/3.3.0/bundled_gems.rb:71:in `block (2 levels) in replace_require'
from -e:1:in `<main>'
the same happens on M1 mac
Actions
Like0
Like0