color_pound_spec_reporter 0.0.4 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/lib/color_pound_spec_reporter.rb +17 -1
- data/lib/color_pound_spec_reporter/version.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
Y2YwN2IyYWZkM2NkYTViYTc1ZDNiNTUzZmZjN2M0ZWZkOTJhZTYxMw==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 17440c1cd2502cef101cfa37c85cf1234f982863
|
4
|
+
data.tar.gz: 7ec96a79dc68f7edc22ad7c54bb93cd35f5bcb2e
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
OGEyY2Q1YTFiNTdjZjNjZWU1NjFiYWFmMDRiZDNhOTYwNGQ2ZmE2M2E2MmE4
|
11
|
-
ZDViMjFlYTBlNjA2NTM1OGJmNDhkMzg0YTRkM2NkODJjMDQ5OWM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MWFjZWQ5OTQ3NzZkNTRlYmFmMGNiN2RkZWM0NjIzMmY5YTFkZDRjMzc4ZDc1
|
14
|
-
YTEzY2UxZDZkZTcxOTYyNWE1OTg5Zjc1YzhhNGQ4NDJiNDkyYTcwOTYwMzc3
|
15
|
-
MTQ1NGU3MGYxYTkzYTRmODkzOGE0YTZjZWE5NjNkODM5YzNhYTU=
|
6
|
+
metadata.gz: 05162864b24e8cf0a69ca34632782810eb76d383f306212ad42eca4e86f2844c898b48474354fb6b0d37bfb9fa6dbe82e81c62a3d49f936c33d7d5fc98dedcf0
|
7
|
+
data.tar.gz: df2aecd452b4f448065091256b4a061a36789a0293c8b7e51c4b441c6ba825dcf96b90c77eed513c73efc4cd34ececd0b07a754fbc4342ea584ea8e73501f264
|
@@ -44,7 +44,23 @@ class ColorPoundSpecReporter < Minitest::Reporters::SpecReporter
|
|
44
44
|
end
|
45
45
|
|
46
46
|
def print_exception(ex, kind)
|
47
|
-
print color_pound "\n\n
|
47
|
+
print color_pound "\n\n"
|
48
|
+
# print color_pound "#{ex.exception.class.to_s}: \n"
|
49
|
+
ex.message.each_line.with_index { |line, ind|
|
50
|
+
line = line.gsub(/\A */, "")
|
51
|
+
if kind.=~(/error/i) && ind.==(0)
|
52
|
+
puts " #{color_pound line}\n"
|
53
|
+
else
|
54
|
+
puts color_pound line
|
55
|
+
end
|
56
|
+
}
|
57
|
+
puts
|
58
|
+
# When e is a Minitest::UnexpectedError, the filtered backtrace is already part of the message printed out
|
59
|
+
# by the previous line. In that case, and that case only, skip the backtrace output.
|
60
|
+
unless ex.is_a?(MiniTest::UnexpectedError)
|
61
|
+
trace = filter_backtrace(ex.backtrace)
|
62
|
+
trace.each { |line| puts color_pound line.gsub(/\A */, "") }
|
63
|
+
end
|
48
64
|
puts
|
49
65
|
end
|
50
66
|
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: color_pound_spec_reporter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel P. Clark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.8'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.8'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
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
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: minitest-reporters
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 0.14.24
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 0.14.24
|
69
69
|
description: SpecReporter with easy to follow colors.
|
@@ -73,8 +73,8 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
77
|
-
- .travis.yml
|
76
|
+
- ".gitignore"
|
77
|
+
- ".travis.yml"
|
78
78
|
- CODE_OF_CONDUCT.md
|
79
79
|
- Gemfile
|
80
80
|
- LICENSE.txt
|
@@ -96,17 +96,17 @@ require_paths:
|
|
96
96
|
- lib
|
97
97
|
required_ruby_version: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
|
-
- -
|
99
|
+
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: 1.9.1
|
102
102
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
103
|
requirements:
|
104
|
-
- -
|
104
|
+
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
106
|
version: '0'
|
107
107
|
requirements: []
|
108
108
|
rubyforge_project:
|
109
|
-
rubygems_version: 2.4.
|
109
|
+
rubygems_version: 2.4.7
|
110
110
|
signing_key:
|
111
111
|
specification_version: 4
|
112
112
|
summary: Modifies your SpecReporter for easy to follow colored output.
|