ruboty-noma 0.1.0 → 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 +1 -1
- data/lib/ruboty/handlers/noma.rb +7 -1
- data/lib/ruboty/noma/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: bbd6dda72674cfd3e006d6fa56597f793f005420
|
4
|
+
data.tar.gz: fccd05b2924ae1bd26401b1cf30c756009afea0e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3a445d99984a4e67fcffe458d626dad9e34ecda0f70c516cad0dce3910290b59730a9f0362d52031e70756d1bedcfff856ed2d83ecd7228334b1fb1ef938c39
|
7
|
+
data.tar.gz: cf14e96df904c4198b4f2703d975ac3139d03894bef1f94bbb85fd67f4cff0c3538de78efb8cde515306dc06d4a47be69c11a4c8df128429118e8745a778f87f
|
data/README.md
CHANGED
data/lib/ruboty/handlers/noma.rb
CHANGED
@@ -10,10 +10,16 @@ module Ruboty
|
|
10
10
|
def noma(message)
|
11
11
|
message[:count].to_i.times do
|
12
12
|
robot.receive(
|
13
|
-
message.original.merge(body: message[:body])
|
13
|
+
message.original.merge(body: "#{message.body[prefix]}#{message[:body]}")
|
14
14
|
)
|
15
15
|
end
|
16
16
|
end
|
17
|
+
|
18
|
+
private
|
19
|
+
|
20
|
+
def prefix
|
21
|
+
Ruboty::Action.prefix_pattern(robot.name)
|
22
|
+
end
|
17
23
|
end
|
18
24
|
end
|
19
25
|
end
|
data/lib/ruboty/noma/version.rb
CHANGED