rack-worker 0.0.1.rc1 → 0.0.1.rc2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/worker/version.rb +1 -1
- data/lib/rack/worker.rb +3 -1
- metadata +2 -2
data/lib/rack/worker/version.rb
CHANGED
data/lib/rack/worker.rb
CHANGED
@@ -49,7 +49,9 @@ module Rack
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def self.process_request(classname, id)
|
52
|
-
env =
|
52
|
+
env = cache.get("env-#{id}")
|
53
|
+
return unless env
|
54
|
+
env = Yajl::Parser.parse(env)
|
53
55
|
app = classname_to_class(classname)
|
54
56
|
status, headers, body = app.call(env.merge('rack.worker_qc' => true))
|
55
57
|
set_response(id, status, headers, body)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-worker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.
|
4
|
+
version: 0.0.1.rc2
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-12 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Rack middleware that implements the Worker Pattern
|
15
15
|
email:
|