rongcloud 0.1.3 → 0.1.4

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
2
  SHA1:
3
- metadata.gz: ef8cb1aaf04e7d88af2961c854717f6867030efe
4
- data.tar.gz: ae8d2ae75ec6176e32f4bf3096a76995892f4db3
3
+ metadata.gz: 3e783d9a1f436ebe0eba7769025e2344bf8a49dd
4
+ data.tar.gz: 5bd72fa1804c1268f2af4c03df480e9a93b72915
5
5
  SHA512:
6
- metadata.gz: cd138619d0a7afbe65dbcfcfb4963ef43ac86386cc70caaa866c1d898c2a78475eb6c4bbc349d3d479981d50a5f020b20ba219a50e510cf4485ba98bb27a2899
7
- data.tar.gz: c55309190cfe49016cc6747b0a84ba86e3ed0e5e5c21e44a5cff36fda4b9ba009e3e33b67defc5935139428c838f9f648232c577928f1943fa3c838ec159dae4
6
+ metadata.gz: 6316a261e7ed020a7abfa79252cccb940d9ad18a114d9c2ffa3a1391c7c8bc15d967c716361d3f0107ace31234a384f9a92937eea8790c943d1799ac70240bdd
7
+ data.tar.gz: c6598c367ccc3ca2376c5eecc2224610ff3fa70c85ed9686fecee0349c106f1bfb1854b52383d9792294b7f075b325d11f70773cd2485f77ffd9b0c20d41beeb
@@ -3,6 +3,7 @@ module Rongcloud
3
3
 
4
4
  API_URI = {
5
5
  USER_GET_TOKEN: '/user/getToken.json',
6
+ USER_REFRESH: '/user/refresh.json',
6
7
  MSG_PRV_PUBLISH: '/message/private/publish.json',
7
8
  MSG_HISTORY: '/message/history.json'
8
9
  }
@@ -15,6 +15,15 @@ module Rongcloud
15
15
  self.token = res[:token]
16
16
  res[:token]
17
17
  end
18
+
19
+ #刷新用户信息
20
+ def refresh
21
+ post = {uri: Rongcloud::Service::API_URI[:USER_REFRESH],
22
+ params: optional_params({userId: self.user_id, name: self.name, portraitUri: self.portrait_uri})
23
+ }
24
+ res = Rongcloud::Service.req_post(post)
25
+ res[:code]==200
26
+ end
18
27
  end
19
28
  end
20
29
  end
@@ -1,3 +1,3 @@
1
1
  module Rongcloud
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rongcloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mumaoxi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-21 00:00:00.000000000 Z
11
+ date: 2015-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec