rabbit_jobs 0.5.6 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +0 -3
- data/lib/rabbit_jobs/configuration.rb +2 -2
- data/lib/rabbit_jobs/publisher.rb +2 -2
- data/lib/rabbit_jobs/version.rb +1 -1
- metadata +46 -30
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 439e03e7637f31181be227c61ab20642475358ec
|
4
|
+
data.tar.gz: 50ec4db3e760511ea91fb77bd9000c303a6dbec3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 1ee2c38bb0dc8a53c05c629a9e71a29d81aab930aa4495c3d7c4747444813e6e42efa0a2d22e12629f4f79b38bfcb2fcf3142c070033b991786e9119fe43afac
|
7
|
+
data.tar.gz: 2c208cb4c17727b2f3662528a8f6364b5d3852e0d51f0c0a52e384081363ecd63bcfe53dd4b6c379571567e97c9fa981e63f9922d8383266fe888f7ac82e6c97
|
data/Gemfile
CHANGED
@@ -174,7 +174,7 @@ module RabbitJobs
|
|
174
174
|
|
175
175
|
def queue_name(routing_key)
|
176
176
|
routing_key = routing_key.to_sym
|
177
|
-
@data[:queues][routing_key][:ignore_prefix] ? routing_key : [@data[:prefix], routing_key].join('#')
|
177
|
+
@data[:queues][routing_key][:ignore_prefix] ? routing_key : [@data[:prefix], routing_key].compact.join('#')
|
178
178
|
end
|
179
179
|
|
180
180
|
def load_file(filename)
|
@@ -216,4 +216,4 @@ module RabbitJobs
|
|
216
216
|
uri.to_s
|
217
217
|
end
|
218
218
|
end
|
219
|
-
end
|
219
|
+
end
|
@@ -52,7 +52,7 @@ module RabbitJobs
|
|
52
52
|
amqp_connection
|
53
53
|
|
54
54
|
if ex.size > 0
|
55
|
-
AMQP::Exchange.new(self.amqp_channel, :direct, ex[:name].to_s, Configuration::DEFAULT_EXCHANGE_PARAMS.merge(ex[:params] || {})) do |exchange|
|
55
|
+
AMQP::Exchange.new(self.amqp_channel, ex[:type] || :direct, ex[:name].to_s, Configuration::DEFAULT_EXCHANGE_PARAMS.merge(ex[:params] || {})) do |exchange|
|
56
56
|
exchange.publish(payload, Configuration::DEFAULT_MESSAGE_PARAMS.merge({key: routing_key.to_sym})) do
|
57
57
|
yield if block_given?
|
58
58
|
end
|
@@ -96,4 +96,4 @@ module RabbitJobs
|
|
96
96
|
messages_count
|
97
97
|
end
|
98
98
|
end
|
99
|
-
end
|
99
|
+
end
|
data/lib/rabbit_jobs/version.rb
CHANGED
metadata
CHANGED
@@ -1,60 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbit_jobs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
5
|
-
prerelease:
|
4
|
+
version: 0.5.8
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Pavel Lazureykis
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-03-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: amqp
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0.9'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.9'
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: rake
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
|
-
- -
|
31
|
+
- - '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: '0'
|
33
34
|
type: :runtime
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rufus-scheduler
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '2.0'
|
44
48
|
type: :runtime
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.0'
|
47
55
|
- !ruby/object:Gem::Dependency
|
48
56
|
name: rails
|
49
|
-
requirement:
|
50
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
51
58
|
requirements:
|
52
|
-
- -
|
59
|
+
- - '>='
|
53
60
|
- !ruby/object:Gem::Version
|
54
61
|
version: '3.0'
|
55
62
|
type: :runtime
|
56
63
|
prerelease: false
|
57
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '>='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '3.0'
|
58
69
|
description: Background jobs on RabbitMQ
|
59
70
|
email:
|
60
71
|
- lazureykis@gmail.com
|
@@ -103,32 +114,37 @@ files:
|
|
103
114
|
- spec/unit/worker_spec.rb
|
104
115
|
homepage: ''
|
105
116
|
licenses: []
|
117
|
+
metadata: {}
|
106
118
|
post_install_message:
|
107
119
|
rdoc_options: []
|
108
120
|
require_paths:
|
109
121
|
- lib
|
110
122
|
required_ruby_version: !ruby/object:Gem::Requirement
|
111
|
-
none: false
|
112
123
|
requirements:
|
113
|
-
- -
|
124
|
+
- - '>='
|
114
125
|
- !ruby/object:Gem::Version
|
115
126
|
version: '0'
|
116
|
-
segments:
|
117
|
-
- 0
|
118
|
-
hash: -2350907044948326224
|
119
127
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
-
none: false
|
121
128
|
requirements:
|
122
|
-
- -
|
129
|
+
- - '>='
|
123
130
|
- !ruby/object:Gem::Version
|
124
131
|
version: '0'
|
125
|
-
segments:
|
126
|
-
- 0
|
127
|
-
hash: -2350907044948326224
|
128
132
|
requirements: []
|
129
133
|
rubyforge_project:
|
130
|
-
rubygems_version:
|
134
|
+
rubygems_version: 2.0.0
|
131
135
|
signing_key:
|
132
|
-
specification_version:
|
136
|
+
specification_version: 4
|
133
137
|
summary: Background jobs on RabbitMQ
|
134
|
-
test_files:
|
138
|
+
test_files:
|
139
|
+
- spec/fixtures/config.yml
|
140
|
+
- spec/fixtures/jobs.rb
|
141
|
+
- spec/fixtures/schedule.yml
|
142
|
+
- spec/integration/publisher_spec.rb
|
143
|
+
- spec/integration/scheduler_spec.rb
|
144
|
+
- spec/integration/worker_spec.rb
|
145
|
+
- spec/spec_helper.rb
|
146
|
+
- spec/unit/configuration_spec.rb
|
147
|
+
- spec/unit/job_spec.rb
|
148
|
+
- spec/unit/mailer_spec.rb
|
149
|
+
- spec/unit/rabbit_jobs_spec.rb
|
150
|
+
- spec/unit/worker_spec.rb
|