HI All,
I have a ruby program, i want to get complete information of the
Gem versions installed for running the script.
Some way to print all the gems used and their corresponding versions.!!!
That makes it easier for me to install only those gems rather than
installing unused ones.
Any insights pls share it with me!!
Cheers
You can make this dependency explicit by using Bundler. You create a
single file which specifies the gems you use and the version
requirements, and bundler gives you tools for installing those gems on
the target system.
This maybe overkill for you right now, but it solves the problems of
having gems with conflicting inter-dependencies, and how to ensure that
when you install an application on a target system you get exactly the
same versions of gems that you developed and tested with.
Google “ruby bundler” for more info.