omniauth-alipay 0.0.9 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1383d925235a768509a9b1674c5f46e05938b312
4
- data.tar.gz: 2179793eb1a1fd45c4d82e5d0d61b84e09f8a7e8
3
+ metadata.gz: 52172e7cb51a8499b30f9a575fb0754f6dba6fe2
4
+ data.tar.gz: f8a4fad6b6be64a87fb4df26a31017a59b835c94
5
5
  SHA512:
6
- metadata.gz: f2276f4b1cea9e3414937d64a07cfa62ac2f55f44d691e56756af51aa81cfda5dc93642a3c074bd4dad7741a524b9c5c1fb2cd8a0a04843a792f368be0b8811b
7
- data.tar.gz: 41f6b8f263471576da8f1c9e9c838dc180a0db6c501af3856c6b1f35b54859c95eba71e9782d664725a6b599983d33a469cfd84ce54b7772ce1b5aadd388d843
6
+ metadata.gz: 4a1a7254fbd2cd4a3a6ac8eb898153713500bc0ab68aa710f504b59787693c916bd0b8582c04632bce557d1ebf81f5e484626554c9ced8ed64a526877c0aee7d
7
+ data.tar.gz: 31a20635b408feb5153a233b062c99105e9cb30e9256a62ba24761a6d91460e689591a3f82b7b02ab22812280de4c2b8e38f12103b220cb2800e918a3b028022
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in omniauth-taobao.gemspec
3
+ # Specify your gem's dependencies in omniauth-alipay.gemspec
4
4
  gemspec
@@ -1,5 +1,5 @@
1
1
  module Omniauth
2
2
  module Alipay
3
- VERSION = "0.0.9"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -1,8 +1,7 @@
1
- # lots of stuff taken from https://github.com/intridea/omniauth/blob/0-3-stable/oa-oauth/lib/omniauth/strategies/oauth2/taobao.rb
2
1
  require 'omniauth-oauth2'
3
2
  module OmniAuth
4
3
  module Strategies
5
- class Taobao < OmniAuth::Strategies::OAuth2
4
+ class Alipay < OmniAuth::Strategies::OAuth2
6
5
  USER_METHODS = {
7
6
  :default => 'alipay.user.get'
8
7
  }
@@ -37,9 +36,6 @@ module OmniAuth
37
36
  user_type = options.client_options.user_type || :default
38
37
  query_param = {
39
38
  :app_key => options.client_id,
40
-
41
- # TODO to be moved in options
42
- # TODO add more default fields (http://my.open.taobao.com/apidoc/index.htm#categoryId:1-dataStructId:3)
43
39
  :fields => 'alipay_user_id,real_name,logon_id,sex,user_status,user_type,created,last_visit,birthday,type,status',
44
40
  :format => 'json',
45
41
  :method => USER_METHODS[user_type],
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omniauth-alipay
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Zhen.Sun