minitest-rg 5.1.0 → 5.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +5 -0
- data/README.rdoc +10 -2
- data/Rakefile +2 -3
- data/lib/minitest/rg_plugin.rb +5 -2
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9825d9cc159787573b131d1a9ae84ee7c46de09
|
4
|
+
data.tar.gz: defc0b98eb914f3d623bcabad02077f2a18d4664
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bec6b3d7e472a548ac161a6b447090a37d112a859b519538c06d9b2b8fcbf0c04609bff2886fb45b95ddff9d1851fecc77d75fb513beaa62a004129b43f7cf97
|
7
|
+
data.tar.gz: 87564ac1867c848343371cb82b01302107f6f9426923a6f2cd65b2f712fbfb8128c2347f0831622273c987a3fb131a5e75faf308abf68e5b6bf13b94a8d3d868
|
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= minitest-rg
|
2
2
|
|
3
|
-
Adds color to your
|
3
|
+
Adds red/green color to your Minitest output.
|
4
4
|
|
5
5
|
== Install
|
6
6
|
|
@@ -10,7 +10,15 @@ Adds color to your MiniTest output.
|
|
10
10
|
|
11
11
|
Add the following to your test helper:
|
12
12
|
|
13
|
-
require
|
13
|
+
require "minitest/rg"
|
14
|
+
|
15
|
+
Or you can run your tests with the `--rg` flag:
|
16
|
+
|
17
|
+
$ ruby test/test_the_thing.rb --rg
|
18
|
+
|
19
|
+
Or if you are using a rake task to run your tests you can set the `--rg` flag in the `TESTOPTS` environment variable.
|
20
|
+
|
21
|
+
$ rake test TESTOPTS="--rg"
|
14
22
|
|
15
23
|
== Contribute
|
16
24
|
|
data/Rakefile
CHANGED
@@ -6,13 +6,12 @@ require 'hoe'
|
|
6
6
|
Hoe.plugin :gemspec # `gem install hoe-gemspec`
|
7
7
|
Hoe.plugin :git # `gem install hoe-git`
|
8
8
|
Hoe.plugin :minitest # `gem install hoe-minitest`
|
9
|
-
Hoe.plugins.delete :rubyforge
|
10
9
|
|
11
10
|
Hoe.spec 'minitest-rg' do
|
12
11
|
developer 'Mike Moore', 'mike@blowmage.com'
|
13
12
|
|
14
|
-
self.summary = '
|
15
|
-
self.description = '
|
13
|
+
self.summary = 'Red/Green for MiniTest'
|
14
|
+
self.description = 'Colored red/green output for Minitest'
|
16
15
|
self.urls = ['http://blowmage.com/minitest-rg']
|
17
16
|
self.license "MIT"
|
18
17
|
|
data/lib/minitest/rg_plugin.rb
CHANGED
@@ -3,6 +3,9 @@ require "minitest/test"
|
|
3
3
|
module MiniTest
|
4
4
|
|
5
5
|
def self.plugin_rg_options opts, options # :nodoc:
|
6
|
+
opts.on "--rg", "Add red/green to test output." do
|
7
|
+
RG.rg!
|
8
|
+
end
|
6
9
|
end
|
7
10
|
|
8
11
|
def self.plugin_rg_init options # :nodoc:
|
@@ -10,13 +13,13 @@ module MiniTest
|
|
10
13
|
io = RG.new options[:io]
|
11
14
|
|
12
15
|
self.reporter.reporters.grep(Minitest::Reporter).each do |rep|
|
13
|
-
rep.io = io
|
16
|
+
rep.io = io if rep.io.tty?
|
14
17
|
end
|
15
18
|
end
|
16
19
|
end
|
17
20
|
|
18
21
|
class RG
|
19
|
-
VERSION = "5.
|
22
|
+
VERSION = "5.2.0"
|
20
23
|
|
21
24
|
COLORS = {
|
22
25
|
'.' => "\e[32m.\e[0m",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest-rg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.
|
4
|
+
version: 5.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -44,15 +44,15 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '3.
|
47
|
+
version: '3.13'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '3.
|
55
|
-
description:
|
54
|
+
version: '3.13'
|
55
|
+
description: Colored red/green output for Minitest
|
56
56
|
email:
|
57
57
|
- mike@blowmage.com
|
58
58
|
executables: []
|
@@ -96,9 +96,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
96
96
|
version: '0'
|
97
97
|
requirements: []
|
98
98
|
rubyforge_project:
|
99
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.4.6
|
100
100
|
signing_key:
|
101
101
|
specification_version: 4
|
102
|
-
summary:
|
103
|
-
test_files:
|
104
|
-
- test/test_minitest-rg.rb
|
102
|
+
summary: Red/Green for MiniTest
|
103
|
+
test_files: []
|