Project

General

Profile

Actions

Bug #19852

closed

Can't require bigdecimal - bundled_gems.rb error

Added by MSP-Greg (Greg L) about 1 year ago. Updated about 1 year ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 3.3.0dev (2023-08-25T13:01:21Z master f5c8bdaa8a) [x86_64-linux]
[ruby-core:114539]

Description

Running the following:

ruby -rbigdecimal -e "puts BigDecimal::VERSION"

A warning is shown when bigdecimal.rb is loaded, when bigdecimal.so is loaded, an error is thrown:

/usr/local/lib/ruby/3.3.0+0/bundled_gems.rb:84:in `<': comparison of String with nil failed (ArgumentError)

    end + " which #{RUBY_VERSION < SINCE[gem] ? "will be" : "is"} not part of the default gems since Ruby #{SINCE[gem]}"
                                   ^^^^^^^^^^
        from /usr/local/lib/ruby/3.3.0+0/bundled_gems.rb:84:in `warning?'
        from /usr/local/lib/ruby/3.3.0+0/bundled_gems.rb:90:in `block in <module:BUNDLED_GEMS>'
Actions

Also available in: Atom PDF

Like1
Like0Like0Like0