add url, email

This commit is contained in:
mrsolo 2014-01-14 14:46:22 -08:00
parent 3e28f417e7
commit 1dd218ca71
1 changed files with 3 additions and 3 deletions

View File

@ -31,12 +31,12 @@ def all_installed_gems
all
end
all_installed_gems.select {|y| y.gem_dir.include?('vendor') }.each do |x|
all_installed_gems.select {|y| y.gem_dir.include?('vendor') }.sort {|v, u| v.name <=> u.name }.each do |x|
puts '='*80 #seperator
if(x.license) #ah gem has license information
puts "%s,%s,%s"%[x.name, x.version, x.license]
puts "%s,%s,%s,%s,%s"%[x.name, x.version, x.license, x.homepage, x.email]
else
puts "%s,%s"%[x.name, x.version]
puts "%s,%s,%s,%s"%[x.name, x.version, x.homepage, x.email]
license_file = Dir.glob(File.join(x.gem_dir,'LICENSE*')).first #see if there is a license file
if(license_file)
file = File.open(license_file, 'r')