rabbit_jobs 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,6 +20,7 @@ module RabbitJobs
20
20
  end
21
21
 
22
22
  def direct_publish_to(routing_key, payload, ex = {})
23
+ ex = {name: ex.to_s} unless ex.is_a?(Hash)
23
24
  check_connection
24
25
  begin
25
26
  exchange_opts = Configuration::DEFAULT_MESSAGE_PARAMS.merge(ex || {})
@@ -1,5 +1,5 @@
1
1
  # -*- encoding : utf-8 -*-
2
2
 
3
3
  module RabbitJobs
4
- VERSION = "0.8.5"
4
+ VERSION = "0.8.6"
5
5
  end
@@ -60,7 +60,7 @@ module RabbitJobs
60
60
 
61
61
  begin
62
62
  amqp_channel = amqp_connection.create_channel
63
- # amqp_channel.prefetch(1)
63
+ amqp_channel.prefetch(1)
64
64
 
65
65
  queues.each do |routing_key|
66
66
  consume_queue(amqp_channel, routing_key)
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.8.5
4
+ version: 0.8.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,18 +13,23 @@ date: 2013-03-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bunny
16
- requirement: &15186800 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - =
19
+ - - '='
20
20
  - !ruby/object:Gem::Version
21
21
  version: 0.9.0.pre8
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *15186800
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - '='
28
+ - !ruby/object:Gem::Version
29
+ version: 0.9.0.pre8
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: rake
27
- requirement: &15186260 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ! '>='
@@ -32,10 +37,15 @@ dependencies:
32
37
  version: '0'
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *15186260
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: rufus-scheduler
38
- requirement: &15185680 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '2.0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *15185680
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rails
49
- requirement: &15185020 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,7 +69,12 @@ dependencies:
54
69
  version: '3.0'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *15185020
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '3.0'
58
78
  description: Background jobs on RabbitMQ
59
79
  email:
60
80
  - lazureykis@gmail.com
@@ -117,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
137
  version: '0'
118
138
  segments:
119
139
  - 0
120
- hash: -1922463039954072694
140
+ hash: -1714892614507746392
121
141
  required_rubygems_version: !ruby/object:Gem::Requirement
122
142
  none: false
123
143
  requirements:
@@ -126,11 +146,25 @@ required_rubygems_version: !ruby/object:Gem::Requirement
126
146
  version: '0'
127
147
  segments:
128
148
  - 0
129
- hash: -1922463039954072694
149
+ hash: -1714892614507746392
130
150
  requirements: []
131
151
  rubyforge_project:
132
- rubygems_version: 1.8.11
152
+ rubygems_version: 1.8.25
133
153
  signing_key:
134
154
  specification_version: 3
135
155
  summary: Background jobs on RabbitMQ
136
- test_files: []
156
+ test_files:
157
+ - spec/fixtures/config.yml
158
+ - spec/fixtures/jobs.rb
159
+ - spec/fixtures/schedule.yml
160
+ - spec/integration/publisher_spec.rb
161
+ - spec/integration/scheduler_spec.rb
162
+ - spec/integration/worker_spec.rb
163
+ - spec/spec_helper.rb
164
+ - spec/unit/configuration_spec.rb
165
+ - spec/unit/error_mailer_spec.rb
166
+ - spec/unit/job_consumer_spec.rb
167
+ - spec/unit/job_spec.rb
168
+ - spec/unit/mailer_spec.rb
169
+ - spec/unit/rabbit_jobs_spec.rb
170
+ - spec/unit/worker_spec.rb