mynyml-redgreen 0.7 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,3 @@
1
- #:stopdoc:
2
1
  require 'pathname'
3
2
  require 'term/ansicolor'
4
3
 
@@ -8,13 +7,11 @@ module RedGreen
8
7
  attr_accessor :colour
9
8
 
10
9
  def visual
11
- Term::ANSIColor.send(self.colour || :green) { "="*78 }
10
+ Term::ANSIColor.send(colour || :green) { "="*78 }
12
11
  end
13
12
  end
14
13
 
15
- dir = Pathname(__FILE__).dirname.parent.join('lib/redgreen')
16
-
17
- if defined?(MiniTest::Unit::TestCase) then require dir.join('minitest')
18
- elsif defined?(Test::Unit::TestCase) then require dir.join('testunit')
19
- elsif defined?(Nanotest) then require dir.join('nanotest')
14
+ if defined?(MiniTest::Unit::TestCase) then require 'redgreen/minitest'
15
+ elsif defined?(Test::Unit::TestCase) then require 'redgreen/testunit'
16
+ elsif defined?(Nanotest) then require 'redgreen/nanotest'
20
17
  end
@@ -2,7 +2,7 @@ module Nanotest
2
2
  class << self
3
3
  alias :redgreen__orig_results :results
4
4
  def results
5
- RedGreen.colour = :red unless @@failures.empty?
5
+ RedGreen.colour = (@@failures.empty?) ? :green : :red
6
6
  redgreen__orig_results.strip + "\n" + RedGreen.visual + "\n\n"
7
7
  end
8
8
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mynyml-redgreen'
3
- s.version = '0.7'
3
+ s.version = '0.7.1'
4
4
  s.summary = "Standalone redgreen eye candy for test results, ala autotest"
5
5
  s.description = "Standalone redgreen eye candy for test results, ala autotest."
6
6
  s.author = "Martin Aumont"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mynyml-redgreen
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.7"
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Aumont
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-27 00:00:00 -03:00
12
+ date: 2009-11-30 00:00:00 -03:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency