uncov 0.1.1 → 0.2.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: 2d0159da32804599de7afca67329f3d883857c049a2a681028d19cf940aec6be
4
- data.tar.gz: 7aba6e5fddd2025ca51f9038770f41bce2b9b7426201d16c568e9a565b76fb78
3
+ metadata.gz: 78c62d082635e44e02cea9115151edb8eced966ff22565cfac50badc12d0317d
4
+ data.tar.gz: 681e95f8cf26a6a45fa5c380b112355a649d0cc78b2ad96a40770507394e3e8b
5
5
  SHA512:
6
- metadata.gz: 6e84d73647ed6996d0d3d85f05f87542e3f2820008332d842a3feb7d9b4d65b754bc986fcff2c0ae019bbb6e1e474de9cd09ffa82ba9591743af6f5c3e8a5e03
7
- data.tar.gz: 2151c2f5d2c43ef2a8e1095867a8238f47030a4ab9b4b5a136b8fde9cb1c015e3e6de98410cf95b68784d9af9f3e369c5f6b9710a666b6280da75d4226157b60
6
+ metadata.gz: a6dffc845de935eb5982a5ce588d4b4cdc3ede2c71f4986f972f37abde2b25f46f8f458f418363be0f9c124e0ef4a608d8bfce91b040d533f8c8af5491418359
7
+ data.tar.gz: 05c80e37da2c289a6997e0cd18d6c0302eeb2872772e22f945405e71c09ad3eecbbd13326ab14ee2f0e854a6f15c20e29f0d03245b5b21077461922176a9d675
data/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.2.1] - 2025-04-29
4
+
5
+ ## Patch
6
+
7
+ - Fix simplecov resultset parsing bug
8
+ - PR: #26
9
+
10
+
11
+
12
+
13
+ ## [0.2.0] - 2025-04-29
14
+
15
+ ## 🐛 Fixes
16
+
17
+ - Remove need for bundler
18
+ - PR: #23
19
+
20
+
3
21
  ## [0.1.1] - 2025-04-28
4
22
 
5
23
  - releasing...
data/README.md CHANGED
@@ -16,9 +16,9 @@ Uncov analyzes test coverage for changed files in your Git repository, helping y
16
16
  gem install uncov
17
17
  ```
18
18
 
19
- Or add to your Gemfile:
19
+ Or add to your Gemfile (only for convenience):
20
20
  ```ruby
21
- gem 'uncov'
21
+ gem 'uncov', require: false
22
22
  ```
23
23
 
24
24
  ## Usage
@@ -28,7 +28,7 @@ uncov
28
28
  ```
29
29
  With options:
30
30
  ```bash
31
- uncov --branch develop --path custom/coverage/path
31
+ uncov --target develop --path custom/coverage/path
32
32
  ```
33
33
  Options
34
34
  - `-t`, `--target BRANCH`: Target branch for comparison (default: main)
@@ -39,15 +39,17 @@ Options
39
39
 
40
40
  ## Requirements
41
41
 
42
- - Ruby 2.7+
42
+ - Ruby 3.2+
43
43
  - A Git repository
44
44
  - SimpleCov for test coverage
45
45
 
46
46
  ## Development
47
+ - `docker-compose build uncov` to (re-)build dev container,
47
48
  - `docker-compose run uncov` to enter dev container,
48
49
  - `bundle` to install dependencies,
49
- - `bundle exec rake` to run test and lint,
50
- - `bin/uncov` to see uncovered changes (check itself)
50
+ - `rake` to run test and lint,
51
+ - `rake install` to install the gem,
52
+ - `uncov` to see uncovered changes (check itself)
51
53
 
52
54
  ## Contributing
53
55
  Bug reports and pull requests are welcome on GitHub at https://github.com/mpapis/uncov.
data/bin/uncov CHANGED
@@ -1,9 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- require 'bundler/setup'
5
- # :nocov:
6
4
  require 'uncov'
7
- # :nocov:
8
5
 
9
6
  Uncov::CLI.start(ARGV)
@@ -27,7 +27,7 @@ module Uncov::Finder::SimpleCov
27
27
  def coverage
28
28
  root_path = "#{File.absolute_path(Uncov.configuration.path)}/"
29
29
  parsed = JSON.parse(File.read(coverage_path))
30
- coverage = parsed['coverage'] || parsed.order_by { |suite| suite['timestamp'] }.last['coverage']
30
+ coverage = parsed['coverage'] || parsed.max_by { |_name, suite| suite['timestamp'] }['coverage']
31
31
  coverage.transform_keys { |key| key.delete_prefix(root_path) }
32
32
  end
33
33
 
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.1.1'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uncov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Papis
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2025-04-29 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: colorize
@@ -106,6 +107,7 @@ metadata:
106
107
  source_code_uri: https://github.com/mpapis/uncov
107
108
  changelog_uri: https://github.com/mpapis/uncov/blob/develop/CHANGELOG.md
108
109
  rubygems_mfa_required: 'true'
110
+ post_install_message:
109
111
  rdoc_options: []
110
112
  require_paths:
111
113
  - lib
@@ -120,7 +122,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
122
  - !ruby/object:Gem::Version
121
123
  version: '0'
122
124
  requirements: []
123
- rubygems_version: 3.6.7
125
+ rubygems_version: 3.4.19
126
+ signing_key:
124
127
  specification_version: 4
125
128
  summary: Analyze test coverage for changed files in your git repository
126
129
  test_files: []