beanstalker 0.5.2 → 0.5.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.2
1
+ 0.5.3
data/beanstalker.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beanstalker}
8
- s.version = "0.5.2"
8
+ s.version = "0.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gleb Pomykalov"]
@@ -147,17 +147,17 @@ class Beanstalker::Worker
147
147
 
148
148
  def dispatch(job)
149
149
  ActiveRecord::Base.verify_active_connections!
150
- $logger.info "Got job: #{get_job_body(job).inspect}"
150
+ logger.info "Got job: #{get_job_body(job).inspect}"
151
151
  if rails_job?(job)
152
152
  run_ao_job(job)
153
153
  elsif mapped_job?(job)
154
154
  run_mapped_job(job)
155
155
  else
156
- $logger.error "Job #{job.inspect} cannot be processed... deleteing"
156
+ logger.error "Job #{job.inspect} cannot be processed... deleteing"
157
157
  job.delete
158
158
  end
159
159
  rescue Exception => e
160
- $logger.error "Exception: #{e.inspect}... Bury job"
160
+ logger.error "Exception: #{e.inspect}... Bury job"
161
161
  job.bury
162
162
  end
163
163
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanstalker
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 2
10
- version: 0.5.2
9
+ - 3
10
+ version: 0.5.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gleb Pomykalov