When I go with gem list
from my app folder, the terminal displays the list of all gems installed on my local machine. I want instead to see the project related gems.
To check if a specific version is installed, just add --version , e.g.: gem list -i compass --version 0.12.
To find out what the most recent Rails version is, use the command gem search rails | grep "^rails " .
The Gem command is included with Ruby 1.9+ now, and is a standard addition to Ruby pre-1.9. Because local_gems relies on group_by , it returns a hash of the gems, where the key is the gem's name, and the value is an array of the gem specifications.
Step 1: Check Ruby Version Open the command prompt and type ruby -v. If Ruby responds, and if it shows a version number at or above 2.2. 2, then type gem --version. If you don't get an error, skip Install Ruby step.
Use
bundle list
to show project related gems
To see some gems version, you can chain comands and use grep
exp.
bundle list | grep rails
will list all gems that containt word rails
, such as rails
, jquery-rails
, ...
bundle show
is what you are looking for
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With