webim 0.1.0 → 0.1.2
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 +4 -4
- data/CHANGELOG.md +10 -1
- data/lib/webim.rb +3 -2
- 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: d869afaf7806c888cbcdf4ae775d1d700a5f5fb1
|
4
|
+
data.tar.gz: 917265023d11fdc67637cb3bb8933b2237bc16bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c26e31ecb35efac0254545963b94c6b7b3a668428142268590eb0fdce9490319e3349008ff4be421def09e6801fb7122320f0700578c08290792b4d3ba0399e
|
7
|
+
data.tar.gz: a4205b393e1b7ee5ac44af0b27ecddb5ae36317966dc32370f2c70dcf6602cf33449a3fa0303a1594a635a53326b9275f9609b62a9a8ed5579dc9284ac4597e1
|
data/CHANGELOG.md
CHANGED
data/lib/webim.rb
CHANGED
@@ -140,10 +140,11 @@ module Webim
|
|
140
140
|
#
|
141
141
|
# to: 接收者
|
142
142
|
# body: 消息体
|
143
|
+
# timestam: 时间戳
|
143
144
|
# type: chat | grpchat
|
144
145
|
# style: 消息CSS
|
145
146
|
#
|
146
|
-
def message(to, body, type = "chat", style = "")
|
147
|
+
def message(to, body, timestamp = nil, type = "chat", style = "")
|
147
148
|
http_post('/messages', {
|
148
149
|
:version => APIVSN,
|
149
150
|
:ticket => @ticket,
|
@@ -154,7 +155,7 @@ module Webim
|
|
154
155
|
:to => to,
|
155
156
|
:body => body,
|
156
157
|
:style => style,
|
157
|
-
:timestamp => Time.now.to_f * 1000
|
158
|
+
:timestamp => timestamp ? timestamp : Time.now.to_f * 1000
|
158
159
|
})
|
159
160
|
end
|
160
161
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ery Lee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Ruby webim client library for NexTalk.IM
|
14
14
|
email: ery.lee@gmail.com
|