danger-xcode_summary 0.2.0 → 0.2.1

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: fea9e12b00a58261fd0f841b76b7228395f4257f
4
- data.tar.gz: 721e083c3336c8d53cdec149bf9de450fa57a439
3
+ metadata.gz: 9083b1f9a94a9e18886d600ccc26e1431a1b40e6
4
+ data.tar.gz: af442fcaaddcd6913e0c6b1087cadab547e07e70
5
5
  SHA512:
6
- metadata.gz: 90588b0811d839b2c0a1b2d084742ff23ca4da1dc9f4a94128a18ad21f571ccc78c5a2725b0e51e84652303bbf4e67a3857741f757f6601f7b75a38deb66225a
7
- data.tar.gz: 8bdb96a869ea5944cdf8e3fba78827a1f30dcd6b4eb23ef1505d573ed948f7e6d842bb586ae2b0b235c83b03331d4c58d036e2fe345d649d777f5e3e42006265
6
+ metadata.gz: 96d3e7856eee79099c5fa5e201f980444fd1e1debf6baaac0589887bf5185633728fe0b383a87213268ad7ddae4116dfae634527c6dbeb350ef6281449c3a1ea
7
+ data.tar.gz: c4247af5ab105a800bc2d7ccd29917f978f49e03fc8aa48bd5804f294e5285ed63f9ae01534011bcc8c3198a376f314510395668d0e9b82c75c65a05b6ea566d
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .DS_Store
2
2
  pkg
3
3
  .idea/
4
+ .yardoc
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-xcode_summary (0.2.0)
4
+ danger-xcode_summary (0.2.1)
5
5
  danger-plugin-api (~> 1.0)
6
6
 
7
7
  GEM
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>
@@ -1,3 +1,3 @@
1
1
  module XcodeSummary
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
@@ -130,7 +130,7 @@ module Danger
130
130
 
131
131
  def errors(xcode_summary)
132
132
  [
133
- xcode_summary[:errors],
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
+ }
@@ -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.0
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-04-25 00:00:00.000000000 Z
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