lib/omniauth/strategies/yahoo.rb in omniauth-yahoo-0.0.1 vs lib/omniauth/strategies/yahoo.rb in omniauth-yahoo-0.0.2

- old
+ new

@@ -36,20 +36,20 @@ { :raw_info => raw_info } end - # Return info gathered from the yahoo.people.getInfo API call + # Return info gathered from the v1/user/:id/profile API call def raw_info # This is a public API and does not need signing or authentication request = "http://social.yahooapis.com/v1/user/#{uid}/profile?format=json" @raw_info ||= MultiJson.decode(access_token.get(request).body) rescue ::Errno::ETIMEDOUT raise ::Timeout::Error end - # Provide the "Person" portion of the raw_info + # Provide the "Profile" portion of the raw_info def user_info @user_info ||= raw_info.nil? ? {} : raw_info["profile"] end end