I want to check with “gem outdated” if there are any gem updates. Is it possible to get the result of the gem software in a script as string or value?
I don’t want to execute system() oder something similar.
thanks for your help
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
RubyGems is actually a library, the
gemcommandline tool is only a small wrapper around that library. You can do anything you can do with the commandline tool from that library (and indeed some things you can’t do with the commandline tool).However, the library API is not as well documented as the commandline tool’s parameters. There is a testuite, though.