danger-xcode_summary 1.1.0 → 1.2.0
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 +24 -24
- data/lib/xcode_summary/gem_version.rb +1 -1
- data/lib/xcode_summary/plugin.rb +2 -1
- data/spec/xcode_summary_spec.rb +0 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc604898bf47a3eb60ecd5c408807611ea65c56571990cb0e1a6987bf850902f
|
4
|
+
data.tar.gz: 849961ea33f86df1aa5e664cd7b4a155830eb6c2b889c13289cc1bd64cdd3db2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 179dd4adf7cd7dcac32e3a25d9ebd0234271eaa02d15649cab79847d2d8d2e965fa1edccf27d0e3c71e74c2e4c8c24e44c110d53b513498efc5d8a2e46ee3d5e
|
7
|
+
data.tar.gz: bf254c7e2a8d7e5b8b9465052aaffa2814f077d0f965923e79816d5f81e63e678f9f2984d446be9fa49e3a7bfa539ccd70acaaee2ad84b46add1cd2d2c58e304
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
danger-xcode_summary (1.
|
4
|
+
danger-xcode_summary (1.2.0)
|
5
5
|
danger-plugin-api (~> 1.0)
|
6
6
|
xcresult (~> 0.2)
|
7
7
|
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
colored2 (3.1.2)
|
21
21
|
cork (0.3.0)
|
22
22
|
colored2 (~> 3.1)
|
23
|
-
danger (8.
|
23
|
+
danger (8.6.1)
|
24
24
|
claide (~> 1.0)
|
25
25
|
claide-plugins (>= 0.9.2)
|
26
26
|
colored2 (~> 3.1)
|
@@ -36,7 +36,7 @@ GEM
|
|
36
36
|
danger-plugin-api (1.0.0)
|
37
37
|
danger (> 2.0)
|
38
38
|
diff-lcs (1.5.0)
|
39
|
-
faraday (1.
|
39
|
+
faraday (1.10.0)
|
40
40
|
faraday-em_http (~> 1.0)
|
41
41
|
faraday-em_synchrony (~> 1.0)
|
42
42
|
faraday-excon (~> 1.1)
|
@@ -63,7 +63,7 @@ GEM
|
|
63
63
|
faraday-retry (1.0.3)
|
64
64
|
ffi (1.15.5)
|
65
65
|
formatador (1.1.0)
|
66
|
-
git (1.
|
66
|
+
git (1.11.0)
|
67
67
|
rchardet (~> 1.8)
|
68
68
|
guard (2.18.0)
|
69
69
|
formatador (>= 0.2.4)
|
@@ -79,7 +79,7 @@ GEM
|
|
79
79
|
guard (~> 2.1)
|
80
80
|
guard-compat (~> 1.1)
|
81
81
|
rspec (>= 2.99.0, < 4.0)
|
82
|
-
kramdown (2.
|
82
|
+
kramdown (2.4.0)
|
83
83
|
rexml
|
84
84
|
kramdown-parser-gfm (1.1.0)
|
85
85
|
kramdown (~> 2.0)
|
@@ -99,45 +99,45 @@ GEM
|
|
99
99
|
faraday (>= 0.9)
|
100
100
|
sawyer (~> 0.8.0, >= 0.5.3)
|
101
101
|
open4 (1.3.4)
|
102
|
-
parallel (1.
|
103
|
-
parser (3.1.
|
102
|
+
parallel (1.22.1)
|
103
|
+
parser (3.1.2.0)
|
104
104
|
ast (~> 2.4.1)
|
105
105
|
pry (0.14.1)
|
106
106
|
coderay (~> 1.1)
|
107
107
|
method_source (~> 1.0)
|
108
|
-
public_suffix (4.0.
|
108
|
+
public_suffix (4.0.7)
|
109
109
|
rainbow (3.1.1)
|
110
110
|
rake (13.0.6)
|
111
111
|
rb-fsevent (0.11.1)
|
112
112
|
rb-inotify (0.10.1)
|
113
113
|
ffi (~> 1.0)
|
114
114
|
rchardet (1.8.0)
|
115
|
-
regexp_parser (2.
|
115
|
+
regexp_parser (2.3.1)
|
116
116
|
rexml (3.2.5)
|
117
|
-
rspec (3.
|
118
|
-
rspec-core (~> 3.
|
119
|
-
rspec-expectations (~> 3.
|
120
|
-
rspec-mocks (~> 3.
|
121
|
-
rspec-core (3.
|
122
|
-
rspec-support (~> 3.
|
123
|
-
rspec-expectations (3.
|
117
|
+
rspec (3.11.0)
|
118
|
+
rspec-core (~> 3.11.0)
|
119
|
+
rspec-expectations (~> 3.11.0)
|
120
|
+
rspec-mocks (~> 3.11.0)
|
121
|
+
rspec-core (3.11.0)
|
122
|
+
rspec-support (~> 3.11.0)
|
123
|
+
rspec-expectations (3.11.0)
|
124
124
|
diff-lcs (>= 1.2.0, < 2.0)
|
125
|
-
rspec-support (~> 3.
|
126
|
-
rspec-mocks (3.
|
125
|
+
rspec-support (~> 3.11.0)
|
126
|
+
rspec-mocks (3.11.1)
|
127
127
|
diff-lcs (>= 1.2.0, < 2.0)
|
128
|
-
rspec-support (~> 3.
|
129
|
-
rspec-support (3.
|
130
|
-
rubocop (1.
|
128
|
+
rspec-support (~> 3.11.0)
|
129
|
+
rspec-support (3.11.0)
|
130
|
+
rubocop (1.28.2)
|
131
131
|
parallel (~> 1.10)
|
132
132
|
parser (>= 3.1.0.0)
|
133
133
|
rainbow (>= 2.2.2, < 4.0)
|
134
134
|
regexp_parser (>= 1.8, < 3.0)
|
135
135
|
rexml
|
136
|
-
rubocop-ast (>= 1.
|
136
|
+
rubocop-ast (>= 1.17.0, < 2.0)
|
137
137
|
ruby-progressbar (~> 1.7)
|
138
138
|
unicode-display_width (>= 1.4.0, < 3.0)
|
139
|
-
rubocop-ast (1.
|
140
|
-
parser (>= 3.
|
139
|
+
rubocop-ast (1.17.0)
|
140
|
+
parser (>= 3.1.1.0)
|
141
141
|
ruby-progressbar (1.11.0)
|
142
142
|
ruby2_keywords (0.0.5)
|
143
143
|
sawyer (0.8.2)
|
data/lib/xcode_summary/plugin.rb
CHANGED
@@ -204,7 +204,8 @@ module Danger
|
|
204
204
|
fragment = document_location.url.split('#').last
|
205
205
|
params = CGI.parse(fragment).transform_values(&:first)
|
206
206
|
line_number = params['StartingLineNumber']
|
207
|
-
|
207
|
+
# StartingLineNumber is 0-based, but we need a 1-based value
|
208
|
+
line = line_number.nil? || line_number.empty? ? 0 : line_number.to_i + 1
|
208
209
|
Location.new(file_name, relative_path(file_path), line)
|
209
210
|
end
|
210
211
|
|
data/spec/xcode_summary_spec.rb
CHANGED
@@ -18,13 +18,6 @@ module Danger
|
|
18
18
|
@xcode_summary.project_root = '/Users/marcelofabri/SwiftLint/'
|
19
19
|
end
|
20
20
|
|
21
|
-
it 'test' do
|
22
|
-
params = { 'one' => '10' }
|
23
|
-
line_number = params['StartingLineNumber']
|
24
|
-
line = line_number.empty? ? -0 : line_number.to_i + 1 # StartingLineNumber is 0-based, but we need a 1-based value
|
25
|
-
expect(line).to eq -0
|
26
|
-
end
|
27
|
-
|
28
21
|
it 'fail if file does not exist' do
|
29
22
|
@xcode_summary.report('spec/fixtures/inexistent_file.xcresult')
|
30
23
|
expect(@dangerfile.status_report[:errors]).to eq ['summary file not found']
|
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: 1.
|
4
|
+
version: 1.2.0
|
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: 2022-
|
12
|
+
date: 2022-04-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: xcresult
|