Project

General

Profile

Actions

Bug #20463

closed

Ruby fails to generate warning for require syslog

Added by tyatin (Serg Tyatin) 6 months ago. Updated 6 months ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:117748]

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

Also available in: Atom PDF

Like0
Like0