Ruby gems are installed into directories called after the last compatible version rather than specific release. How can I obtain that version?
For example for Ruby 2.3.3
, gems will be installed into 2.3.0
directory. How do I find out what that version is from a ruby interpreter?
Other answers that are kind of correct, but use paths. I tracked it down to:
Gem.ruby_api_version
Which will return the version on its own.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments