[ruby-core:114544] [Ruby master Bug#19852] Can't require bigdecimal - bundled_gems.rb error
From:
"MSP-Greg (Greg L) via ruby-core" <ruby-core@...>
Date:
2023-08-25 16:48:18 UTC
List:
ruby-core #114544
Issue #19852 has been updated by MSP-Greg (Greg L).
See https://github.com/ruby/ruby/pull/8294
assumes that rb file is loaded before so file...
----------------------------------------
Bug #19852: Can't require bigdecimal - bundled_gems.rb error
https://bugs.ruby-lang.org/issues/19852#change-104346
* Author: MSP-Greg (Greg L)
* Status: Open
* Priority: Normal
* ruby -v: ruby 3.3.0dev (2023-08-25T13:01:21Z master f5c8bdaa8a) [x86_64-linux]
* Backport: 3.0: UNKNOWN, 3.1: UNKNOWN, 3.2: UNKNOWN
----------------------------------------
Running the following:
```ruby
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>'
```
--
https://bugs.ruby-lang.org/
______________________________________________
ruby-core mailing list -- [email protected]
To unsubscribe send an email to [email protected]
ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/