lib/codeowners/checker/group/pattern.rb in codeowners-checker-1.0.4 vs lib/codeowners/checker/group/pattern.rb in codeowners-checker-1.0.5

- old
+ new

@@ -24,9 +24,14 @@ def owner owners.first end + def rename_owner(owner, new_owner) + owners.delete(owner) + owners << new_owner unless owners.include?(new_owner) + end + # Parse the line counting whitespaces between pattern and owners. def parse(line) @pattern, *@owners = line.split(/\s+/) @whitespace = line.split('@').first.count(' ') - 1 end