Permalink
Browse files

Merge pull request #2 from reducm/master

fix the raw_info location key's issue
  • Loading branch information...
2 parents 7affc4a + 0df8c3b commit 2f0216d6280c0d4c5d3bd1064c8835f0de92bf6a @ballantyne committed Jul 26, 2012
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/omniauth/strategies/douban.rb
  2. +2 −2 omniauth-douban.gemspec
@@ -30,7 +30,7 @@ def consumer
{
:nickname => raw_info['db:uid']['$t'],
:name => raw_info['title']['$t'],
- :location => raw_info['location'] ? raw_info['location']['$t'] : nil,
+ :location => raw_info['db:location'] ? raw_info['db:location']['$t'] : nil,
:image => raw_info['link'].find{|l| l['@rel'] == 'icon'}['@href'],
:description => raw_info['content']['$t'],
:urls => {
@@ -68,4 +68,4 @@ def raw_info
end
end
end
-end
+end
View
@@ -12,8 +12,8 @@ Gem::Specification.new do |s|
s.description = %q{an omniauth strategy for douban}
s.rubyforge_project = "omniauth-douban"
- s.add_dependency 'omniauth', '~> 1.0.0.rc2'
- s.add_dependency 'omniauth-oauth', '~> 1.0.0.rc2'
+ s.add_dependency 'omniauth', '~> 1.1.0'
+ s.add_dependency 'omniauth-oauth', '~> 1.0.1'
s.add_dependency 'multi_json'
s.files = `git ls-files`.split("\n")

0 comments on commit 2f0216d

Please sign in to comment.