danger-xcode_summary 0.5.2 → 0.5.3

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
  SHA256:
3
- metadata.gz: 53f29c0e11a10b8eccb342cc72a8d578f04a8e30290fb6805b4bd0848462bb31
4
- data.tar.gz: f711a75b72b460f4bb4f8a5b6ca43f1d0fb4d1218e1f5f6019cf7923b70c847e
3
+ metadata.gz: 3207822c2dfeb0e69985f941835fa80d06ed3d0ae43e27576a2bcc72bfe8aea3
4
+ data.tar.gz: 17cb5713024a7874cf08d0f1fb1708bfacf53d865f889eaa1b76dbe2fa28342f
5
5
  SHA512:
6
- metadata.gz: b83113e47379c130f54d41f431d05f7374814cda752b5235e57dc409dfedea217f5079d81cf4c2cbd2e40aa438da1c5193f83fc24a1c45e0a2232f37a73b1f0c
7
- data.tar.gz: cb9ff766abbbfcfe7c5bbed3c2a5861e9f42bfdf75c95f7f926b39512671005fe03e444532f9e29d385245fb76d4c06c9b5ab0a08d605887511c87d3f617f227
6
+ metadata.gz: 8ee02ac8c805c7f49a739e4384b656cfe24e81c04f2ff0ae108b0e78616d4b84a5ed846fa9784af99801016254434fe027541b1f4044f26265e31363de25147d
7
+ data.tar.gz: ba9211234bc2a64d42fbabee964bbe55ad12e18a48b6e6f7df53d4dee15809c20bb7e4615e66cf669d49ed4e86378cd7678c2f8b3f164b101f1a1e3cafb880ea
data/.travis.yml CHANGED
@@ -6,7 +6,6 @@ cache:
6
6
  rvm:
7
7
  - 2.6.0
8
8
  - 2.5.3
9
- - 2.4.5
10
9
 
11
10
  script:
12
11
  - bundle exec rake spec
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- danger-xcode_summary (0.5.2)
4
+ danger-xcode_summary (0.5.3)
5
5
  danger-plugin-api (~> 1.0)
6
6
 
7
7
  GEM
@@ -9,7 +9,7 @@ GEM
9
9
  specs:
10
10
  addressable (2.7.0)
11
11
  public_suffix (>= 2.0.2, < 5.0)
12
- ast (2.4.1)
12
+ ast (2.4.2)
13
13
  claide (1.0.3)
14
14
  claide-plugins (0.9.2)
15
15
  cork
@@ -19,7 +19,7 @@ GEM
19
19
  colored2 (3.1.2)
20
20
  cork (0.3.0)
21
21
  colored2 (~> 3.1)
22
- danger (8.0.2)
22
+ danger (8.2.3)
23
23
  claide (~> 1.0)
24
24
  claide-plugins (>= 0.9.2)
25
25
  colored2 (~> 3.1)
@@ -27,23 +27,34 @@ GEM
27
27
  faraday (>= 0.9.0, < 2.0)
28
28
  faraday-http-cache (~> 2.0)
29
29
  git (~> 1.7)
30
- kramdown (~> 2.0)
30
+ kramdown (~> 2.3)
31
31
  kramdown-parser-gfm (~> 1.0)
32
32
  no_proxy_fix
33
33
  octokit (~> 4.7)
34
- terminal-table (~> 1)
34
+ terminal-table (>= 1, < 4)
35
35
  danger-plugin-api (1.0.0)
36
36
  danger (> 2.0)
37
37
  diff-lcs (1.4.4)
38
- faraday (1.0.1)
38
+ faraday (1.4.2)
39
+ faraday-em_http (~> 1.0)
40
+ faraday-em_synchrony (~> 1.0)
41
+ faraday-excon (~> 1.1)
42
+ faraday-net_http (~> 1.0)
43
+ faraday-net_http_persistent (~> 1.1)
39
44
  multipart-post (>= 1.2, < 3)
45
+ ruby2_keywords (>= 0.0.4)
46
+ faraday-em_http (1.0.0)
47
+ faraday-em_synchrony (1.0.0)
48
+ faraday-excon (1.1.0)
40
49
  faraday-http-cache (2.2.0)
41
50
  faraday (>= 0.8)
42
- ffi (1.13.1)
51
+ faraday-net_http (1.0.1)
52
+ faraday-net_http_persistent (1.1.0)
53
+ ffi (1.15.1)
43
54
  formatador (0.2.5)
44
- git (1.7.0)
55
+ git (1.8.1)
45
56
  rchardet (~> 1.8)
46
- guard (2.16.2)
57
+ guard (2.17.0)
47
58
  formatador (>= 0.2.4)
48
59
  listen (>= 2.7, < 4.0)
49
60
  lumberjack (>= 1.0.12, < 2.0)
@@ -57,14 +68,14 @@ GEM
57
68
  guard (~> 2.1)
58
69
  guard-compat (~> 1.1)
