extface 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/extface/handler_controller.rb +2 -1
- data/lib/extface/version.rb +1 -1
- 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: 0c17c0c8f5b110cb9a45c6ccf70d9e2c82910c60
|
4
|
+
data.tar.gz: 04a9c601548072d327d8b50280e93d58575a9de0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdb872cad8cdc14c2812d13bcc87f5d8763a275fadd1386e880d670aa4e5a7e62298109b7327d9f7d01120d26306bdcdbb1d01ff85213a3cfe16bd09b4e81f66
|
7
|
+
data.tar.gz: 5516523f31d9da8b0cec1f8385073e9b9ba6b89604fd2d427e9948a2ae32989848129b32dd39f3813fe869c6ec653758b158aca867fdcfd07277be421751c9d4
|
@@ -34,7 +34,7 @@ module Extface
|
|
34
34
|
r.append device.uuid, request.body.read
|
35
35
|
@full_buffer = r.get device.uuid
|
36
36
|
end
|
37
|
-
while @full_buffer.present? && bytes_porcessed = device.driver.pre_handle(@full_buffer.b) #handle more than one valid packet in the buffer
|
37
|
+
while @full_buffer.b.present? && bytes_porcessed = device.driver.pre_handle(@full_buffer.b) #handle more than one valid packet in the buffer
|
38
38
|
Extface.redis_block do |r|
|
39
39
|
r.set device.uuid, @full_buffer.b[bytes_porcessed..-1]
|
40
40
|
@full_buffer = r.get device.uuid
|
@@ -45,6 +45,7 @@ module Extface
|
|
45
45
|
end
|
46
46
|
response.stream.write ''
|
47
47
|
rescue => e
|
48
|
+
p e
|
48
49
|
p e.message
|
49
50
|
render nothing: true, status: :internal_server_error
|
50
51
|
ensure
|
data/lib/extface/version.rb
CHANGED