xoauth 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f826eae0a3c110b25274e5d24eef9badbc743b33
4
- data.tar.gz: 6f56a965dbf111484d56f1c052e8a2c0ae9ad2f3
2
+ SHA256:
3
+ metadata.gz: 51e86ad351eb090fbc4d0e9ae9648adc3789b1c595b1f90737b587f13c4f74a3
4
+ data.tar.gz: e1d9d7bd8d2366968a25648b88d6b8a59d4aac26f65546d88554e3fa48b69d13
5
5
  SHA512:
6
- metadata.gz: 91ba46879d068b6e713935a75d6c40615a8d055b40d9cf802347d57519a90dd527f9c02286368dca5ac921b65d8710035b0fd2e5b198b5a20e29014c8c15817f
7
- data.tar.gz: f89fa2b17d92c8650aaf83a5214fcb17382aa43425041a92857c57e469fad173616a518f2a0c45894632f0aea533091a5b04588ae07e4dcd9d6f4e92988abc53
6
+ metadata.gz: 399bd66c6f2f9630daf4f8e2470a200dc5521f55c8b8a848134f6415fbe261e7b4eb9854dd907d0f7ca4157bdd15a93231d63bf88223bfbab584c6c9265a434f
7
+ data.tar.gz: 395edcbdadbefb96173f25354e9e8006675527b7ce3cc803d6f63567d1ff8f99e3d8ec4790cc41758343aad40f4f4dddb8662c4fa8e9a324953d308ddf785eb4
@@ -68,7 +68,9 @@ module Oauth
68
68
  'redirect_uri' => Configure['weibo']['callback']
69
69
  }
70
70
  response = postJSON(url,post_params)
71
- response.delete('remind_in') if response
71
+ if response
72
+ response.select!{|k, v| %w{access_token uid expires_in}.include?(k)}
73
+ end
72
74
  response
73
75
  end
74
76
  end
@@ -1,3 +1,3 @@
1
1
  module Oauth
2
- VERSION = "0.2.7"
2
+ VERSION = "0.2.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xoauth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - binz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-07 00:00:00.000000000 Z
11
+ date: 2017-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  requirements: []
97
97
  rubyforge_project:
98
- rubygems_version: 2.2.2
98
+ rubygems_version: 2.6.14
99
99
  signing_key:
100
100
  specification_version: 4
101
101
  summary: Chinese Social Network Oauth2.0 Implemetation.