I\'m investigating a rails app - the prod server has two version of a specific gem installed, how can I tell which version the prod app is using?
try this one for local gem :
gem list gemname | grep -P '(^|\s)\Kgemname(?=\s|$)'
If you use bundle:
bundle exec gem list gemname | grep -P '(^|\s)\Kgemname(?=\s|$)'