Browse Source

add url, email

mrsolo 11 years ago
parent
commit
1dd218ca71
1 changed files with 3 additions and 3 deletions
  1. 3 3
      dev-tools/extract_party_license.rb

+ 3 - 3
dev-tools/extract_party_license.rb

@@ -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')