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.
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  class Worker
3
- VERSION = '0.0.1.rc1'
3
+ VERSION = '0.0.1.rc2'
4
4
  end
5
5
  end
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 = Yajl::Parser.parse(cache.get("env-#{id}"))
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.rc1
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-11 00:00:00.000000000 Z
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: