code_ownership 2.1.4-arm64-darwin → 2.2.1-arm64-darwin

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: ba0ed92122c8fabe029b02f247136101cde679cc4514235f4c038c5f54070c54
4
- data.tar.gz: 1194a6bb5426b38798953f8302413dd668f272e66e054281b1cc83cff9bef6dc
3
+ metadata.gz: 8b7ba195b621f2158c8f4fcb39376ad96dec2646503bab326d24d10403b93129
4
+ data.tar.gz: 85b35139da6d014b44dc13c1f2367199a041ca293e187949e1571a8a458f2f1f
5
5
  SHA512:
6
- metadata.gz: e0252e45c4a269ea8a23890cc9b936df29203e303e20e91273af683d0496d6319ac9ae846dad390751178be169bc8efd2ca088a185d3a02b86811fc40e88c9c2
7
- data.tar.gz: 04aa46c77d28222a43b61053e6dda84735692f6e12d6459616ca586613073659b15d240ec581e78b9042855cbe14f80b6ff2f74dac500159c495fe11909f1e90
6
+ metadata.gz: 96113cbb7b3ef9382f155a1a8fd96e660cb0faf69b5fd228846d237de9600153042922dd84da4a77a5c7c27744aab70ea9a027aff9598af24034bc5ffd649182
7
+ data.tar.gz: 377df7c1e91b4a5e6cc9baca8eb06f0b4675770305c79674f248809f09d8f83fbb005b70f5f8a87720a88c41db283c030ce1f08a95e91b9846e5cbfc74411a97
data/bin/codeownership CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
  # typed: strict
3
4
 
4
5
  require 'code_ownership'
@@ -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.1'
6
6
  end
@@ -232,7 +232,7 @@ module CodeOwnership
232
232
  files: nil
233
233
  )
234
234
  if autocorrect
235
- ::RustCodeOwners.generate_and_validate(files, !stage_changes)
235
+ ::RustCodeOwners.generate_and_validate(files, stage_changes)
236
236
  else
237
237
  ::RustCodeOwners.validate(files)
238
238
  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.1
5
5
  platform: arm64-darwin
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-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: code_teams