class Bundler::Dependencies::CLI::Count
Private Instance Methods
counts()
click to toggle source
# File lib/bundler/dependencies/cli/count.rb, line 13 def counts @counts ||= gems.counts(min: options.minimum) end
format_counts()
click to toggle source
# File lib/bundler/dependencies/cli/count.rb, line 22 def format_counts puts "\nUnique dependencies per gem:" counts.each do |gem, count| puts format('%5d %s', count, gem) unless gem == File.basename($PROGRAM_NAME) end end
to_s()
click to toggle source
# File lib/bundler/dependencies/cli/count.rb, line 7 def to_s say(scanner.to_s, :bold) warnings format_counts end
warnings()
click to toggle source
# File lib/bundler/dependencies/cli/count.rb, line 17 def warnings warn("#{counts.count} gems with at least #{options.minimum} dependencies.") if options.minimum > 0 warn("#{counts.count} gems found after applying exclusions.") if options.without end