Bug #6123
closedProperly gemify BigDecimal
Description
BigDecimal is available as a gem, however, the version in Ruby is crippled. It just tries to mimic gems, but it is not gem. So currently:
$ ruby -e "puts require('bigdecimal')"
true
$ ruby --disable-gems -e "puts require('bigdecimal')"
true
However, I would expect following behavior:
$ ruby -e "puts require('bigdecimal')"
true
$ ruby --disable-gems -e "puts require('bigdecimal')"
fail
The point is that the bigdecimal.so is still in Ruby's load path, although it should be managed by RubyGems if it is gem. Moreover, if the independent gem in RubyGems.org would be updated, it will never be used. Please consider fixing it.
Updated by vo.x (Vit Ondruch) almost 13 years ago
Better to say, the expected behavior is:
$ ruby --disable-gems -e "puts require('bigdecimal')"
-e:1:in require': cannot load such file -- bigdecimal (LoadError) from -e:1:in
'
Updated by vo.x (Vit Ondruch) almost 13 years ago
Please note that I picked the BigDecimal just randomly. It applies to all other "gems" which are currently bundled in Ruby.
Updated by naruse (Yui NARUSE) almost 13 years ago
- Status changed from Open to Rejected
This is not only for bigdecimal but also io-console, json, minitest, psych, rake, and rdoc.
It is because they are not true gem, they are fake gem.
Updated by vo.x (Vit Ondruch) almost 13 years ago
Could you please enlighten me what is the purpose of fake gem then? Even if you install updated BigDecimal from rubygems.org, the bundled version will won unless you use "gem 'bidgecimal'" somewhere in the code. This makes no sense.
Updated by naruse (Yui NARUSE) almost 13 years ago
Vit Ondruch wrote:
Could you please enlighten me what is the purpose of fake gem then? Even if you install updated BigDecimal from rubygems.org, the bundled version will won unless you use "gem 'bidgecimal'" somewhere in the code. This makes no sense.
It is another issue; could you make another ticket and assign it to Eric Hodel?
Updated by vo.x (Vit Ondruch) almost 13 years ago
Happily: #6124
Thank you.
Updated by hsbt (Hiroshi SHIBATA) almost 8 years ago
- Related to Feature #5481: Gemifying Ruby standard library added