Loop through gems cache : gem « Development « Ruby






Loop through gems cache


require 'rubygems'

Gem::cache.each do |name, gem|
  puts %{"#{gem.name}" gem version #{gem.version} is installed.}
end

 








Related examples in the same category

1.Installing RubyInline on Unix-related platforms
2.install rails
3.Finding Libraries by Searching Gem Repositories.rb
4.Use gem to get library version
5.Installing and Using a Gem
6.Uninstalling a Gem.rb