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 #1

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

  • Subject changed from bundled_gems.rb & bigdecimal to Can't require bigdecimal - bundled_gems.rb error

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

See https://github.com/ruby/ruby/pull/8294

assumes that rb file is loaded before so file...

Actions #3

Updated by nobu (Nobuyoshi Nakada) about 1 year ago

  • Status changed from Open to Closed

Applied in changeset git|7d32011399cbc3aa7e4b728a440e13635a39f2ed.


[Bug #19852] Use gem name without suffix

Actions

Also available in: Atom PDF

Like1
Like0Like0Like0