Sha256: d3f8c16d037819f5bf03a7210b46a7e91d4ec3b3ef088d3fef91ccec2f9ffb9c
Contents?: true
Size: 820 Bytes
Versions: 4
Compression:
Stored size: 820 Bytes
Contents
# frozen_string_literal: true module Bumbler module Stats class << self def print_overview registry = Bumbler::Progress.registry puts "#{registry.count { |_n, time| time }} of #{registry.size} gems required" end def print_tracked_items Bumbler::Progress.registry.sort_by { |_n, time| time.to_f }.each do |name, time| if time puts format(' %s %s', ('%.2f' % time).rjust(8), name) else puts " pending: #{name}" end end self end def print_slow_items puts "Slow requires:" Bumbler::Hooks.slow_requires.to_a.sort_by! { |_n, t| t }.each do |name, time| puts format(' %s %s', ('%.2f' % time).rjust(8), name) end self end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bumbler-0.9.0 | lib/bumbler/stats.rb |
bumbler-0.8.0 | lib/bumbler/stats.rb |
bumbler-0.7.0 | lib/bumbler/stats.rb |
bumbler-0.6.0 | lib/bumbler/stats.rb |