slather 0.0.234 → 0.0.235
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2340d415fd4ec5df0fb2a3b12df99029dea88030
|
|
4
|
+
data.tar.gz: 72289860e2545024468db7aedc02c5160d4e225a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f800ffc9332733b6644bcc8742be5a35682ae82b3b6560e836b152a8f44630baad10cf26ecbc430ee855aa5b38cc281c7268921a172f42dc424051cf96a3ba65
|
|
7
|
+
data.tar.gz: 5b349f607c04d39b6ca966f9dfb0e28a196674524e0d8b34ca2f406d56f08d173adcb506fa0a0eb293f8a9c913c8c38a6aae2efc9f91ffd0ffe878981d4241dc
|
|
@@ -24,8 +24,8 @@ module Slather
|
|
|
24
24
|
source_file.read
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
-
def
|
|
28
|
-
source_file_pathname.relative_path_from(
|
|
27
|
+
def source_file_pathname_relative_to_repo_root
|
|
28
|
+
source_file_pathname.relative_path_from(Pathname("./").realpath)
|
|
29
29
|
end
|
|
30
30
|
|
|
31
31
|
def gcov_data
|
|
@@ -59,7 +59,7 @@ module Slather
|
|
|
59
59
|
|
|
60
60
|
def ignored?
|
|
61
61
|
project.ignore_list.any? do |ignore|
|
|
62
|
-
File.fnmatch(ignore,
|
|
62
|
+
File.fnmatch(ignore, source_file_pathname_relative_to_repo_root)
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
@@ -20,7 +20,7 @@ module Slather
|
|
|
20
20
|
total_project_lines_tested += lines_tested
|
|
21
21
|
total_project_lines += total_lines
|
|
22
22
|
|
|
23
|
-
puts "#{coverage_file.
|
|
23
|
+
puts "#{coverage_file.source_file_pathname_relative_to_repo_root}: #{lines_tested} of #{total_lines} lines (#{percentage}%)"
|
|
24
24
|
end
|
|
25
25
|
total_percentage = '%.2f' % [(total_project_lines_tested / total_project_lines.to_f) * 100.0]
|
|
26
26
|
puts "Test Coverage: #{total_percentage}%"
|
data/lib/slather/version.rb
CHANGED