bin/testr in testr-14.1.0 vs bin/testr in testr-14.1.1
- old
+ new
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
=begin
-TESTR 1 "2011-11-03" "14.1.0" "TestR User Manuals"
-==================================================
+TESTR 1 "2011-12-07" "14.1.1"
+=============================
NAME
----
testr - Continuous testing tool for Ruby
@@ -50,17 +50,18 @@
require 'json'
require 'testr/client'
@driver = TestR::Client::Transceiver.new('testr-driver') do |line|
- event, *details = JSON.load(line)
+ evstr, *details = JSON.load(line)
+ event = evstr.to_sym
- case event = event.to_sym
+ case event
when :load then warn 'testr: Overhead absorbed. Ready for testing!'
when :over then warn 'testr: Reabsorbing changed overhead files...'
else
test_file, test_names, *details = details
- message = [event.upcase, test_file, test_names.inspect, details].join(' ')
+ message = [evstr.upcase, test_file, test_names.inspect, details].join(' ')
color = case event
when :pass then "\e[34m%s\e[0m" # blue
when :fail then "\e[31m%s\e[0m" # red
end