diff --git a/dev-tools/extract_party_license.rb b/dev-tools/extract_party_license.rb index ccf9e4594c7..e3326e66492 100644 --- a/dev-tools/extract_party_license.rb +++ b/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')