59
70
  rspec (>= 2.99.0, < 4.0)
60
- kramdown (2.3.0)
71
+ kramdown (2.3.1)
61
72
  rexml
62
73
  kramdown-parser-gfm (1.1.0)
63
74
  kramdown (~> 2.0)
64
75
  listen (3.0.7)
65
76
  rb-fsevent (>= 0.9.3)
66
77
  rb-inotify (>= 0.9.7)
67
- lumberjack (1.2.6)
78
+ lumberjack (1.2.8)
68
79
  method_source (1.0.0)
69
80
  multipart-post (2.1.1)
70
81
  nap (1.1.0)
@@ -73,65 +84,66 @@ GEM
73
84
  notiffany (0.1.3)
74
85
  nenv (~> 0.1)
75
86
  shellany (~> 0.0)
76
- octokit (4.18.0)
87
+ octokit (4.21.0)
77
88
  faraday (>= 0.9)
78
89
  sawyer (~> 0.8.0, >= 0.5.3)
79
90
  open4 (1.3.4)
80
- parallel (1.19.2)
81
- parser (2.7.1.4)
91
+ parallel (1.20.1)
92
+ parser (3.0.1.1)
82
93
  ast (~> 2.4.1)
83
- pry (0.13.1)
94
+ pry (0.14.1)
84
95
  coderay (~> 1.1)
85
96
  method_source (~> 1.0)
86
- public_suffix (4.0.5)
97
+ public_suffix (4.0.6)
87
98
  rainbow (3.0.0)
88
- rake (13.0.1)
89
- rb-fsevent (0.10.4)
99
+ rake (13.0.3)
100
+ rb-fsevent (0.11.0)
90
101
  rb-inotify (0.10.1)
91
102
  ffi (~> 1.0)
92
103
  rchardet (1.8.0)
93
- regexp_parser (1.7.1)
94
- rexml (3.2.4)
95
- rspec (3.9.0)
96
- rspec-core (~> 3.9.0)
97
- rspec-expectations (~> 3.9.0)
98
- rspec-mocks (~> 3.9.0)
99
- rspec-core (3.9.2)
100
- rspec-support (~> 3.9.3)
101
- rspec-expectations (3.9.2)
104
+ regexp_parser (2.1.1)
105
+ rexml (3.2.5)
106
+ rspec (3.10.0)
107
+ rspec-core (~> 3.10.0)
108
+ rspec-expectations (~> 3.10.0)
109
+ rspec-mocks (~> 3.10.0)
110
+ rspec-core (3.10.1)
111
+ rspec-support (~> 3.10.0)
112
+ rspec-expectations (3.10.1)
102
113
  diff-lcs (>= 1.2.0, < 2.0)
103
- rspec-support (~> 3.9.0)
104
- rspec-mocks (3.9.1)
114
+ rspec-support (~> 3.10.0)
115
+ rspec-mocks (3.10.2)
105
116
  diff-lcs (>= 1.2.0, < 2.0)
106
- rspec-support (~> 3.9.0)
107
- rspec-support (3.9.3)
108
- rubocop (0.86.0)
117
+ rspec-support (~> 3.10.0)
118
+ rspec-support (3.10.2)
119
+ rubocop (1.15.0)
109
120
  parallel (~> 1.10)
110
- parser (>= 2.7.0.1)
121
+ parser (>= 3.0.0.0)
111
122
  rainbow (>= 2.2.2, < 4.0)
112
- regexp_parser (>= 1.7)
123
+ regexp_parser (>= 1.8, < 3.0)
113
124
  rexml
114
- rubocop-ast (>= 0.0.3, < 1.0)
125
+ rubocop-ast (>= 1.5.0, < 2.0)
115
126
  ruby-progressbar (~> 1.7)
116
- unicode-display_width (>= 1.4.0, < 2.0)
117
- rubocop-ast (0.1.0)
118
- parser (>= 2.7.0.1)
119
- ruby-progressbar (1.10.1)
127
+ unicode-display_width (>= 1.4.0, < 3.0)
128
+ rubocop-ast (1.5.0)
129
+ parser (>= 3.0.1.1)
130
+ ruby-progressbar (1.11.0)
131
+ ruby2_keywords (0.0.4)
120
132
  sawyer (0.8.2)
121
133
  addressable (>= 2.3.5)
122
134
  faraday (> 0.8, < 2.0)
123
135
  shellany (0.0.1)
124
- terminal-table (1.8.0)
125
- unicode-display_width (~> 1.1, >= 1.1.1)
126
- thor (1.0.1)
127
- unicode-display_width (1.7.0)
128
- yard (0.9.25)
136
+ terminal-table (3.0.1)
137
+ unicode-display_width (>= 1.1.1, < 3)
138
+ thor (1.1.0)
139
+ unicode-display_width (2.0.0)
140
+ yard (0.9.26)
129
141
 
130
142
  PLATFORMS
131
143
  ruby
132
144
 
133
145
  DEPENDENCIES
