Is there a way via CLI to determine which version number of a gem is installed on my machine? Similar to yolk -l
for python?
I'm trying to see if I have the latest version of compass / sass / zurb foundation. I have a dependency that requires a particular version number. So I need to see what version it is.
should give you a list of all your gems with version number in brackets behind it
StackOverflow has the answer and it might be a more useful place (for you) for Ruby architecture questions (they're still welcome here)
Not being a Ruby dev or having any gems installed, I'm not sure this is going to give you exactly what you're after but it should show you which ones need attention.
Otherwise I would have suggested
gem query <package>
(searches local) andgem query --remote
to see available versions. If you only need local gem versions, the first aught to do.If your gem's name is
compass
, then you could run:It will give you a list of gems, containing the phrase
compass
, and corresponding versions.You can do it like this:
Or look in
Gemfile.lock
:To add to @Belogron’s answer you can use
To list the installed versions of MyGem
You can then type
To display the specific version that is being used.
You can do it as follow:
bundle info <gem name>
It works for me. Checked in deepin 15.9.1(debian distro)