Sha256: 9e6c12965854dcf23e9d03ff7267fa5a50632f4b31bf54cd444a4aaac0c34cce
Contents?: true
Size: 251 Bytes
Versions: 10
Compression:
Stored size: 251 Bytes
Contents
field = (ARGV.shift or '2').to_i lines = $stdin.read.split("\n") # leave the first lines while l = lines.shift puts l break if l =~ /total/ end puts lines.sort {|a,b| a.split[field].to_f <=> b.split[field].to_f }.reverse.join("\n")
Version data entries
10 entries across 10 versions & 1 rubygems