lita-message-router 0.1.2 → 0.1.3
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 +2 -1
- data/lita-message-router.gemspec +1 -1
- metadata +1 -2
- data/.byebug_history +0 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97970436923da151ae36de9316d28dbee6e1afa3
|
4
|
+
data.tar.gz: e36c63d808d9319c26224ccf1617b172f8e104c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9385feaa66126987872336c36c406089dbf5864462aa9fbdd5dd8694de23185749b99f625194bf2192531b2d2a7fed93448bb8525a1ebf0192803043f947832
|
7
|
+
data.tar.gz: 7033c84dc456eb4b873af08e87ef6170443e6b02dd76a30b3410048eeb55c43e5fc63a4eae4432720205a39dfc4c012de07ae910304de6d30836a91fb062d333
|
@@ -12,7 +12,8 @@ module Lita
|
|
12
12
|
match = match(message)
|
13
13
|
|
14
14
|
if match
|
15
|
-
|
15
|
+
command = robot.mention_name + ' ' + match
|
16
|
+
real_message = Lita::Message.new(robot, command, Lita::Source.new(user: chat.user))
|
16
17
|
robot.receive(real_message)
|
17
18
|
end
|
18
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.3"
|
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."
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lita-message-router
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Taylor Lapeyre
|
@@ -102,7 +102,6 @@ executables: []
|
|
102
102
|
extensions: []
|
103
103
|
extra_rdoc_files: []
|
104
104
|
files:
|
105
|
-
- ".byebug_history"
|
106
105
|
- ".gitignore"
|
107
106
|
- Gemfile
|
108
107
|
- README.md
|
data/.byebug_history
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
continue
|
2
|
-
chat.message.body
|
3
|
-
continue
|
4
|
-
chat.message.body
|
5
|
-
chat.message.bodu
|
6
|
-
chat
|
7
|
-
chat.body
|
8
|
-
continue
|
9
|
-
continie
|
10
|
-
robot.receive(Lita::Message.new(robot, matches[2], Lita::Source.new(user: chat.user)))
|
11
|
-
robot.receive(Lita::Message.new(robot, matches[2], Lita::Source.new(chat.user)))
|
12
|
-
robot.receive(Lita::Message.new(robot, matches[2], chat.user))
|
13
|
-
robot.receive(Lita::Message.new(matches[2]))
|
14
|
-
robot.receive(matches[2])
|
15
|
-
robot
|
16
|
-
matches[2]
|
17
|
-
matches
|