Skip to content

Commit 80a80c1

Browse files
authored
Canonical names maintenance (#357)
1 parent 8abf619 commit 80a80c1

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

app/models/names_manager/canonical_names.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,7 @@ def self.map(canonical_name, *also_as)
486486
map 'Hakan Ensari', 'hakanensari'
487487
map 'Hal Brodigan', 'postmodern'
488488
map 'Hampton Catlin', "hcatlin\100gmail.com"
489+
map 'Harsh Deep', 'Harsh'
489490
map 'Hartley McGuire', 'Hartley McGuire @skipkayhil'
490491
map 'Hendrik Mans', "hendrik\100mans.de"
491492
map 'Hendy Irawan', 'ceefour'
@@ -1193,7 +1194,6 @@ def self.map(canonical_name, *also_as)
11931194
map 'Zhang Kang', 'piecehealth', 'Kang Zhang'
11941195
map 'Zheng Jia', 'zhengjia'
11951196
map 'zzak', 'Zachary Scott'
1196-
map 'Harsh Deep', 'Harsh', "harsh.deep\100moderntreasury.com"
11971197
# Reverse SEEN_ALSO_AS to be able to go from handler to canonical name.
11981198
CANONICAL_NAME_FOR = {}
11991199
SEEN_ALSO_AS.each do |canonical_name, also_as|

test/credits/canonical_names_test.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,6 +1211,10 @@ class CanonicalNamesTest < ActiveSupport::TestCase
12111211
assert_contributor_names 'bd261ff', 'David Heinemeier Hansson'
12121212
end
12131213

1214+
test 'dhh' do
1215+
assert_contributor_names 'dd6f3e1', 'David Heinemeier Hansson'
1216+
end
1217+
12141218
test 'diatmpravin' do
12151219
assert_contributor_names 'a302597', 'Pravin Mishra'
12161220
end
@@ -1760,6 +1764,10 @@ class CanonicalNamesTest < ActiveSupport::TestCase
17601764
assert_contributor_names '4c21026', 'Mike Breen'
17611765
end
17621766

1767+
test 'Harsh' do
1768+
assert_contributor_names '5ff38f4', 'Harsh Deep'
1769+
end
1770+
17631771
test 'Hartley McGuire @skipkayhil' do
17641772
assert_contributor_names '773d640', 'Hartley McGuire'
17651773
end
@@ -5159,13 +5167,5 @@ class CanonicalNamesTest < ActiveSupport::TestCase
51595167
test 'प्रथमेश Sonpatki' do
51605168
assert_contributor_names 'a7a2bc0f66', 'Prathamesh Sonpatki'
51615169
end
5162-
5163-
test 'Harsh' do
5164-
assert_contributor_names '5ff38f4', 'Harsh Deep'
5165-
end
5166-
5167-
test 'dhh' do
5168-
assert_contributor_names 'dd6f3e1', 'David Heinemeier Hansson'
5169-
end
51705170
end
51715171
end

0 commit comments

Comments
 (0)