minitest-rg 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,3 +1,8 @@
1
+ === 1.1.0 / 2012-09-20
2
+
3
+ Color summary output.
4
+
5
+
1
6
  === 1.0.0 / 2012-07-28
2
7
 
3
8
  New release! Thanks to previous maintainer Enrico Thierbach for allowing the project to continue without him.
data/lib/minitest/rg.rb CHANGED
@@ -2,7 +2,7 @@ require "minitest/unit"
2
2
 
3
3
  module MiniTest
4
4
  class RG
5
- VERSION = "1.0.0"
5
+ VERSION = "1.1.0"
6
6
 
7
7
  COLORS = {
8
8
  '.' => "\e[32m.\e[0m",
@@ -22,6 +22,19 @@ module MiniTest
22
22
  io.print(colors[o] || o)
23
23
  end
24
24
 
25
+ def puts o=nil
26
+ return io.puts if o.nil?
27
+ if o =~ /(\d+) failures, (\d+) errors/
28
+ if $1 != '0' || $2 != '0'
29
+ io.puts "\e[31m#{o}\e[0m"
30
+ else
31
+ io.puts "\e[32m#{o}\e[0m"
32
+ end
33
+ else
34
+ io.puts o
35
+ end
36
+ end
37
+
25
38
  def method_missing msg, *args
26
39
  return super unless io.respond_to? msg
27
40
  io.send(msg, *args)
data/minitest-rg.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "minitest-rg"
5
- s.version = "1.0.0.20120728083442"
5
+ s.version = "1.1.0.20120920101020"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Mike Moore"]
9
- s.date = "2012-07-28"
9
+ s.date = "2012-09-20"
10
10
  s.description = "Adds color to your MiniTest output"
11
11
  s.email = ["mike@blowmage.com"]
12
12
  s.extra_rdoc_files = ["CHANGELOG.rdoc", "Manifest.txt", "README.rdoc"]
@@ -23,16 +23,16 @@ Gem::Specification.new do |s|
23
23
  s.specification_version = 3
24
24
 
25
25
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
- s.add_development_dependency(%q<minitest>, ["~> 3.2"])
26
+ s.add_development_dependency(%q<minitest>, ["~> 3.4"])
27
27
  s.add_development_dependency(%q<rdoc>, ["~> 3.10"])
28
28
  s.add_development_dependency(%q<hoe>, ["~> 3.0"])
29
29
  else
30
- s.add_dependency(%q<minitest>, ["~> 3.2"])
30
+ s.add_dependency(%q<minitest>, ["~> 3.4"])
31
31
  s.add_dependency(%q<rdoc>, ["~> 3.10"])
32
32
  s.add_dependency(%q<hoe>, ["~> 3.0"])
33
33
  end
34
34
  else
35
- s.add_dependency(%q<minitest>, ["~> 3.2"])
35
+ s.add_dependency(%q<minitest>, ["~> 3.4"])
36
36
  s.add_dependency(%q<rdoc>, ["~> 3.10"])
37
37
  s.add_dependency(%q<hoe>, ["~> 3.0"])
38
38
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minitest-rg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-28 00:00:00.000000000 Z
12
+ date: 2012-09-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '3.2'
21
+ version: '3.4'
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '3.2'
29
+ version: '3.4'
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rdoc
32
32
  requirement: !ruby/object:Gem::Requirement