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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 100a6a6a099ff3f5276e70db33f9e113b8b8b9dc
4
- data.tar.gz: 6165defa69a1b64107770143b5a009909c9983f4
3
+ metadata.gz: 42dcfa387c9eac4ee09cceaf46031a3b7116a58c
4
+ data.tar.gz: e47320e880fa614e368746658559a838ede56bfa
5
5
  SHA512:
6
- metadata.gz: c6ee2ceeceab7968855acf81003b04ca9f58b79a1e1caba0d096d26991577e6b73e6ff25bf5b788f92bd24a68f9d2044fe9b459ca702de75a9c49c6a335f0df4
7
- data.tar.gz: ca4bfc4e7af44f0c80100775f7381c44f4d1d2b73f4af00e3f9c8f0c9bf0f5c7240d823abec0515fc62be83dc48d162c3aeb8273ab8cb0c117549fb44ed32a3a
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 3
23
+ sleep 10
24
24
  thread.kill
25
25
  end
26
26
  else
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Response
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  end
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
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-20 00:00:00.000000000 Z
11
+ date: 2014-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruboty