matrix_qq 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.yaml +3 -0
- data/lib/matrix_qq/qq/forward_friend/matrix.rb +2 -4
- data/lib/matrix_qq/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6657a346b8c6e0ef7527030cd0f91956904e7ebf
|
4
|
+
data.tar.gz: fdf67111f9d126598c00af9f6da4bfe25e23b1e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0422217e11b6f7fd7290e4031a99d14f2826974e56a130da2da25a7565660109587041d433146c71e4435d7598b2a18f328e2254df8148e789558b13e1c94645
|
7
|
+
data.tar.gz: d6cf4a675628ecf6526c16600de735781806b157dce130c947eaf59db64200fac515b4cadcaab6a0427f925c776a6b36500ba329b2e3ae811a28cc9dc1a923f9
|
data/CHANGELOG.yaml
CHANGED
@@ -12,9 +12,7 @@ module MatrixQQ
|
|
12
12
|
def run
|
13
13
|
msg = message @info['message']
|
14
14
|
sender = "[#{user @info['user_id']}] " if @info['print_sender']
|
15
|
-
MatrixQQ::Matrix::Send.text
|
16
|
-
@matrix, @room,
|
17
|
-
"#{sender}#{msg}"
|
15
|
+
MatrixQQ::Matrix::Send.text @matrix, @room, "#{sender}#{msg}"
|
18
16
|
end
|
19
17
|
|
20
18
|
def message(messages)
|
@@ -24,7 +22,7 @@ module MatrixQQ
|
|
24
22
|
end
|
25
23
|
|
26
24
|
def user(user)
|
27
|
-
@dbus.get_stranger_info(user_id: user)['nickname']
|
25
|
+
@dbus.get_stranger_info(user_id: user)['data']['nickname']
|
28
26
|
end
|
29
27
|
end # Matrix
|
30
28
|
|
data/lib/matrix_qq/version.rb
CHANGED