turn 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/.meta/version +1 -1
  2. data/History.txt +4 -0
  3. data/lib/turn.rb +17 -0
  4. metadata +1 -1
data/.meta/version CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ == 0.6.2 / 2009-10-07
2
+ * Detecting rails environment and adjusting output accordingly
3
+ * Colorizing the filename
4
+
1
5
  == 0.6.1 / 2009-08-26
2
6
  * Switched ANSI color support to ANSI project.
3
7
 
data/lib/turn.rb CHANGED
@@ -49,6 +49,7 @@ module Console
49
49
  method, file = name.scan(%r/^([^\(]+)\(([^\)]+)\)/o).flatten!
50
50
  if @t_cur_file != file
51
51
  @t_cur_file = file
52
+ file = COLORIZE ? ::ANSI::Code.yellow(file) : file
52
53
  turn_out.puts file
53
54
  end
54
55
  turn_out.print " %-69s" % method
@@ -77,6 +78,22 @@ module Console
77
78
  turn_out.puts msg
78
79
  end
79
80
 
81
+ private
82
+ def setup_mediator
83
+ @mediator = create_mediator(@suite)
84
+ suite_name = @suite.to_s
85
+ if ( @suite.kind_of?(Module) )
86
+ suite_name = @suite.name
87
+ end
88
+ msg = rails? ? "\n" : "Loaded suite #{suite_name}" #always same in rails so scrap it
89
+ output(msg)
90
+ end
91
+
92
+ def rails?
93
+ $:.to_s.include? "rails"
94
+ end
95
+
96
+
80
97
  end
81
98
  end
82
99
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Pease