Issue #20463 has been updated by hsbt (Hiroshi SHIBATA).
Status changed from Open to Closed
It's known issue. see
https://bugs.ruby-lang.org/issues/20450#note-9
----------------------------------------
Bug #20463: Ruby fails to generate warning for require syslog
https://bugs.ruby-lang.org/issues/20463#change-108159
* Author: tyatin (Serg Tyatin)
* Status: Closed
* ruby -v: 3.3.1
* Backport: 3.1: UNKNOWN, 3.2: UNKNOWN, 3.3: UNKNOWN
----------------------------------------
```
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
--
https://bugs.ruby-lang.org/