lita-message-router 0.1.3 → 0.1.4
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 +8 -1
- 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: cf925299bd05945cf6fafc674f306e56f27c1352
|
4
|
+
data.tar.gz: 7f6cc2f1dd111190f2612746e5c7c9a54e3b75fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a8dab3dee1b2f6cc57db8184d65f1a9bf73886010fa225ec73573ba59f304804f4d29d82b877500a966f22f8d905f9eee7be7bcc03c2e8fbe84f2260d0a9a9e
|
7
|
+
data.tar.gz: f98d8f8f0829c5b9fd62c6b9b88545fb470d07a109f4b665db8df54ae78d77a974ffa349ff4f7907cf83db8ed3cdc9b29590c5c5eab711873de718f6d3fe1284
|
@@ -13,7 +13,14 @@ module Lita
|
|
13
13
|
|
14
14
|
if match
|
15
15
|
command = robot.mention_name + ' ' + match
|
16
|
-
|
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)
|
17
24
|
robot.receive(real_message)
|
18
25
|
end
|
19
26
|
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.4"
|
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."
|