Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: JRuby 1.6.7
-
Fix Version/s: None
-
Component/s: Extensions
-
Labels:None
-
Environment:Fedora 17
-
Number of attachments :
Description
The MRI Ruby 1.9.3 came with some libraries split into Gems - for example bigdecimal and io-console. In Fedora we unbundled them and made them normal Gems. The reason to unbundle them is simple - if newer versions are installed, they only get picked up if they are in gemspec files or Gemfiles and installed as normal Gems - otherwise the versions in Ruby library path get picked up by Bundler.
So the problem is, that we now need to add e.g. bigdecimal to gemspec files, but that doesn't work with JRuby, because there is no bigdecimal (or io-console) Gem for JRuby. Would it be possible to provide these (because they are written in C, some kind of Java counterpart would be needed)? For the related issues, see [1] (fake gems problems in general) and [2] (activesupport uses bigdecimal, but doesn't have it in gemspec).
[1] https://bugs.ruby-lang.org/issues/6124
[2] https://github.com/rails/rails/issues/5355
Ahh, interesting. I did not know those libraries were actually pulled out into gems.
It's probably possible for us to move our version of the libs into gems, but it's something we have not previously attempted. We would also still need to ship bigdecimal built in for 1.8 mode, since there it is not a gem and RubyGems is not loaded by default.