Sha256: 28aac8b6dceb824e6ea189e8bc0ee9d4bb6d830785d70d67c6eed77ea236e457
Contents?: true
Size: 609 Bytes
Versions: 6
Compression:
Stored size: 609 Bytes
Contents
#!/usr/bin/env ruby require 'tins/go' include Tins::GO require 'utils' require 'term/ansicolor' $opts = go 'm:h' if $opts[?h] puts <<~USAGE #{File.basename($0)} [OPTIONS] [FILES] USAGE exit end max = ($opts[?m] || 80).to_i files = ARGV for file in files File.open(file) do |f| for line in f size = line.size if size > max lineno = f.lineno blamer = Utils::LineBlamer.new(file, lineno) or next blame = blamer.perform or next author = blame[/\((.*?)\d{4}/, 1] puts [ author, size, "#{file}:#{lineno}" ] * ?\t end end end end
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
utils-0.62.0 | bin/long_lines |
utils-0.61.0 | bin/long_lines |
utils-0.60.2 | bin/long_lines |
utils-0.60.1 | bin/long_lines |
utils-0.60.0 | bin/long_lines |
utils-0.59.2 | bin/long_lines |