Camilo Sanchez Camilo Sanchez - 1 year ago 63
Linux Question

How to know which version of sinatra is installed on linux?

I'm on the terminal, I don't know how to check the version of sinatra I have installed on my system.

mwp mwp
Answer Source

This answer is going to vary widely depending on:

  1. Whether you have more than one Ruby installed (e.g. a system Ruby and one installed through RVM, ruby-build, or ruby-install)
  2. Which Ruby version you have selected when you look for the Sinatra gem
  3. Whether or not you are using Bundler, and used Bundler to install Sinatra

The short, short answer is:

gem list --local sinatra