
17 Nov
2020
17 Nov
'20
9:26 a.m.
+ @my_info = { + 'my_email' => mail_content.from[0], + 'my_name' => mail_content.From.unparsed_value.gsub(/ <[^<>]*>/, ''),
Better put all mail_content related code to ParseApplyAccountEmail And let ParseApplyAccountEmail have a single function to return my_info hash. Including the below my_commit_url, my_ssh_pubkey fields.
OK, I will optimize it Thanks, Luan Shengde
+ 'my_ssh_pubkey' => [] + } + end + + def check_to_send_account + my_commit_url, my_ssh_pubkey = parse_commit_url_pub_key + acct_info = apply_my_account(my_ssh_pubkey) + + @my_info['my_commit_url'] = my_commit_url + @my_info['my_login_name'] = acct_info['my_login_name'] + @my_info['my_ssh_pubkey'] << my_ssh_pubkey
Thanks, Fengguang