code_ownership 2.1.4-x86_64-linux-musl → 2.2.0-x86_64-linux-musl

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: c76a1209e8343b76df3535e393e9ccf7cf7d4adfcedda629dd531abd71a8fa7a
4
- data.tar.gz: 0a3029eacac7ec61d18b816a20cdc3cfb140d01b1b9302b175b9f4a38b1cf107
3
+ metadata.gz: df2856fc5b112173e813438e054074465574bb9f730b157f8a3003ad336d78bd
4
+ data.tar.gz: f39219664ed9290a8bd758e697b69b06decd0fc7460a83d31a5c74520f84988f
5
5
  SHA512:
6
- metadata.gz: c67fff4c04a3c5afefcf5f3f77c7dd1cd441d2d78df01399aacaca50427473d16d60f65d44ed5ea48734588861e2a397ca309ed7c3484c7ced450ac9825065b7
7
- data.tar.gz: af781dc5ed0187f27628dee6eeeaa2d010816aace49a27d36cd86194f35a08a57639fa659dbd288b72f17de59b6c866fe7b0834cb8f77a54a95519859d883db1
6
+ metadata.gz: ffc5350385f949e305e4a7b34261c40b36a5f12c50707f6c3745a0a28821fae7876af4ae538740bff38edc60dfab0f4db388702079bd89052baae05e8092e63f
7
+ data.tar.gz: 3b6f87b829f3d78f6da17fc105b50a75b901525993c33d14f9aa019d3a4a3c4070c4af63f179c5dd18175306976f2d0d6b632db4366105eb2cb4396613198ead
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module CodeOwnership
5
- VERSION = '2.1.4'
5
+ VERSION = '2.2.0'
6
6
  end
@@ -317,10 +317,13 @@ module CodeOwnership
317
317
  # Namely, the set of files, packages, and directories which are tracked for ownership should not change.
318
318
  # The primary reason this is helpful is for clients of CodeOwnership who want to test their code, and each test context
319
319
  # has different ownership and tracked files.
320
+ # It also clears the team files that codeowners-rs caches for `for_file(..., from_codeowners: false)`,
321
+ # so call it after adding or editing team files in a long-lived process.
320
322
  sig { void }
321
323
  def self.bust_caches!
322
324
  Private::FilePathTeamCache.bust_cache!
323
325
  Private::FilePathFinder.instance_variable_set(:@pwd, nil)
324
326
  Private::FilePathFinder.instance_variable_set(:@pwd_prefix, nil)
327
+ ::RustCodeOwners.clear_team_cache
325
328
  end
326
329
  end
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: 2.1.4
4
+ version: 2.2.0
5
5
  platform: x86_64-linux-musl
6
6
  authors:
7
7
  - Gusto Engineers
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-08-11 00:00:00.000000000 Z
11
+ date: 2026-09-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_teams