danger-junit 0.7.3 → 0.7.4
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 +4 -4
- data/Gemfile.lock +27 -24
- data/lib/junit/gem_version.rb +1 -1
- data/lib/junit/plugin.rb +9 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4fee6603ee8518a035652d71f265d6d2e868a86
|
|
4
|
+
data.tar.gz: 488242d6b63b32f260f581581d8a6feb890596be
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b8a8f6051e4dc5fa807708f6f79f8ade2c4df1358234ab4710bac1034bc146142b71fabf91bae376a70da0c94a8510ab6b9a0a334403cf81d8e4c2761c9e5193
|
|
7
|
+
data.tar.gz: 5087c98670f0151e6e290b4ab0cfe77a12bb445d3d380a78b8df281ffd03c8af81ca19a9ebb279a17f54c210080a452e75d8bae20a70059406f82846efdf06bd
|
data/Gemfile.lock
CHANGED
|
@@ -1,40 +1,41 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
danger-junit (0.
|
|
5
|
-
danger (
|
|
4
|
+
danger-junit (0.7.4)
|
|
5
|
+
danger (> 2.0)
|
|
6
6
|
ox (~> 2.0)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
addressable (2.
|
|
11
|
+
addressable (2.5.2)
|
|
12
|
+
public_suffix (>= 2.0.2, < 4.0)
|
|
12
13
|
ast (2.3.0)
|
|
13
14
|
builder (3.2.2)
|
|
14
|
-
claide (1.0.
|
|
15
|
-
claide-plugins (0.9.
|
|
15
|
+
claide (1.0.2)
|
|
16
|
+
claide-plugins (0.9.2)
|
|
16
17
|
cork
|
|
17
18
|
nap
|
|
18
19
|
open4 (~> 1.3)
|
|
19
20
|
coderay (1.1.1)
|
|
20
|
-
|
|
21
|
-
cork (0.
|
|
22
|
-
|
|
23
|
-
danger (
|
|
21
|
+
colored2 (3.1.2)
|
|
22
|
+
cork (0.3.0)
|
|
23
|
+
colored2 (~> 3.1)
|
|
24
|
+
danger (5.3.3)
|
|
24
25
|
claide (~> 1.0)
|
|
25
|
-
claide-plugins (
|
|
26
|
-
|
|
26
|
+
claide-plugins (>= 0.9.2)
|
|
27
|
+
colored2 (~> 3.1)
|
|
27
28
|
cork (~> 0.1)
|
|
28
|
-
faraday (~> 0)
|
|
29
|
+
faraday (~> 0.9)
|
|
29
30
|
faraday-http-cache (~> 1.0)
|
|
30
31
|
git (~> 1)
|
|
31
32
|
kramdown (~> 1.5)
|
|
32
|
-
octokit (~> 4.
|
|
33
|
+
octokit (~> 4.7)
|
|
33
34
|
terminal-table (~> 1)
|
|
34
35
|
diff-lcs (1.2.5)
|
|
35
|
-
faraday (0.
|
|
36
|
+
faraday (0.13.1)
|
|
36
37
|
multipart-post (>= 1.2, < 3)
|
|
37
|
-
faraday-http-cache (1.3.
|
|
38
|
+
faraday-http-cache (1.3.1)
|
|
38
39
|
faraday (~> 0.8)
|
|
39
40
|
ffi (1.9.14)
|
|
40
41
|
formatador (0.2.5)
|
|
@@ -53,7 +54,7 @@ GEM
|
|
|
53
54
|
guard (~> 2.1)
|
|
54
55
|
guard-compat (~> 1.1)
|
|
55
56
|
rspec (>= 2.99.0, < 4.0)
|
|
56
|
-
kramdown (1.
|
|
57
|
+
kramdown (1.15.0)
|
|
57
58
|
listen (3.0.7)
|
|
58
59
|
rb-fsevent (>= 0.9.3)
|
|
59
60
|
rb-inotify (>= 0.9.7)
|
|
@@ -65,10 +66,10 @@ GEM
|
|
|
65
66
|
notiffany (0.1.1)
|
|
66
67
|
nenv (~> 0.1)
|
|
67
68
|
shellany (~> 0.0)
|
|
68
|
-
octokit (4.
|
|
69
|
-
sawyer (~> 0.
|
|
69
|
+
octokit (4.7.0)
|
|
70
|
+
sawyer (~> 0.8.0, >= 0.5.3)
|
|
70
71
|
open4 (1.3.4)
|
|
71
|
-
ox (2.
|
|
72
|
+
ox (2.5.0)
|
|
72
73
|
parser (2.3.1.2)
|
|
73
74
|
ast (~> 2.2)
|
|
74
75
|
powerpack (0.1.1)
|
|
@@ -76,6 +77,7 @@ GEM
|
|
|
76
77
|
coderay (~> 1.1.0)
|
|
77
78
|
method_source (~> 0.8.1)
|
|
78
79
|
slop (~> 3.4)
|
|
80
|
+
public_suffix (2.0.5)
|
|
79
81
|
rainbow (2.1.0)
|
|
80
82
|
rake (10.5.0)
|
|
81
83
|
rb-fsevent (0.9.7)
|
|
@@ -104,12 +106,13 @@ GEM
|
|
|
104
106
|
ruby-progressbar (~> 1.7)
|
|
105
107
|
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
106
108
|
ruby-progressbar (1.8.1)
|
|
107
|
-
sawyer (0.
|
|
108
|
-
addressable (>= 2.3.5, < 2.
|
|
109
|
-
faraday (~> 0.8, < 0
|
|
109
|
+
sawyer (0.8.1)
|
|
110
|
+
addressable (>= 2.3.5, < 2.6)
|
|
111
|
+
faraday (~> 0.8, < 1.0)
|
|
110
112
|
shellany (0.0.1)
|
|
111
113
|
slop (3.6.0)
|
|
112
|
-
terminal-table (1.
|
|
114
|
+
terminal-table (1.7.0)
|
|
115
|
+
unicode-display_width (~> 1.1)
|
|
113
116
|
thor (0.19.1)
|
|
114
117
|
unicode-display_width (1.1.0)
|
|
115
118
|
yard (0.9.5)
|
|
@@ -131,4 +134,4 @@ DEPENDENCIES
|
|
|
131
134
|
yard (~> 0.8)
|
|
132
135
|
|
|
133
136
|
BUNDLED WITH
|
|
134
|
-
1.
|
|
137
|
+
1.15.4
|
data/lib/junit/gem_version.rb
CHANGED
data/lib/junit/plugin.rb
CHANGED
|
@@ -86,7 +86,7 @@ module Danger
|
|
|
86
86
|
# @return [void]
|
|
87
87
|
def parse(file)
|
|
88
88
|
require 'ox'
|
|
89
|
-
raise "No
|
|
89
|
+
raise "No JUnit file was found at #{file}" unless File.exist? file
|
|
90
90
|
|
|
91
91
|
xml_string = File.read(file)
|
|
92
92
|
@doc = Ox.parse(xml_string)
|
|
@@ -134,6 +134,14 @@ module Danger
|
|
|
134
134
|
message = "### Tests: \n\n"
|
|
135
135
|
|
|
136
136
|
tests = (failures + errors)
|
|
137
|
+
|
|
138
|
+
# check the provided headers are available
|
|
139
|
+
unless headers.nil?
|
|
140
|
+
attributtesKey = tests.first.attributes.keys
|
|
141
|
+
not_available_headers = headers.select { |header| not attributtesKey.include?(header) }
|
|
142
|
+
raise "Some of headers provided aren't available in the JUnit report (#{not_available_headers})" unless not_available_headers.empty?
|
|
143
|
+
end
|
|
144
|
+
|
|
137
145
|
keys = headers || tests.first.attributes.keys
|
|
138
146
|
attributes = keys.map(&:to_s).map(&:capitalize)
|
|
139
147
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: danger-junit
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Orta Therox
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-10-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: danger
|
|
@@ -226,7 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
226
226
|
version: '0'
|
|
227
227
|
requirements: []
|
|
228
228
|
rubyforge_project:
|
|
229
|
-
rubygems_version: 2.
|
|
229
|
+
rubygems_version: 2.6.14
|
|
230
230
|
signing_key:
|
|
231
231
|
specification_version: 4
|
|
232
232
|
summary: Get automatic inline test reporting for JUnit-conforming XML files
|