Project

General

Profile

Actions

Bug #15791

closed

Clarify reason for RbConfig's ruby_version not reflecting "teeny" value

Added by headius (Charles Nutter) almost 5 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:92408]

Description

I did not realize that MRI always reports RbConfig::CONFIG['ruby_version'] without the "teeny" value. Instead, it makes it always 0:

$ rvm ruby-2.6.2 do ruby -v -e 'p RbConfig::CONFIG["ruby_version"]'
ruby 2.6.2p47 (2019-03-13 revision 67232) [x86_64-darwin18]
"2.6.0"

This seems like a bug to me. It is a visible behavior because several package-management systems (RubyGems, Bundler, stuff in Ruby switchers like RVM) use this value, rather than RUBY_VERSION, to set up directory paths.

I believe it should reflect the full, accurate version, but I have not been able to find any discussion about why it does not do so.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0