add url, email
This commit is contained in:
parent
3e28f417e7
commit
1dd218ca71
|
@ -31,12 +31,12 @@ def all_installed_gems
|
||||||
all
|
all
|
||||||
end
|
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
|
puts '='*80 #seperator
|
||||||
if(x.license) #ah gem has license information
|
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
|
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
|
license_file = Dir.glob(File.join(x.gem_dir,'LICENSE*')).first #see if there is a license file
|
||||||
if(license_file)
|
if(license_file)
|
||||||
file = File.open(license_file, 'r')
|
file = File.open(license_file, 'r')
|
||||||
|
|
Loading…
Reference in New Issue