tags:

views:

125

answers:

2

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?

+4  A: 
puts Gem.loaded_specs["activesupport"].version
seangrieve
awesome, thank you!
viatropos