Over in this question, an answer was given to analyze the Bundler dependency list. That works great, but it doesn’t give you the list of packages and versions actually being used, because of “>=” dependencies. Is there a way to get the list of packages and versions actually being used rather than just what the dependencies are?
Share
Looks like the way to do this is similar to what was posted in the other question:
Produces:
This code will print out all of the gems and versions being used in your current environment. One thing to note about the answer in that other question is that it will return all of the dependencies, even those that aren’t in your current rails environment (for example, the ones that are in your “test” gem grouping).