How to tell which version of a gem a rails app is using

后端 未结 15 1164
生来不讨喜
生来不讨喜 2020-12-13 11:32

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?

15条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 12:22

    gem list 
    

    It will show all the matching gems e.g if some one do

    gem list rack
    

    Then th output will be as following

    *** LOCAL GEMS ***
    
    rack (1.6.4)
    rack-mount (0.6.14)
    rack-test (0.6.3, 0.6.2, 0.5.7)
    

提交回复
热议问题