recognizer 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -24,19 +24,11 @@ module Recognizer
24
24
  Thread.new do
25
25
  loop do
26
26
  if connection = tcp_connections.shift
27
- begin
28
- lines = timeout(12) do
29
- connection.gets.split("\n")
27
+ while line = connection.gets
28
+ line = line.strip
29
+ if line.split("\s").count == 3
30
+ carbon_queue.push(line)
30
31
  end
31
- lines.each do |line|
32
- line = line.strip
33
- if line.split("\s").count == 3
34
- carbon_queue.push(line)
35
- end
36
- end
37
- rescue Timeout::Error
38
- logger.warn("TCP -- A connection has timed out")
39
- connection.close
40
32
  end
41
33
  end
42
34
  end
@@ -1,3 +1,3 @@
1
1
  module Recognizer
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recognizer
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 4
10
- version: 0.1.4
9
+ - 5
10
+ version: 0.1.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Sean Porter
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-23 00:00:00 -07:00
18
+ date: 2012-04-12 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency