maxitest 1.5.6 → 1.5.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/maxitest/vendor/rg.rb +10 -11
- data/lib/maxitest/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: daf1f86dcaa5e7319eca2680e760a82ab0f3f117
|
4
|
+
data.tar.gz: 63b837de98a0ddec45921cba93085456727c45a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e849b319d4c1064347824aeccca914f6d0bafb5adb73d6e49cca834871cac9409a86e7e88727778f3a58351f9599a87f220dd06ec27fb992429789a5200e9c84
|
7
|
+
data.tar.gz: 704d91b74ee306ebb6dcd505ce308cde7b607e6998b2201bc660f4a00a74ee8970a5c58e12349b425fb83b4cd3759d1f9e1ce91a42a0c5b47869866b5ecdd722
|
data/lib/maxitest/vendor/rg.rb
CHANGED
@@ -27,8 +27,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
27
27
|
# https://raw.githubusercontent.com/blowmage/minitest-rg/master/lib/minitest/rg_plugin.rb
|
28
28
|
# BEGIN generated by rake update, do not modify
|
29
29
|
module MiniTest
|
30
|
-
|
31
|
-
def self.plugin_rg_options opts, options # :nodoc:
|
30
|
+
def self.plugin_rg_options opts, _options # :nodoc:
|
32
31
|
opts.on "--rg", "Add red/green to test output." do
|
33
32
|
RG.rg!
|
34
33
|
end
|
@@ -38,21 +37,21 @@ module MiniTest
|
|
38
37
|
if RG.rg?
|
39
38
|
io = RG.new options[:io]
|
40
39
|
|
41
|
-
|
40
|
+
reporter.reporters.grep(Minitest::Reporter).each do |rep|
|
42
41
|
rep.io = io if rep.io.tty?
|
43
42
|
end
|
44
43
|
end
|
45
44
|
end
|
46
45
|
|
47
46
|
class RG
|
48
|
-
VERSION = "5.2.0"
|
47
|
+
VERSION = "5.2.0".freeze
|
49
48
|
|
50
49
|
COLORS = {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
}
|
50
|
+
"." => "\e[32m.\e[0m",
|
51
|
+
"E" => "\e[33mE\e[0m",
|
52
|
+
"F" => "\e[31mF\e[0m",
|
53
|
+
"S" => "\e[36mS\e[0m"
|
54
|
+
}.freeze
|
56
55
|
|
57
56
|
attr_reader :io, :colors
|
58
57
|
|
@@ -73,10 +72,10 @@ module MiniTest
|
|
73
72
|
io.print(colors[o] || o)
|
74
73
|
end
|
75
74
|
|
76
|
-
def puts o=nil
|
75
|
+
def puts o = nil
|
77
76
|
return io.puts if o.nil?
|
78
77
|
if o =~ /(\d+) failures, (\d+) errors/
|
79
|
-
if
|
78
|
+
if Regexp.last_match[1] != "0" || Regexp.last_match[2] != "0"
|
80
79
|
io.puts "\e[31m#{o}\e[0m"
|
81
80
|
else
|
82
81
|
io.puts "\e[32m#{o}\e[0m"
|
data/lib/maxitest/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: maxitest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Grosser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|