lib/omniauth/strategies/devpost.rb in omniauth-devpost-0.0.1 vs lib/omniauth/strategies/devpost.rb in omniauth-devpost-0.0.3

- old
+ new

@@ -23,14 +23,24 @@ uid { raw_info['id'] } info do prune!({ + 'name' => [raw_info['first_name'], raw_info['last_name']].join(" ").strip, 'nickname' => raw_info['screen_name'], 'email' => raw_info['email'], - 'location' => raw_info['location'], + 'location' => (raw_info['location'] || {})['address'], 'first_name' => raw_info['first_name'], - 'last_name' => raw_info['last_name'] + 'last_name' => raw_info['last_name'], + 'description' => raw_info['tagline'], + 'image' => raw_info['avatar_url'], + 'urls' => { + "Devpost" => raw_info['url'], + "Github" => raw_info['urls']['github'], + "Twitter" => raw_info['urls']['twitter'], + "LinkedIn" => raw_info['urls']['linkedin'], + "Website" => raw_info['urls']['website'] + } }) end extra do prune!({