ruboty-response 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 09d0d98ccf070c2c57b3f77ccafa69445d819f3c
4
- data.tar.gz: adad1eb516847aa048053cd7ad1618284dabffc4
3
+ metadata.gz: 9c27e98ec594cb17f7897b1b6bc8441a5a795709
4
+ data.tar.gz: ab2e345343e71740b81406ada3d96b2f8f2aab0b
5
5
  SHA512:
6
- metadata.gz: 508bb88f593eac21f752766df9e65fe918281c6ce4441ac1e37f94b37d75f573fb74829145c21eb9e5b86f0c1c082e77a832e9a1a2e24aa79cc1349e46e27471
7
- data.tar.gz: 1ece3de805a467e488bf9e1dd5a1d48a2a397d7a2ea79d04d8c10ca0504b7515939974740a3035f7f4d8a26a1a0692b181445ee0b99f740a23fb069461998227
6
+ metadata.gz: 75b390f49208f2cb3cf6b2f21138ee6becddfcefa5c27244863db16e8bb9e40d3b65eace212bbfa9ac276c9732f9213cd938e57b9d4836c7b51fe72efa871314
7
+ data.tar.gz: 9d489bae34a38cc5bdd994a7195aa2665ed016bc85d04f541af0067df1fdef0d4bd002e7b2b461b2f892ca645dbbcf8737bca2aa35639a476ff3a87b67c5d064
@@ -18,13 +18,9 @@ module Ruboty
18
18
  # If the response is a code
19
19
  if match_data = hash[:response].match(/\A`(?<code>.+)`\z/)
20
20
  thread = Thread.start do
21
- stdout, stderr, status = Open3.capture3(match_data[:code])
21
+ stdout, stderr, _status = Open3.capture3(match_data[:code])
22
22
  message.reply(stdout.chomp) if stdout
23
23
  message.reply(stderr.chomp) if stderr
24
-
25
- unless status.success?
26
- message.reply("Command Failed:\n#{match_data[:code]}", code: true)
27
- end
28
24
  end
29
25
  Thread.start do
30
26
  sleep 10
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Response
3
- VERSION = '1.0.1'
3
+ VERSION = '1.0.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-response
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - kaihar4