Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 4fb0b3c37d
Fetching contributors…

Cannot retrieve contributors at this time

executable file 11 lines (10 sloc) 0.366 kB
#!/usr/bin/env ruby
require 'rubygems'
if ARGV.first == '-l' || ARGV.first == '--list'
puts Gem.cache.map{ |s| s[1].name }.uniq.sort.join( "\n" )
else
gem_name = ARGV.first
gem_info = Gem.cache.find_name(gem_name).first
doc_file = File.join(gem_info.full_gem_path.gsub("/gems/#{gem_name}", "/doc/#{gem_name}"), 'rdoc/index.html' )
system "open #{doc_file}"
end
Jump to Line
Something went wrong with that request. Please try again.