undercover 0.8.2 → 0.8.3

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: bfcb8604d5d6f2d750c8ef734b36a1d0d84beceb31c999e00b06b653063655b1
4
- data.tar.gz: 7dd446be898392baa898f4ff3329584d11410795334800f923175c8997cfb6f1
3
+ metadata.gz: 8144aeeac145c88e63c5f57ea0d31c17648b8ea428d11755b15b4bb706fa2982
4
+ data.tar.gz: 769fbd667e3bd48572829c4214f17afcd23cafaf1e7795452a2832b8105b15e0
5
5
  SHA512:
6
- metadata.gz: facb61acb2821bd2ac578b35c70e0cc2139f35ff71f196703590821e1430270681d8bcc7b2b596efa7a3ff94862453056664c354afd9c399298120aca22eaa6f
7
- data.tar.gz: 3e30b3515493666b14c5006b084bd023a686b81df6c510adc2bdfb8da496efa086c9560f455443e70bfd32537105b9fd13c3d3a32b4845a67a3614dd9178de89
6
+ metadata.gz: af0adac825397c7c7be37a1e4d1d0a1cc039c4b0ab3a774460d4352fbf8157f4b485b3a1f4b11621d3e2ea0368a251e43ae345ca3082f3baebd5f0d5dfe36fa5
7
+ data.tar.gz: a3ba29ca707eeac980a4d1eab2f17ec17bc206f33ef57e599bd5cb0cffa76d7aaae7934d29b2a6453942abae90f8210bc5d83e23c604349c70bec8dc45fe212a
data/CHANGELOG.md CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ # [0.8.3] - 2025-11-20
10
+ ### Fixed
11
+ - Normalize slash prefix in FilterSet support to work with the 'rails' profile (https://github.com/grodowski/undercover/pull/244)
12
+
9
13
  # [0.8.2] - 2025-11-15
10
14
 
11
15
  ### Fixed
@@ -205,7 +209,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
205
209
  ### Added
206
210
  - First release of `undercover` 🎉
207
211
 
208
- [Unreleased]: https://github.com/grodowski/undercover/compare/v0.8.2...HEAD
212
+ [Unreleased]: https://github.com/grodowski/undercover/compare/v0.8.3...HEAD
213
+ [0.8.3]: https://github.com/grodowski/undercover/compare/v0.8.2...v0.8.3
209
214
  [0.8.2]: https://github.com/grodowski/undercover/compare/v0.8.1...v0.8.2
210
215
  [0.8.1]: https://github.com/grodowski/undercover/compare/v0.8.0...v0.8.1
211
216
  [0.8.0]: https://github.com/grodowski/undercover/compare/v0.7.4...v0.8.0
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018-2020 Jan Grodowski
3
+ Copyright (c) 2018-2025 Jan Grodowski
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -26,13 +26,17 @@ module Undercover
26
26
  simplecov_filters.any? do |filter|
27
27
  filter = filter.transform_keys(&:to_sym)
28
28
  if filter[:string]
29
- filepath.include?(filter[:string])
29
+ normalized(filepath).include?(filter[:string])
30
30
  elsif filter[:regex]
31
- filepath.match?(Regexp.new(filter[:regex]))
31
+ normalized(filepath).match?(Regexp.new(filter[:regex]))
32
32
  elsif filter[:file]
33
- filepath == filter[:file]
33
+ filepath == filter[:file] # TODO: check if file also gets a slash?
34
34
  end
35
35
  end
36
36
  end
37
+
38
+ def normalized(filepath)
39
+ filepath.start_with?('/') ? filepath : "/#{filepath}"
40
+ end
37
41
  end
38
42
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Undercover
4
- VERSION = '0.8.2'
4
+ VERSION = '0.8.3'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: undercover
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Grodowski
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-11-15 00:00:00.000000000 Z
10
+ date: 2025-11-20 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: base64