Skip to content

Commit

Permalink
bumping version
Browse files Browse the repository at this point in the history
Co-authored-by: Perry Hertler <[email protected]>
  • Loading branch information
schoblaska and perryqh committed Feb 16, 2024
1 parent db54310 commit d874641
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code_ownership.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Gem::Specification.new do |spec|
spec.name = 'code_ownership'
spec.version = '1.36.1'
spec.version = '1.36.2'
spec.authors = ['Gusto Engineers']
spec.email = ['[email protected]']
spec.summary = 'A gem to help engineering teams declare ownership of code'
Expand Down
25 changes: 25 additions & 0 deletions spec/lib/code_ownership/private/owner_assigner_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,31 @@ module CodeOwnership
)
end

context 'when file name includes square brackets' do
let(:globs_to_owning_team_map) do
{
'app/services/[test]/some_other_[test]_file.ts' => team_1,
}
end

before do
write_file('app/services/[test]/some_other_[test]_file.ts', <<~YML)
// @team Bar
YML

write_file('app/services/t/some_other_e_file.ts', <<~YML)
// @team Bar
YML
end

it 'matches the glob pattern' do
expect(assign_owners).to eq(
'app/services/[test]/some_other_[test]_file.ts' => team_1,
'app/services/t/some_other_e_file.ts' => team_1
)
end
end

context 'when glob pattern also exists' do
before do
write_file('app/services/t/some_other_file.ts', <<~YML)
Expand Down

0 comments on commit d874641

Please sign in to comment.