How to obtain gems compatibility version from Ruby

viraptor

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?

viraptor

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Is there a version manager for Ruby gems?

From Dev

How to backup ruby gems?

From Dev

How to obtain phpMyAdmin version from command line?

From Dev

How bundler isolates gems in Ruby?

From Dev

How to configure installed Ruby and gems?

From Dev

How to update the version of gems of a locally cloned heroku ruby on rails repository using bundle?

From Dev

Can I install ruby gems for a specific ruby version?

From Dev

How to import ruby gems (breakpoint) with webpack?

From Dev

Ruby: How to properly split an app into multiple gems

From Dev

How to distribute a Ruby script with required gems

From Dev

Ruby: How to properly split an app into multiple gems

From Dev

How to make ruby gems available to all users?

From Dev

How to share a version across all gems in a metagem?

From Dev

How to install Ruby 2 and Ruby Gems on Ubuntu box with Ansible

From Dev

How to completely remove Ruby, Ruby gems on Mac OS X 10.6.4

From Dev

Obtain version information from prior installation

From Dev

Ruby not recognising gems from local source, included in Gemfile

From Dev

How to fix akka version compatibility issues?

From Dev

How to fix akka version compatibility issues?

From Dev

How to obtain haxe compiler version at runtime

From Dev

How to programmatically obtain Fabric/Crashlytics framework version?

From Dev

How can I find gems & groups using Bundler in Ruby?

From Dev

How to install Ruby Gems, also caching them along the way?

From Dev

How to add a (pre/post)_install_hook to ruby gems

From Dev

How to handle different versions (Bourbon) of ruby gems on my Mac

From Dev

How can I completely remove Ruby + Rails + Gems?

From Dev

Problem installing ruby and gems

From Dev

Problems with installing Ruby Gems?

From Dev

Ruby program gems

Related Related

  1. 1

    Is there a version manager for Ruby gems?

  2. 2

    How to backup ruby gems?

  3. 3

    How to obtain phpMyAdmin version from command line?

  4. 4

    How bundler isolates gems in Ruby?

  5. 5

    How to configure installed Ruby and gems?

  6. 6

    How to update the version of gems of a locally cloned heroku ruby on rails repository using bundle?

  7. 7

    Can I install ruby gems for a specific ruby version?

  8. 8

    How to import ruby gems (breakpoint) with webpack?

  9. 9

    Ruby: How to properly split an app into multiple gems

  10. 10

    How to distribute a Ruby script with required gems

  11. 11

    Ruby: How to properly split an app into multiple gems

  12. 12

    How to make ruby gems available to all users?

  13. 13

    How to share a version across all gems in a metagem?

  14. 14

    How to install Ruby 2 and Ruby Gems on Ubuntu box with Ansible

  15. 15

    How to completely remove Ruby, Ruby gems on Mac OS X 10.6.4

  16. 16

    Obtain version information from prior installation

  17. 17

    Ruby not recognising gems from local source, included in Gemfile

  18. 18

    How to fix akka version compatibility issues?

  19. 19

    How to fix akka version compatibility issues?

  20. 20

    How to obtain haxe compiler version at runtime

  21. 21

    How to programmatically obtain Fabric/Crashlytics framework version?

  22. 22

    How can I find gems & groups using Bundler in Ruby?

  23. 23

    How to install Ruby Gems, also caching them along the way?

  24. 24

    How to add a (pre/post)_install_hook to ruby gems

  25. 25

    How to handle different versions (Bourbon) of ruby gems on my Mac

  26. 26

    How can I completely remove Ruby + Rails + Gems?

  27. 27

    Problem installing ruby and gems

  28. 28

    Problems with installing Ruby Gems?

  29. 29

    Ruby program gems

HotTag

Archive