queueing_proxy 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -39,12 +39,16 @@ module QueueingProxy
39
39
  def receive_data(data)
40
40
  status = Integer(data[/^HTTP\/(1\.1|1\.0) (\d+)/, 2])
41
41
  close_connection
42
- if status == 200
42
+ case status
43
+ when 200
43
44
  logger.info "Done dispatching #{job.jobid}"
44
45
  job.delete
45
- else
46
+ when 500
46
47
  logger.info "Error #{status}"
47
48
  job.release(:delay => 5)
49
+ else
50
+ logger.info "Done dispatching #{job.jobid} -- #{status}"
51
+ job.delete
48
52
  end
49
53
  end
50
54
 
@@ -1,3 +1,3 @@
1
1
  module QueueingProxy
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_runtime_dependency 'em-jack'
26
26
  s.add_runtime_dependency 'thin'
27
27
  s.add_runtime_dependency 'json'
28
- s.add_runtime_dependency 'thor'
28
+ s.add_runtime_dependency 'thor', '>= 0.13.8'
29
29
 
30
30
  if s.respond_to? :specification_version then
31
31
  current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: queueing_proxy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joshua Hull
@@ -82,10 +82,12 @@ dependencies:
82
82
  requirements:
83
83
  - - ">="
84
84
  - !ruby/object:Gem::Version
85
- hash: 3
85
+ hash: 59
86
86
  segments:
87
87
  - 0
88
- version: "0"
88
+ - 13
89
+ - 8
90
+ version: 0.13.8
89
91
  type: :runtime
90
92
  version_requirements: *id005
91
93
  description: Queueing proxy backed by EM/Beanstalk for a very weird purpose.