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

后端 未结 15 1167
生来不讨喜
生来不讨喜 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:26

    There's also a list in Gemfile.lock, located in the root directory of your app.

    For this reason I leave Gemfile.lock out of my .gitignore. This has saved me more than once when I forgot to specify the gem version in GemFile, and a gem got updated with breaking changes.

提交回复
热议问题