rabbit_jobs 0.7.2 → 0.7.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,7 +2,7 @@
2
2
  module RabbitJobs
3
3
  module Consumer
4
4
  class JobConsumer
5
- def process_message(metadata, payload)
5
+ def process_message(delivery_info, properties, payload)
6
6
  job = RJ::Job.parse(payload)
7
7
 
8
8
  if job.is_a?(Symbol)
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module RabbitJobs
4
- VERSION = "0.7.2"
4
+ VERSION = "0.7.3"
5
5
  end
@@ -77,7 +77,7 @@ module RabbitJobs
77
77
  queue.subscribe(ack: explicit_ack) do |delivery_info, properties, payload|
78
78
  if RJ.run_before_process_message_callbacks
79
79
  begin
80
- @consumer.process_message(properties, payload)
80
+ @consumer.process_message(delivery_info, properties, payload)
81
81
  processed_count += 1
82
82
  rescue
83
83
  RJ.logger.warn "process_message failed. payload: #{payload.inspect}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit_jobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bunny
16
- requirement: &10601260 !ruby/object:Gem::Requirement
16
+ requirement: &7390960 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - =
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.9.0.pre8
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *10601260
24
+ version_requirements: *7390960
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rake
27
- requirement: &10622000 !ruby/object:Gem::Requirement
27
+ requirement: &7387480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *10622000
35
+ version_requirements: *7387480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rufus-scheduler
38
- requirement: &10619420 !ruby/object:Gem::Requirement
38
+ requirement: &7410080 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '2.0'
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *10619420
46
+ version_requirements: *7410080
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rails
49
- requirement: &10617700 !ruby/object:Gem::Requirement
49
+ requirement: &7407360 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '3.0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *10617700
57
+ version_requirements: *7407360
58
58
  description: Background jobs on RabbitMQ
59
59
  email:
60
60
  - lazureykis@gmail.com
@@ -112,7 +112,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
112
112
  version: '0'
113
113
  segments:
114
114
  - 0
115
- hash: 2228103642299556651
115
+ hash: 3473426678828030662
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  none: false
118
118
  requirements:
@@ -121,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
121
  version: '0'
122
122
  segments:
123
123
  - 0
124
- hash: 2228103642299556651
124
+ hash: 3473426678828030662
125
125
  requirements: []
126
126
  rubyforge_project:
127
127
  rubygems_version: 1.8.11