uncov 0.4.0 → 0.4.1

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
  SHA256:
3
- metadata.gz: 397cffc8dced395da502cb60cc2136da4cb7f886ab0dc53636d8d3dd886b263b
4
- data.tar.gz: 9d73dc0cbf0467f131d470f4ee486013daf64f2e73980749ffcad09ccb8fced7
3
+ metadata.gz: f5a03db793136112b1d041fd43b2d045e03c2edb8e2ceed196746e3edc5257b9
4
+ data.tar.gz: 5185e319bf464056f3fa5c693132a65c58468959f3449aa71c6b3bebde4cb54b
5
5
  SHA512:
6
- metadata.gz: 5407ea15f650d927ec5887b5d1d0530caea5cefa92d3f9bbde1e0895de820cae5cf415d61a223af834d2265d717ac1ba4984b8e18ed547915ad55e1b86d04406
7
- data.tar.gz: 21c9b8dc0af1213f24167b0a0442550444cb58fb3af667d8612951818a3301cd33c981d6151a3c69579a726a30057b62102c2f3fc207ffa56da3078495172d3f
6
+ metadata.gz: a8cc75fcd5ca03b4a2a9579539ca8c321114faa0b9ef37f628aa3da0225a0ffddb2b6ec2e4cbc34c9215366bd6f9668439135b5f33e9b3dffd06c3cee87db293
7
+ data.tar.gz: 517046c75414ed4c13add3297c54a5fd6ff2aad29f11b1f54e269253cb0a51b5f35cc9511d6c497d0e888d7ec5af1ef9f723203032b78f9125c33e6b43f6238e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2025-05-05: [v0.4.1](https://github.com/mpapis/uncov/releases/tag/v0.4.1)
4
+
5
+ ### Patch
6
+
7
+ - [#40](https://github.com/mpapis/uncov/pull/40): Ignore removed git diff files, by [@mpapis](https://github.com/mpapis)
8
+
9
+
10
+
3
11
  ## 2025-05-05: [v0.4.0](https://github.com/mpapis/uncov/releases/tag/v0.4.0)
4
12
 
5
13
  ### Minor
data/README.md CHANGED
@@ -31,21 +31,10 @@ Basic usage:
31
31
  uncov
32
32
  ```
33
33
 
34
- Display configuration options:
34
+ ### Display configuration options
35
35
  ```bash
36
36
  $ uncov -h
37
- Usage: uncov [options]
38
- -t, --target TARGET Target branch for comparison, default: "HEAD"
39
- -r, --report TYPE Report type to generate, one_of: "diff_lines"(default)
40
- -o, --output-format FORMAT Output format, one_of: "terminal"(default)
41
- -C, --context LINES_NUMBER Additional lines context in output, default: 1
42
- --test-command COMMAND Test command that generates SimpleCov, default: "COVERAGE=true bundle exec rake test"
43
- --simplecov-file PATH SimpleCov results file, default: "autodetect"
44
- --relevant-files Relevant files shell filename globing: https://ruby-doc.org/core-3.1.1/File.html#method-c-fnmatch, default: "{{bin,exe,exec}/*,{app,lib}/**/*.{rake,rb},Rakefile}"
45
- --debug Get some insights, default: false
46
- -v, --version Show version
47
- -h, --help Print this help
48
- uncov 0.3.0 by Michal Papis <mpapis@gmail.com>
37
+
49
38
  ```
50
39
 
51
40
 
@@ -10,7 +10,7 @@ module Uncov::Finder::GitDiff
10
10
 
11
11
  def files
12
12
  git_diff.filter_map do |file_diff|
13
- [file_diff.path, changed_lines(file_diff)] if relevant_file?(file_diff.path)
13
+ [file_diff.path, changed_lines(file_diff)] if relevant_file?(file_diff.path) && File.exist?(file_diff.path)
14
14
  end.to_h
15
15
  end
16
16
 
@@ -28,6 +28,8 @@ module Uncov::Report::DiffLines
28
28
  end
29
29
 
30
30
  def add_context(finder, file_name, lines_hash)
31
+ return if Uncov.configuration.context.zero?
32
+
31
33
  line_numbers =
32
34
  lines_hash.filter_map do |line_number, line|
33
35
  line_number if line.uncov?
data/lib/uncov/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uncov
4
- VERSION = '0.4.0'
4
+ VERSION = '0.4.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uncov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Papis