danger-xcode_summary 0.2.0 → 0.2.1
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/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +0 -2
- data/lib/xcode_summary/gem_version.rb +1 -1
- data/lib/xcode_summary/plugin.rb +1 -1
- data/spec/fixtures/errors.json +31 -0
- data/spec/xcode_summary_spec.rb +8 -0
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9083b1f9a94a9e18886d600ccc26e1431a1b40e6
|
|
4
|
+
data.tar.gz: af442fcaaddcd6913e0c6b1087cadab547e07e70
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 96d3e7856eee79099c5fa5e201f980444fd1e1debf6baaac0589887bf5185633728fe0b383a87213268ad7ddae4116dfae634527c6dbeb350ef6281449c3a1ea
|
|
7
|
+
data.tar.gz: c4247af5ab105a800bc2d7ccd29917f978f49e03fc8aa48bd5804f294e5285ed63f9ae01534011bcc8c3198a376f314510395668d0e9b82c75c65a05b6ea566d
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -42,7 +42,6 @@ to generate a JSON file that this plugin can read.
|
|
|
42
42
|
</tr>
|
|
43
43
|
</thead>
|
|
44
44
|
<tbody>
|
|
45
|
-
|
|
46
45
|
<tr>
|
|
47
46
|
<td><g-emoji alias="warning" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/26a0.png">⚠️</g-emoji></td>
|
|
48
47
|
<td>
|
|
@@ -72,7 +71,6 @@ to generate a JSON file that this plugin can read.
|
|
|
72
71
|
</tr>
|
|
73
72
|
</thead>
|
|
74
73
|
<tbody>
|
|
75
|
-
|
|
76
74
|
<tr>
|
|
77
75
|
<td><g-emoji alias="book" fallback-src="https://assets-cdn.github.com/images/icons/emoji/unicode/1f4d6.png">📖</g-emoji></td>
|
|
78
76
|
<td>Executed 5 tests, with 1 failure (0 unexpected) in 0.032 (0.065) seconds</td>
|
data/lib/xcode_summary/plugin.rb
CHANGED
|
@@ -130,7 +130,7 @@ module Danger
|
|
|
130
130
|
|
|
131
131
|
def errors(xcode_summary)
|
|
132
132
|
[
|
|
133
|
-
xcode_summary
|
|
133
|
+
xcode_summary.fetch(:errors, []).map { |message| Result.new(message, nil) },
|
|
134
134
|
xcode_summary.fetch(:compile_errors, {}).map do |h|
|
|
135
135
|
Result.new(format_compile_warning(h), parse_location(h))
|
|
136
136
|
end,
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"warnings": [
|
|
3
|
+
|
|
4
|
+
],
|
|
5
|
+
"ld_warnings": [
|
|
6
|
+
|
|
7
|
+
],
|
|
8
|
+
"compile_warnings": [
|
|
9
|
+
|
|
10
|
+
],
|
|
11
|
+
"errors": [
|
|
12
|
+
"some error",
|
|
13
|
+
"another error"
|
|
14
|
+
],
|
|
15
|
+
"compile_errors": [
|
|
16
|
+
|
|
17
|
+
],
|
|
18
|
+
"file_missing_errors": [
|
|
19
|
+
|
|
20
|
+
],
|
|
21
|
+
"undefined_symbols_errors": [
|
|
22
|
+
|
|
23
|
+
],
|
|
24
|
+
"duplicate_symbols_errors": [
|
|
25
|
+
|
|
26
|
+
],
|
|
27
|
+
"tests_failures": {
|
|
28
|
+
},
|
|
29
|
+
"tests_summary_messages": [
|
|
30
|
+
]
|
|
31
|
+
}
|
data/spec/xcode_summary_spec.rb
CHANGED
|
@@ -94,6 +94,14 @@ module Danger
|
|
|
94
94
|
]
|
|
95
95
|
end
|
|
96
96
|
|
|
97
|
+
it 'formats errors' do
|
|
98
|
+
@xcode_summary.report('spec/fixtures/errors.json')
|
|
99
|
+
expect(@dangerfile.status_report[:errors]).to eq [
|
|
100
|
+
'some error',
|
|
101
|
+
'another error'
|
|
102
|
+
]
|
|
103
|
+
end
|
|
104
|
+
|
|
97
105
|
context 'with inline_mode' do
|
|
98
106
|
before do
|
|
99
107
|
@xcode_summary.inline_mode = true
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: danger-xcode_summary
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Diogo Tridapalli
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-
|
|
12
|
+
date: 2017-05-10 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: danger-plugin-api
|
|
@@ -146,6 +146,7 @@ files:
|
|
|
146
146
|
- lib/xcode_summary/gem_version.rb
|
|
147
147
|
- lib/xcode_summary/plugin.rb
|
|
148
148
|
- spec/fixtures/bitbucket_pr.json
|
|
149
|
+
- spec/fixtures/errors.json
|
|
149
150
|
- spec/fixtures/pr_json.json
|
|
150
151
|
- spec/fixtures/summary.json
|
|
151
152
|
- spec/fixtures/summary_messages.json
|
|
@@ -180,6 +181,7 @@ summary: A [Danger](http://danger.systems) plugin that shows all build errors, w
|
|
|
180
181
|
and unit tests results generated from `xcodebuild`.
|
|
181
182
|
test_files:
|
|
182
183
|
- spec/fixtures/bitbucket_pr.json
|
|
184
|
+
- spec/fixtures/errors.json
|
|
183
185
|
- spec/fixtures/pr_json.json
|
|
184
186
|
- spec/fixtures/summary.json
|
|
185
187
|
- spec/fixtures/summary_messages.json
|