slather 2.7.3 → 2.7.4
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/CHANGELOG.md +6 -0
- data/lib/slather/coverage_file.rb +1 -1
- data/lib/slather/project.rb +2 -2
- data/lib/slather/version.rb +1 -1
- data/spec/slather/coverage_service/cobertura_xml_spec.rb +1 -1
- data/spec/slather/coverage_service/json_spec.rb +1 -1
- data/spec/slather/coverage_service/llvm_cov_spec.rb +1 -1
- data/spec/slather/coverage_service/sonarqube_xml_spec.rb +1 -1
- 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: b43954fd6f31e519f192e32ad881197d35830912e22158ca17cf333b86f97e0d
|
|
4
|
+
data.tar.gz: 97cf7f9b6eb50d2472aec42c3f698c3a299c38cfd8757cdb2a6e2dcad0933bc6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f38c40172a16f8375b56cdc873e92339f1f275cef7848bc0d9947714073dd5ff93ba11dc1957781c69316eec59a213c079067b99cb48c134aeb24c20ae2cb945
|
|
7
|
+
data.tar.gz: 1a098f9ab86b11d5c65cea0c309a99a709de76dfdc0f1171f0e100784522a74613cdb3fb06346f4fb1d6e27825250f01ece561ac07bea6e59a489837c7c0c654
|
data/CHANGELOG.md
CHANGED
|
@@ -51,7 +51,7 @@ module Slather
|
|
|
51
51
|
gcov_files_created = gcov_output.scan(/creating '(.+\..+\.gcov)'/)
|
|
52
52
|
|
|
53
53
|
gcov_file_name = "./#{source_file_pathname.basename}.gcov"
|
|
54
|
-
if File.
|
|
54
|
+
if File.exist?(gcov_file_name)
|
|
55
55
|
gcov_data = File.new(gcov_file_name).read
|
|
56
56
|
else
|
|
57
57
|
gcov_data = ""
|
data/lib/slather/project.rb
CHANGED
|
@@ -208,7 +208,7 @@ module Slather
|
|
|
208
208
|
|
|
209
209
|
def profdata_coverage_dir
|
|
210
210
|
@profdata_coverage_dir ||= begin
|
|
211
|
-
raise StandardError, "The specified build directory (#{self.build_directory}) does not exist" unless File.
|
|
211
|
+
raise StandardError, "The specified build directory (#{self.build_directory}) does not exist" unless File.exist?(self.build_directory)
|
|
212
212
|
dir = nil
|
|
213
213
|
if self.scheme
|
|
214
214
|
dir = Dir[File.join(build_directory,"/**/CodeCoverage/#{self.scheme}")].first
|
|
@@ -503,7 +503,7 @@ module Slather
|
|
|
503
503
|
end
|
|
504
504
|
end
|
|
505
505
|
|
|
506
|
-
raise StandardError, "No scheme named '#{self.scheme}' found in #{self.path}" unless File.
|
|
506
|
+
raise StandardError, "No scheme named '#{self.scheme}' found in #{self.path}" unless File.exist? xcscheme_path
|
|
507
507
|
|
|
508
508
|
xcscheme = Xcodeproj::XCScheme.new(xcscheme_path)
|
|
509
509
|
|
data/lib/slather/version.rb
CHANGED
|
@@ -45,7 +45,7 @@ describe Slather::CoverageService::CoberturaXmlOutput do
|
|
|
45
45
|
fixtures_project.post
|
|
46
46
|
|
|
47
47
|
filepath = "#{fixtures_project.output_directory}/cobertura.xml"
|
|
48
|
-
expect(File.
|
|
48
|
+
expect(File.exist?(filepath)).to be_truthy
|
|
49
49
|
|
|
50
50
|
FileUtils.rm_rf(fixtures_project.output_directory)
|
|
51
51
|
end
|
|
@@ -35,7 +35,7 @@ describe Slather::CoverageService::JsonOutput do
|
|
|
35
35
|
fixtures_project.post
|
|
36
36
|
|
|
37
37
|
filepath = "#{fixtures_project.output_directory}/report.json"
|
|
38
|
-
expect(File.
|
|
38
|
+
expect(File.exist?(filepath)).to be_truthy
|
|
39
39
|
|
|
40
40
|
FileUtils.rm_rf(fixtures_project.output_directory)
|
|
41
41
|
end
|
|
@@ -38,7 +38,7 @@ describe Slather::CoverageService::LlvmCovOutput do
|
|
|
38
38
|
fixtures_project.post
|
|
39
39
|
|
|
40
40
|
filepath = "#{fixtures_project.output_directory}/report.llcov"
|
|
41
|
-
expect(File.
|
|
41
|
+
expect(File.exist?(filepath)).to be_truthy
|
|
42
42
|
|
|
43
43
|
FileUtils.rm_rf(fixtures_project.output_directory)
|
|
44
44
|
end
|
|
@@ -38,7 +38,7 @@ describe Slather::CoverageService::SonarqubeXmlOutput do
|
|
|
38
38
|
fixtures_project.post
|
|
39
39
|
|
|
40
40
|
filepath = "#{fixtures_project.output_directory}/sonarqube-generic-coverage.xml"
|
|
41
|
-
expect(File.
|
|
41
|
+
expect(File.exist?(filepath)).to be_truthy
|
|
42
42
|
|
|
43
43
|
FileUtils.rm_rf(fixtures_project.output_directory)
|
|
44
44
|
end
|
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.4
|
|
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: 2023-01-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|