Sorting the list of gems at build time by name

Printing them in sorted order makes it easier to find the desired gem.
But it has come to completely ignore the dependency.
This commit is contained in:
dearblue
2020-04-29 16:23:55 +09:00
parent e2ac2a82a5
commit 9c1220e14d
+2 -1
View File
@@ -336,7 +336,8 @@ EOS
puts " Binaries: #{@bins.join(', ')}" unless @bins.empty?
unless @gems.empty?
puts " Included Gems:"
@gems.map do |gem|
gems = @gems.sort_by { |gem| gem.name }
gems.each do |gem|
gem_version = " - #{gem.version}" if gem.version != '0.0.0'
gem_summary = " - #{gem.summary}" if gem.summary
puts " #{gem.name}#{gem_version}#{gem_summary}"