134
- bundler (~> 1.3)
146
+ bundler (>= 2.2.10)
135
147
  danger
136
148
  danger-xcode_summary!
137
149
  guard (~> 2.14)
@@ -144,4 +156,4 @@ DEPENDENCIES
144
156
  yard
145
157
 
146
158
  BUNDLED WITH
147
- 1.17.2
159
+ 2.2.17
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.add_runtime_dependency 'danger-plugin-api', '~> 1.0'
27
27
 
28
28
  # General ruby development
29
- spec.add_development_dependency 'bundler', '~> 1.3'
29
+ spec.add_development_dependency 'bundler', '>= 2.2.10'
30
30
  spec.add_development_dependency 'rake', '~> 13.0'
31
31
 
32
32
  # Testing support
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module XcodeSummary
4
- VERSION = '0.5.2'
4
+ VERSION = '0.5.3'
5
5
  end
@@ -147,6 +147,7 @@ module Danger
147
147
  warn(result.message, sticky: false)
148
148
  end
149
149
  end
150
+ # rubocop:disable Lint/UnreachableLoop
150
151
  errors(xcode_summary).each do |result|
151
152
  if inline_mode && result.location
152
153
  fail(result.message, sticky: false, file: result.location.file_name, line: result.location.line)
@@ -154,6 +155,7 @@ module Danger
154
155
  fail(result.message, sticky: false)
155
156
  end
156
157
  end
158
+ # rubocop:enable Lint/UnreachableLoop
157
159
  end
158
160
 
159
161
  def messages(xcode_summary)
@@ -207,7 +209,8 @@ module Danger
207
209
 
208
210
  def parse_location(input)
209
211
  file_path, line, _column = input[:file_path].split(':')
210
- Location.new(input[:file_name], file_path, line.to_i)
212
+ file_name = relative_path(file_path)
213
+ Location.new(file_name, file_path, line.to_i)
211
214
  end
212
215
 
213
216
  def parse_test_location(failure)
@@ -219,7 +222,7 @@ module Danger
219
222
  def format_path(path)
220
223
  if plugin
221
224
  clean_path, line = parse_filename(path)
222
- path = clean_path + '#L' + line if clean_path && line
225
+ path = "#{clean_path}#L#{line}" if clean_path && line
223
226
  plugin.html_link(path)
224
227
  else
225
228
  path
data/spec/spec_helper.rb CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  require 'pathname'
4
4
  ROOT = Pathname.new(File.expand_path('..', __dir__))
5
- $LOAD_PATH.unshift((ROOT + 'lib').to_s)
6
- $LOAD_PATH.unshift((ROOT + 'spec').to_s)
5
+ $LOAD_PATH.unshift("#{ROOT}lib".to_s)
6
+ $LOAD_PATH.unshift("#{ROOT}spec".to_s)
7
7
 
8
8
  require 'bundler/setup'
9
9
  require 'pry'
@@ -89,10 +89,8 @@ module Danger
89
89
  it 'formats test errors' do
90
90
  @xcode_summary.report('spec/fixtures/test_errors.json')
91
91
  expect(@dangerfile.status_report[:errors]).to eq [
92
- # rubocop:disable Layout/LineLength
93
92
  '**MyWeight.MyWeightSpec**: works_with_success, expected to eventually not be nil, got \<nil\> <br /> ' \
94
93
  "<a href='https://github.com/diogot/danger-xcode_summary/blob/129jef029jf029fj2039fj203f92/MyWeight/MyWeightTests/Tests.swift#L86'>MyWeight/MyWeightTests/Tests.swift#L86</a>"
95
- # rubocop:enable Layout/LineLength
96
94
  ]
97
95
  end
98
96
 
@@ -131,13 +129,13 @@ module Danger
131
129
  expect(@xcode_summary).to have_received(:warn).with(
132
130
  instance_of(String),
133
131
  sticky: false,
134
- file: 'Bla.m',
132
+ file: 'MyWeight/Bla.m',
135
133
  line: 32
136
134
  )
137
135
  expect(@xcode_summary).to have_received(:warn).with(
138
136
  instance_of(String),
139
137
  sticky: false,
140
- file: 'ISO8601DateFormatter.m',
138
+ file: 'MyWeight/Pods/ISO8601DateFormatter/ISO8601DateFormatter.m',
141
139
  line: 176
142
140
  )
143
141
  end
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.5.2
4
+ version: 0.5.3
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: 2020-07-05 00:00:00.000000000 Z
12
+ date: 2021-05-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: danger-plugin-api
@@ -29,16 +29,16 @@ dependencies:
29
29
  name: bundler
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - "~>"
32
+ - - ">="
33
33
  - !ruby/object:Gem::Version
34
- version: '1.3'
34
+ version: 2.2.10
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - "~>"
39
+ - - ">="
40
40
  - !ruby/object:Gem::Version
41
- version: '1.3'
41
+ version: 2.2.10
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: rake
44
44
  requirement: !ruby/object:Gem::Requirement