ruboty-evaluate 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/evaluate/version.rb +1 -1
- data/lib/ruboty/handlers/evaluate.rb +1 -5
- 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: 00a9894ded9f73e1724a8771a89e667aaf758018
|
4
|
+
data.tar.gz: a5239a48ad074f46d7c591a5f1da365e5677ac31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9302c007ece95504927b044408012ab1a19f60ee468832c6aecb2ac25e8437174746000c3e99c3d7a0377003dd56e8df4d0263d9dddce1ac76399083b126c624
|
7
|
+
data.tar.gz: edddd2cd3a0f98673de15e746d35bb11d90b99fa2ef3f6beba2bbdd1264a7d2d3b3016bcbd43e972b3bbc7ae469781e1c77632682e81102eede95ced54d40fb3
|
@@ -7,13 +7,9 @@ module Ruboty
|
|
7
7
|
|
8
8
|
def evaluate(message)
|
9
9
|
thread = Thread.start do
|
10
|
-
stdout, stderr,
|
10
|
+
stdout, stderr, _status = Open3.capture3(message[:command])
|
11
11
|
message.reply(stdout.chomp) if stdout
|
12
12
|
message.reply(stderr.chomp) if stderr
|
13
|
-
|
14
|
-
unless status.success?
|
15
|
-
message.reply("Command Failed:\n#{message[:command]}", code: true)
|
16
|
-
end
|
17
13
|
end
|
18
14
|
Thread.start do
|
19
15
|
sleep 10
|