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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 55dc3099933a62ddeaafc23ef6f47d6bbc73929c
4
- data.tar.gz: a2acd49203e7899db66917820f13752c385ffc45
3
+ metadata.gz: d9825d9cc159787573b131d1a9ae84ee7c46de09
4
+ data.tar.gz: defc0b98eb914f3d623bcabad02077f2a18d4664
5
5
  SHA512:
6
- metadata.gz: 3e8a32bb68564d205b71f8239ea9a3afbfbb58b95d9042e2aaba11573ffe00a449d70119cc44d3aa89e8ae29700b07f3c0c1661e352f9bd9ce819cd1b5f378ee
7
- data.tar.gz: b8e61130f90247c3a94fb1388a3eceb2166a81294aef62e92fd98c5cb2b49e0d05a00fa3e3df0f34a9ee1e4885bcd2189b6e7e194d9b5c39ac7bb97a6f4c56c5
6
+ metadata.gz: bec6b3d7e472a548ac161a6b447090a37d112a859b519538c06d9b2b8fcbf0c04609bff2886fb45b95ddff9d1851fecc77d75fb513beaa62a004129b43f7cf97
7
+ data.tar.gz: 87564ac1867c848343371cb82b01302107f6f9426923a6f2cd65b2f712fbfb8128c2347f0831622273c987a3fb131a5e75faf308abf68e5b6bf13b94a8d3d868
@@ -1,3 +1,8 @@
1
+ === 5.2.0 / 2014-04-16
2
+
3
+ Only output red/green colors when TTY is supported. (cbougher)
4
+ Add +--rg+ flag.
5
+
1
6
  === 5.1.0 / 2014-04-16
2
7
 
3
8
  Activate plugin only when required, and fix circular loading issue. (grosser)
@@ -1,6 +1,6 @@
1
1
  = minitest-rg
2
2
 
3
- Adds color to your MiniTest output.
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 'minitest/rg'
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 = 'RedGreen for MiniTest'
15
- self.description = 'Adds color to your MiniTest output'
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
 
@@ -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.1.0"
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.1.0
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: 2014-04-16 00:00:00.000000000 Z
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.11'
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.11'
55
- description: Adds color to your MiniTest output
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.2.2
99
+ rubygems_version: 2.4.6
100
100
  signing_key:
101
101
  specification_version: 4
102
- summary: RedGreen for MiniTest
103
- test_files:
104
- - test/test_minitest-rg.rb
102
+ summary: Red/Green for MiniTest
103
+ test_files: []