slather 2.7.2 → 2.7.3
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 -1
- data/CHANGELOG.md +11 -0
- data/lib/slather/command/coverage_command.rb +1 -1
- data/lib/slather/coverage_service/coveralls.rb +17 -5
- data/lib/slather/version.rb +1 -1
- data/slather.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f178bd0539ca115a1da1191be8870c014198bfd19f0932e0c0aa4bbc4cde4ef4
|
|
4
|
+
data.tar.gz: e2e94ab2f8e93febbd583980e83bbf356a298b2e8f466a2a076b4ecd7ed1c969
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ffb1ae462f2f66a648f7353a327bfa42451f41bee1ffbd391f1de4089efa2a110908070e63b4a3aef4d55297afb10c615b2c4c173d135ec520522dc0ff3fb0fe
|
|
7
|
+
data.tar.gz: cf6c0763f817a72e9908cc899b22f03ca343016e29bdc696a87d04577836dd395fb8c975d2533a845ea649779b580aa9ba405125a026b7f6f993911c6e444497
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v2.7.3
|
|
4
|
+
|
|
5
|
+
* Support Coveralls parallel runs
|
|
6
|
+
[paulz](https://github.com/paulz)
|
|
7
|
+
[#523](https://github.com/SlatherOrg/slather/pull/523)
|
|
8
|
+
|
|
9
|
+
* Update nokogiri version
|
|
10
|
+
[anil291987](https://github.com/anil291987)
|
|
11
|
+
[#518](https://github.com/SlatherOrg/slather/pull/518)
|
|
12
|
+
[#524](https://github.com/SlatherOrg/slather/pull/524)
|
|
13
|
+
|
|
3
14
|
## v2.7.2
|
|
4
15
|
|
|
5
16
|
* Update xcodeproj version
|
|
@@ -30,7 +30,7 @@ class CoverageCommand < Clamp::Command
|
|
|
30
30
|
option ["--scheme"], "SCHEME", "The scheme for which the coverage was generated"
|
|
31
31
|
option ["--configuration"], "CONFIGURATION", "The configuration for test that the project was set"
|
|
32
32
|
option ["--workspace"], "WORKSPACE", "The workspace that the project was built in"
|
|
33
|
-
option ["--binary-file"], "BINARY_FILE", "The binary file against
|
|
33
|
+
option ["--binary-file"], "BINARY_FILE", "The binary file against which the coverage will be run", :multivalued => true
|
|
34
34
|
option ["--binary-basename"], "BINARY_BASENAME", "Basename of the file against which the coverage will be run", :multivalued => true
|
|
35
35
|
option ["--arch"], "ARCH", "Architecture to use from universal binaries"
|
|
36
36
|
option ["--source-files"], "SOURCE_FILES", "A Dir.glob compatible pattern used to limit the lookup to specific source files. Ignored in gcov mode.", :multivalued => true
|
|
@@ -184,11 +184,21 @@ module Slather
|
|
|
184
184
|
end
|
|
185
185
|
private :github_build_url
|
|
186
186
|
|
|
187
|
+
def is_parallel
|
|
188
|
+
ENV['IS_PARALLEL'] != nil
|
|
189
|
+
end
|
|
190
|
+
private :is_parallel
|
|
191
|
+
|
|
192
|
+
def github_job_name
|
|
193
|
+
ENV['GITHUB_JOB']
|
|
194
|
+
end
|
|
195
|
+
private :github_job_name
|
|
196
|
+
|
|
187
197
|
def coveralls_coverage_data
|
|
188
198
|
if ci_service == :travis_ci || ci_service == :travis_pro
|
|
189
199
|
if travis_job_id
|
|
190
200
|
if ci_service == :travis_ci
|
|
191
|
-
|
|
201
|
+
|
|
192
202
|
if coverage_access_token.to_s.strip.length > 0
|
|
193
203
|
raise StandardError, "Access token is set. Uploading coverage data for public repositories doesn't require an access token."
|
|
194
204
|
end
|
|
@@ -198,7 +208,7 @@ module Slather
|
|
|
198
208
|
:service_name => "travis-ci",
|
|
199
209
|
:source_files => coverage_files.map(&:as_json)
|
|
200
210
|
}.to_json
|
|
201
|
-
elsif ci_service == :travis_pro
|
|
211
|
+
elsif ci_service == :travis_pro
|
|
202
212
|
|
|
203
213
|
if coverage_access_token.to_s.strip.length == 0
|
|
204
214
|
raise StandardError, "Access token is not set. Uploading coverage data for private repositories requires an access token."
|
|
@@ -286,7 +296,9 @@ module Slather
|
|
|
286
296
|
:source_files => coverage_files.map(&:as_json),
|
|
287
297
|
:service_build_url => github_build_url,
|
|
288
298
|
:service_pull_request => github_pull_request,
|
|
289
|
-
:git => github_git_info
|
|
299
|
+
:git => github_git_info,
|
|
300
|
+
:parallel => is_parallel,
|
|
301
|
+
:flag_name => github_job_name
|
|
290
302
|
}.to_json
|
|
291
303
|
else
|
|
292
304
|
raise StandardError, "Environment variable `GITHUB_RUN_ID` not set. Is this running on github build?"
|
|
@@ -332,8 +344,8 @@ module Slather
|
|
|
332
344
|
|
|
333
345
|
curl_result = `curl -s --form json_file=@#{f.path} #{coveralls_api_jobs_path}`
|
|
334
346
|
|
|
335
|
-
if curl_result.is_a? String
|
|
336
|
-
curl_result_json = JSON.parse(curl_result)
|
|
347
|
+
if curl_result.is_a? String
|
|
348
|
+
curl_result_json = JSON.parse(curl_result)
|
|
337
349
|
|
|
338
350
|
if curl_result_json["error"]
|
|
339
351
|
error_message = curl_result_json["message"]
|
data/lib/slather/version.rb
CHANGED
data/slather.gemspec
CHANGED
|
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
|
29
29
|
|
|
30
30
|
spec.add_dependency 'clamp', '~> 1.3'
|
|
31
31
|
spec.add_dependency 'xcodeproj', '~> 1.21'
|
|
32
|
-
spec.add_dependency 'nokogiri', '
|
|
32
|
+
spec.add_dependency 'nokogiri', '>= 1.13.9'
|
|
33
33
|
spec.add_dependency 'CFPropertyList', '>= 2.2', '< 4'
|
|
34
34
|
|
|
35
35
|
spec.add_runtime_dependency 'activesupport'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: slather
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.7.
|
|
4
|
+
version: 2.7.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mark Larsen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-11-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -168,16 +168,16 @@ dependencies:
|
|
|
168
168
|
name: nokogiri
|
|
169
169
|
requirement: !ruby/object:Gem::Requirement
|
|
170
170
|
requirements:
|
|
171
|
-
- - "
|
|
171
|
+
- - ">="
|
|
172
172
|
- !ruby/object:Gem::Version
|
|
173
|
-
version:
|
|
173
|
+
version: 1.13.9
|
|
174
174
|
type: :runtime
|
|
175
175
|
prerelease: false
|
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
|
177
177
|
requirements:
|
|
178
|
-
- - "
|
|
178
|
+
- - ">="
|
|
179
179
|
- !ruby/object:Gem::Version
|
|
180
|
-
version:
|
|
180
|
+
version: 1.13.9
|
|
181
181
|
- !ruby/object:Gem::Dependency
|
|
182
182
|
name: CFPropertyList
|
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -341,7 +341,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
341
341
|
- !ruby/object:Gem::Version
|
|
342
342
|
version: '0'
|
|
343
343
|
requirements: []
|
|
344
|
-
rubygems_version: 3.
|
|
344
|
+
rubygems_version: 3.2.22
|
|
345
345
|
signing_key:
|
|
346
346
|
specification_version: 4
|
|
347
347
|
summary: Test coverage reports for Xcode projects
|