arya-pandemic 0.4.6 → 0.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +1 -1
- data/lib/pandemic/server_side/client.rb +3 -2
- data/pandemic.gemspec +1 -1
- metadata +1 -1
data/Rakefile
CHANGED
|
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
|
2
2
|
require 'rake'
|
|
3
3
|
require 'echoe'
|
|
4
4
|
|
|
5
|
-
Echoe.new('pandemic', '0.4.
|
|
5
|
+
Echoe.new('pandemic', '0.4.7') do |p|
|
|
6
6
|
p.description = "A framework for distributing work for real-time services and offline tasks."
|
|
7
7
|
p.url = "https://github.com/arya/pandemic/"
|
|
8
8
|
p.author = "Arya Asemanfar"
|
|
@@ -54,7 +54,7 @@ module Pandemic
|
|
|
54
54
|
else
|
|
55
55
|
debug("Writing error code to client")
|
|
56
56
|
|
|
57
|
-
@connection.write("-1")
|
|
57
|
+
@connection.write("-1\n")
|
|
58
58
|
@connection.flush
|
|
59
59
|
debug("Finished writing error code to client")
|
|
60
60
|
end
|
|
@@ -91,7 +91,8 @@ module Pandemic
|
|
|
91
91
|
@server.handle_client_request(@current_request)
|
|
92
92
|
rescue Exception => e
|
|
93
93
|
warn("Unhandled exception in handle client request:\n#{e.inspect}\n#{e.backtrace.join("\n")}")
|
|
94
|
-
|
|
94
|
+
nil
|
|
95
|
+
end
|
|
95
96
|
@current_request = nil
|
|
96
97
|
return response
|
|
97
98
|
end
|
data/pandemic.gemspec
CHANGED