lita-message-router 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lita/handlers/message_router.rb +1 -8
- data/lita-message-router.gemspec +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: a6df74772ec177908be54f77b6377c1ee46d0b63
|
4
|
+
data.tar.gz: 606fda53d7962d4269d782e2522b6aa396dff675
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7587e5e69a71180033d467fadd8357ac96b941b6ca984c06d84b394677a6d4baa768948c3edcebe74c8ec1251341a4406c242ccf7ba236789b1594916f38da29
|
7
|
+
data.tar.gz: cf7c69b791efbc89265f01c15631a448cfe8078e6d2515cf15e29270c28bb2de3588d27bd702b8b03f0e4a475ee51bde0c02e69ff0dfd4e40fa945c2d1f6236d
|
@@ -13,14 +13,7 @@ module Lita
|
|
13
13
|
|
14
14
|
if match
|
15
15
|
command = robot.mention_name + ' ' + match
|
16
|
-
|
17
|
-
source = if chat.room
|
18
|
-
Lita::Source.new(room: chat.room)
|
19
|
-
else
|
20
|
-
Lita::Source.new(user: chat.user)
|
21
|
-
end
|
22
|
-
|
23
|
-
real_message = Lita::Message.new(robot, command, source)
|
16
|
+
real_message = Lita::Message.new(robot, command, chat.message.source)
|
24
17
|
robot.receive(real_message)
|
25
18
|
end
|
26
19
|
end
|
data/lita-message-router.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "lita-message-router"
|
3
|
-
spec.version = "0.1.
|
3
|
+
spec.version = "0.1.5"
|
4
4
|
spec.authors = ["Taylor Lapeyre"]
|
5
5
|
spec.email = ["taylorlapeyre@gmail.com"]
|
6
6
|
spec.description = "This handler allows you to specify as many 'mention names' as you want for your Lita robot."
|