Bug 1170282 - Ruby does not output the appropriate value for RbConfig::CONFIG["ruby_version"]
Summary: Ruby does not output the appropriate value for RbConfig::CONFIG["ruby_version"]
Keywords:
Status: CLOSED DUPLICATE of bug 923703
Alias: None
Product: Fedora
Classification: Fedora
Component: ruby
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jeroen van Meeuwen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-03 16:45 UTC by Darryl L. Pierce
Modified: 2015-06-22 00:08 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-12-04 00:04:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Darryl L. Pierce 2014-12-03 16:45:51 UTC
Description of problem:

The version of the Ruby VM is checked using the standard config value for "ruby_version", which is kept in RbConfig::CONFIG. However, on the Ruby versions released with F19, F20, F21 and RHEL7 this config value returns an empty string rather than the version string.


Version-Release number of selected component (if applicable):

All versions of the ruby package on F19, F20, F21 and EL7. EL6 works as expected.


How reproducible:

100%

Steps to Reproduce:
1. Install IRB.
2. From the command prompt, type "irb".
3. From within irb enter : RbConfig::CONFIG["ruby_version"]

Actual results:

An empty string is returned.


Expected results:

The version of the Ruby VM being uses, such as:

"1.9.3"
"2.0.0"


Additional info:

Verifying the appropriate expectation using RVM I checked 1.8, 1.9 and 2.0 and found that Ruby always returns the version string. Also verified on Debian and Ubuntu 14.

Comment 1 Mamoru TASAKA 2014-12-04 00:04:40 UTC

*** This bug has been marked as a duplicate of bug 923703 ***


Note You need to log in before you can comment on or make changes to this bug.