How can I get the version of a gem using just ruby, I'd rather not use a system call and grep it the shells out put like so:
`gem search passenger`.scan(/(?:\(|, *)([^,)]*)/).flatten.first
=> "2.2.9"
Can't I just get it somehow with:
Gem::Version
I just don't know how to specify the gem i want... like in this case I want to get the Passenger gems newest version.