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 +4 -4
- data/lib/rongcloud/service.rb +1 -0
- data/lib/rongcloud/service/user.rb +9 -0
- data/lib/rongcloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e783d9a1f436ebe0eba7769025e2344bf8a49dd
|
4
|
+
data.tar.gz: 5bd72fa1804c1268f2af4c03df480e9a93b72915
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6316a261e7ed020a7abfa79252cccb940d9ad18a114d9c2ffa3a1391c7c8bc15d967c716361d3f0107ace31234a384f9a92937eea8790c943d1799ac70240bdd
|
7
|
+
data.tar.gz: c6598c367ccc3ca2376c5eecc2224610ff3fa70c85ed9686fecee0349c106f1bfb1854b52383d9792294b7f075b325d11f70773cd2485f77ffd9b0c20d41beeb
|
data/lib/rongcloud/service.rb
CHANGED
@@ -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
|
data/lib/rongcloud/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-05-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|