ruboty-response 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ruboty/handlers/response.rb +2 -2
- data/lib/ruboty/response/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42dcfa387c9eac4ee09cceaf46031a3b7116a58c
|
4
|
+
data.tar.gz: e47320e880fa614e368746658559a838ede56bfa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0e44ea5f5c4a39fa5fc54a4f1062b647b4d52627eca86fae15688abd2a52e30fcef6ebbdfa23ee2c5aa03baa723a9ac7f5897a208c62b13bdd356e907b4a49e
|
7
|
+
data.tar.gz: 154673114d852d54280a42a1268815273178d09f9ea59da8cbf39af3beda6829aeef86996451cd4dca0ca1cad8081bcffb61c2f489042ed0a46159861ac187e5
|
@@ -11,7 +11,7 @@ module Ruboty
|
|
11
11
|
|
12
12
|
def catchall(message)
|
13
13
|
responses.each do |id, hash|
|
14
|
-
next unless /#{hash[:regex]}/ =~ message[:keyword]
|
14
|
+
next unless /#{hash[:regex]}/ =~ message[:keyword] rescue false
|
15
15
|
|
16
16
|
# If the response is a code
|
17
17
|
if hash[:response] =~ /\A`.+`\z/
|
@@ -20,7 +20,7 @@ module Ruboty
|
|
20
20
|
message.reply(result)
|
21
21
|
end
|
22
22
|
Thread.start do
|
23
|
-
sleep
|
23
|
+
sleep 10
|
24
24
|
thread.kill
|
25
25
|
end
|
26
26
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruboty-response
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kaihar4
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ruboty
|