uncov 0.6.0 → 0.6.2

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: fc5eb3c1149eba5de56dd2bd43a4bf9a450abc25689456ef9290da0bb903b657
4
- data.tar.gz: '08567ab62f909c0b8ebdf9f8bc8793edcb0e96e77408b10a5249da61cab7e42d'
3
+ metadata.gz: 2d82be2fa41130df5aaa8c0c3394133765bb5b4b70137a339c967e2270bcf18c
4
+ data.tar.gz: dc4c2d99cce1d35c9c721f4b9b1731a7d6d957ecc0b69a0bea5cb5e8b07be694
5
5
  SHA512:
6
- metadata.gz: 849aec6d7483b7e76349d714ed59a7c53f0f3d9dd7c04e1423b808c0f00559274ef541fff97a024e001f7861a171c1079769229bc2bb2652500568f14f1f4283
7
- data.tar.gz: 07eda0122c302e6003ed972585f7d0103985bbf56a5bf778029a3c3591ab9535cc94c8d3b83cc211f94eace1ebf495ef10eb365d8339807179e3ec3d8e294ad7
6
+ metadata.gz: fa41a7cbc56a1ace195343f710538ae42b783d3ec760c76c3451a091696dcdba83bdbdd63ff89e7c6a692986d4f3e9aa41529fbcd160cea499978ba4505d6d04
7
+ data.tar.gz: b321d635296dc2d4b744b516467c633727bdfca6b4d289aff68bccd2bd53ff7b511fa37a4ed6d011dba815e37017f88e54bb6432716f270306342899694c9f77
data/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 2025-08-21: [v0.6.2](https://github.com/mpapis/uncov/releases/tag/v0.6.2)
4
+
5
+ ### Patch
6
+
7
+ - [#74](https://github.com/mpapis/uncov/pull/74): Update git requirement from ~> 3.1 to >= 3.1, < 5.0, by [@dependabot[bot]](https://github.com/dependabot[bot])
8
+
9
+
10
+ ## 2025-05-31: [v0.6.1](https://github.com/mpapis/uncov/releases/tag/v0.6.1)
11
+
12
+ ### Patch
13
+
14
+ - [#63](https://github.com/mpapis/uncov/pull/63): Improve filesystem performance, by [@mpapis](https://github.com/mpapis)
15
+
16
+
3
17
  ## 2025-05-26: [v0.6.0](https://github.com/mpapis/uncov/releases/tag/v0.6.0)
4
18
 
5
19
  ### Minor
data/CONTRIBUTING.md CHANGED
@@ -12,7 +12,7 @@ All security vulnerabilities will be promptly addressed.
12
12
 
13
13
  ## Development
14
14
  - `docker-compose build uncov` to (re-)build dev container,
15
- - `docker-compose run uncov` to enter dev container,
15
+ - `docker-compose run --rm uncov` to enter dev container,
16
16
  - `bundle` to install dependencies and uncov,
17
17
  - `rake` to run lint, test and uncov - **precheck** before opening PR,
18
18
  - `uncov` to test manually
data/README.md CHANGED
@@ -66,7 +66,7 @@ nocov* - filters/flags only work with coverage/.resultset.json SimpleCov fi
66
66
  FN_GLOB: shell filename globing -> https://ruby-doc.org/core-3.1.1/File.html#method-c-fnmatch
67
67
  in bash: `shopt -s extglob dotglob globstar` and test with `ls {app,lib}/**/*.rb`
68
68
 
69
- uncov 0.6.0 by Michal Papis <mpapis@gmail.com>
69
+ uncov 0.6.2 by Michal Papis <mpapis@gmail.com>
70
70
  ```
71
71
 
72
72
 
@@ -5,8 +5,10 @@ class Uncov::Finder::FileSystem
5
5
  include Uncov::Cache
6
6
 
7
7
  def code_files
8
- list_files(Uncov.configuration.relevant_files).to_h do |file_name|
9
- [file_name, read_lines(file_name)]
8
+ cache(:code_files) do
9
+ list_files(Uncov.configuration.relevant_files).to_h do |file_name|
10
+ [file_name, read_lines(file_name)]
11
+ end
10
12
  end
11
13
  end
12
14
 
@@ -17,7 +19,9 @@ class Uncov::Finder::FileSystem
17
19
  private
18
20
 
19
21
  def test_files
20
- list_files(Uncov.configuration.relevant_tests)
22
+ cache(:test_files) do
23
+ list_files(Uncov.configuration.relevant_tests)
24
+ end
21
25
  end
22
26
 
23
27
  def list_files(glob)
@@ -25,6 +29,8 @@ class Uncov::Finder::FileSystem
25
29
  end
26
30
 
27
31
  def read_lines(file_name)
28
- File.readlines(file_name).each_with_index.to_h { |line, line_index| [line_index + 1, line.rstrip] }
32
+ lines = {}
33
+ File.foreach(file_name).with_index(1) { |line, idx| lines[idx] = line.chomp }
34
+ lines
29
35
  end
30
36
  end
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.6.0'
4
+ VERSION = '0.6.2'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uncov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Papis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-05-26 00:00:00.000000000 Z
11
+ date: 2025-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colorize
@@ -28,16 +28,22 @@ dependencies:
28
28
  name: git
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '3.1'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '5.0'
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
- - - "~>"
41
+ - - ">="
39
42
  - !ruby/object:Gem::Version
40
43
  version: '3.1'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '5.0'
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: git_diff_parser
43
49
  requirement: !ruby/object:Gem::Requirement