code_ownership 1.32.16 → 1.32.17
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aea9ab810bdf433b824ae72f06c4f33773139e6a5613a67ac29b5ff92e38ba70
|
4
|
+
data.tar.gz: 898b6d683ca5f3a4100eae345f2ff06ffff8024b63e8985b49ce86644d5401e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1294593e12fccc2cdbbc9946652dd5e80c75fd862cfbc2fc1fc0b5d7fb5632d1870da55cb639ea969efb7ff8fa9202c06b82d0c257ef4eda83f40c972d791cd4
|
7
|
+
data.tar.gz: 5160484ffc1919619082c13793cea928155743b6319fe69606f8a4f7447fbebc62bca78f714d947ee9a293b1543cf5dbfc719e861c4a14d43d68eba5dea86a9b
|
@@ -49,6 +49,7 @@ module CodeOwnership
|
|
49
49
|
def update_cache(cache, files)
|
50
50
|
# We map files to nil owners so that files whose annotation have been removed will be properly
|
51
51
|
# overwritten (i.e. removed) from the cache.
|
52
|
+
fileset = Set.new(files)
|
52
53
|
updated_cache_for_files = globs_to_owner(files)
|
53
54
|
cache.merge!(updated_cache_for_files)
|
54
55
|
|
@@ -57,7 +58,8 @@ module CodeOwnership
|
|
57
58
|
!Private.file_tracked?(file) ||
|
58
59
|
# If a file no longer has a file annotation (i.e. `globs_to_owner` doesn't map it)
|
59
60
|
# it should be removed from the cache
|
60
|
-
|
61
|
+
# We make sure to only apply this to the input files since otherwise `updated_cache_for_files.key?(file)` would always return `false` when files == []
|
62
|
+
(fileset.include?(file) && !updated_cache_for_files.key?(file))
|
61
63
|
end
|
62
64
|
|
63
65
|
invalid_files.each do |invalid_file|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: code_ownership
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.32.
|
4
|
+
version: 1.32.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gusto Engineers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: code_teams
|