ruboty-lingr 0.1.1 → 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 -0
- data/lib/ruboty/adapters/lingr.rb +13 -6
- data/lib/ruboty/lingr/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: a5ece0807a625083b9e3baea16c909f318f6a4f7
|
4
|
+
data.tar.gz: 08ce7f8c9299fc384d5dc0a2893b3bc58bf698c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e4f6bb0ca444c04c03d94d8dbfa21d8a3e2dffdd21c500b10c573ac222ea93d3a716c31ee7116db9893d52950c3c0988acd4bd86f57cccc301123dad2be863c
|
7
|
+
data.tar.gz: 429bb36d1dc4dc1c2362637169f3463cb359c563f98369c997f8165c68ac89832523307a19ddea5629065480b34d2bc7273363952f77c7f827d2aae140d03561
|
data/README.md
CHANGED
@@ -44,14 +44,15 @@ module Ruboty module Adapters
|
|
44
44
|
|
45
45
|
def say msg
|
46
46
|
Ruboty.logger.info "======= Lingr#say ======="
|
47
|
-
|
47
|
+
Ruboty.logger.debug "msg : #{msg}"
|
48
|
+
|
48
49
|
text = msg[:body]
|
49
|
-
|
50
|
-
Ruboty.logger.info "
|
50
|
+
to = msg[:to]
|
51
|
+
Ruboty.logger.info "body : #{text}"
|
52
|
+
Ruboty.logger.info "to : #{to}"
|
51
53
|
|
52
|
-
Ruboty.logger.debug "msg : #{msg}"
|
53
54
|
|
54
|
-
client.post(
|
55
|
+
client.post(to, text)
|
55
56
|
end
|
56
57
|
|
57
58
|
private
|
@@ -88,7 +89,13 @@ module Ruboty module Adapters
|
|
88
89
|
Ruboty.logger.debug "message : #{msg}"
|
89
90
|
|
90
91
|
Thread.start {
|
91
|
-
robot.receive(
|
92
|
+
robot.receive(
|
93
|
+
body: msg["text"],
|
94
|
+
from: msg["room"],
|
95
|
+
from_name: msg["speaker_id"],
|
96
|
+
to: msg["room"],
|
97
|
+
message: msg
|
98
|
+
)
|
92
99
|
}
|
93
100
|
end
|
94
101
|
|
data/lib/ruboty/lingr/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-lingr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- manga_osyo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|