# File lib/autotest/shame.rb, line 24 def self.shame stats = CodeStatistics.new(*STATS_DIRECTORIES) code = stats.send :calculate_code tests = stats.send :calculate_tests msg = "Code To Test Ratio: 1:#{sprintf("%.2f", tests.to_f/code)}" $-w = ! $-w case @@chat_app when :adium then OSA.app('Adium').adium_controller.my_status_message = msg when :ichat then OSA.app('ichat').status_message = msg else raise "huh?" end $-w = ! $-w $stderr.puts "Status set to: #{msg.inspect}" end