leftright 0.0.6 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,6 +7,13 @@ green, exceptions yellow, and failures red. But then there's more:
7
7
  * It shows you the full text of failures and exceptions as they happen
8
8
  * It skips all remaining tests for a TestCase class if one fails
9
9
 
10
+ This release was tested under:
11
+
12
+ * Rubinius 1.0.1
13
+ * REE 1.8.7
14
+ * MRI 1.8.6 and 1.8.7
15
+ * JRuby 1.4.0 and 1.5.2 (both in 1.8.7 mode)
16
+
10
17
  == Dependencies
11
18
 
12
19
  Right now this is pretty heavily dependent on Test::Unit, so it won't work
data/WHATSNEW CHANGED
@@ -1,3 +1,9 @@
1
+ * 0.9.0 (2010-08-27):
2
+ - Fixed "leftright.rb:113: warning: parenthesize argument(s) for future
3
+ version" in 1.8.6 (2007-03-13 patchlevel 0) and possibly other
4
+ versions (Mike Naberezny).
5
+ - Fixed a bug when running under non-ttys (Erik Peterson).
6
+
1
7
  * 0.0.6 (2010-08-02):
2
8
  - Added the 'lr' binary to run foreign test suites using leftright.
3
9
 
@@ -110,7 +110,7 @@ module LeftRight
110
110
  end
111
111
  rescue LoadError
112
112
  puts %{ Under JRuby, you need to install the 'ffi-ncurses' gem,
113
- since `stty` is not available. }.strip.gsub /\s+/, ' '
113
+ since `stty` is not available. }.strip.gsub(/\s+/, ' ')
114
114
  exit 1
115
115
  end
116
116
 
@@ -5,8 +5,11 @@
5
5
  module LeftRight
6
6
  module C
7
7
  def self.color(string = nil, code = nil)
8
- return string unless ::LeftRight::tty?
9
- string.nil? ? "\e[#{code}m" : "\e[#{code}m" + string + "\e[0m"
8
+ if ::LeftRight::tty?
9
+ string.nil? ? "\e[#{code}m" : "\e[#{code}m" + string + "\e[0m"
10
+ else
11
+ string || ''
12
+ end
10
13
  end
11
14
 
12
15
  def self.reset(string = nil)
@@ -1,3 +1,3 @@
1
1
  module LeftRight
2
- VERSION = '0.0.6'
2
+ VERSION = '0.9.0'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leftright
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 9
8
9
  - 0
9
- - 6
10
- version: 0.0.6
10
+ version: 0.9.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jordi Bunster
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-02 00:00:00 -07:00
18
+ date: 2010-08-27 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies: []
21
21