How do I find out if a particular gem is compatible with a certain Ruby version or not?
I want to upgrade the Ruby version of an application I am working on, But I did not see an authentic way of knowing which Ruby version is supported by a particular gem.
I found the *.gemspec
of the gem, which often contains a configuration saying config.required_ruby_version ...
, but I noticed not all the gems contain a gemspec file. I noticed I have a few gems on my system, ActiveRecord for example, which lack a Gemfile, whereas on GitHub, we have a gemspec
file available.
This is the output of ls -lrth
from my local machine:
Einstiens-MacBook-Pro:activerecord-4.2.7.1 superhero$ ls -lrth
total 128
-rw-r--r-- 1 superhero jingle 51K Dec 23 00:07 CHANGELOG.md
-rw-r--r-- 1 superhero jingle 1.0K Dec 23 00:07 MIT-LICENSE
-rw-r--r-- 1 superhero jingle 6.6K Dec 23 00:07 README.rdoc
drwxr-xr-x 4 superhero jingle 128B Dec 23 00:07 examples
drwxr-xr-x 5 superhero jingle 160B Dec 23 00:07 lib
The ActiveRecord repository has a gemspec
file: