How do you check the Gem Version in Ruby at Runtime?

Posted by viatropos on Stack Overflow See other posts from Stack Overflow or by viatropos
Published on 2010-06-02T00:35:01Z Indexed on 2010/06/02 0:43 UTC
Read the original article Hit count: 241

Filed under:
|

Is it possible to check the gem version of the currently loaded gem in a ruby/rails app?

During debugging, I would like to be able to do something like:

puts RubyGem.loaded_version(:active_support)

Anything like that exist?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rubygems