lita-idobata 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/lib/lita/adapters/idobata/connector.rb +2 -2
- data/lib/lita/idobata/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: bf51744de53b2debd0bd879c1190ef97946d5e22
|
4
|
+
data.tar.gz: 582ca4d6596a8b1da8f61a445cb210700e61b00e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c6387d32c6bb894191e89c59374a7cb01b73fdcbe1000610e69df76099463a944a60c4dfc2466fa1afd997aa72b150a55f979e331fd3543e41045709f81ded0
|
7
|
+
data.tar.gz: 8405cb7768de64c1c56cb46fe27db6f8f98a3b16a45050e9e6b73511b4753b40d48d0089850a3fdb6019060c94a7f0c9c5100863fea303488fcf7488c68f185c
|
data/README.md
CHANGED
@@ -2,8 +2,10 @@
|
|
2
2
|
|
3
3
|
**lita-idobata** is an adapter for [Lita](https://github.com/jimmycuadra/lita) that allows you to use the robot with [Idobata](https://idobata.io).
|
4
4
|
|
5
|
-
**v0.
|
6
|
-
|
5
|
+
- **v0.2.x** for lita >= 4.0 and new idobata
|
6
|
+
- http://blog.idobata.io/post/115181024997
|
7
|
+
- **v0.1.x** for lita >= 4.0
|
8
|
+
- **v0.0.x** for ltia >= 2.5
|
7
9
|
|
8
10
|
## Installation
|
9
11
|
|
@@ -39,7 +39,7 @@ module Lita
|
|
39
39
|
socket.subscribe(channel_name, socket_id)
|
40
40
|
end
|
41
41
|
|
42
|
-
socket.bind('
|
42
|
+
socket.bind('message:created') do |data|
|
43
43
|
message = JSON.parse(data)["message"]
|
44
44
|
if message["sender_id"] != @bot['id']
|
45
45
|
user = User.new(message["sender_id"], name: message["sender_name"])
|
@@ -85,4 +85,4 @@ module Lita
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
end
|
88
|
-
end
|
88
|
+
end
|
data/lib/lita/idobata/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-idobata
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- fukayatsu
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01
|
11
|
+
date: 2015-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lita
|