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: 0c5ba01f7c2a9589c8c8e6bf2bf964d5e073faa5
4
- data.tar.gz: 0018264bf4c9a9ec2744b1e8ca670c0fc5fa7862
3
+ metadata.gz: 2340d415fd4ec5df0fb2a3b12df99029dea88030
4
+ data.tar.gz: 72289860e2545024468db7aedc02c5160d4e225a
5
5
  SHA512:
6
- metadata.gz: 0f811984af1548b8068ca126419bd91f12306fec511a11539cb99e5f3bee18074d37fb4d78bbc2d1fee05352109b134079c78265bd7987d2b04121c40a8a1f08
7
- data.tar.gz: 2a9d1b94116d9426317e8bcd2ce483acb3d1af6adbaf433ba0efdcb83f9c23d90de376b8b500413979fb2b0d16097906cf17ecfe219fbc455997b1f5ea232f33
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 source_file_pathname_relative_to_project_root
28
- source_file_pathname.relative_path_from(project.main_group.real_path)
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, source_file_pathname_relative_to_project_root)
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.source_file_pathname_relative_to_project_root}: #{lines_tested} of #{total_lines} lines (#{percentage}%)"
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}%"
@@ -11,7 +11,7 @@ module Slather
11
11
 
12
12
  def as_json
13
13
  {
14
- :name => source_file_pathname_relative_to_project_root.to_s,
14
+ :name => source_file_pathname_relative_to_repo_root.to_s,
15
15
  :source => source_data,
16
16
  :coverage => coverage_data
17
17
  }
@@ -1,3 +1,3 @@
1
1
  module Slather
2
- VERSION = "0.0.234"
2
+ VERSION = "0.0.235"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slather
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.234
4
+ version: 0.0.235
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Larsen