multi_worker 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,13 +12,13 @@ end
12
12
  describe MultiWorker do
13
13
  context "when Sucker Punch is loaded" do
14
14
  it "defaults to the :sucker_punch adapter" do
15
- MultiWorker.default_adapter.should == :sucker_punch
15
+ expect(MultiWorker.default_adapter).to eq(:sucker_punch)
16
16
  end
17
17
  end
18
18
 
19
19
  context "when using the :sucker_punch adapter" do
20
20
  before(:each) do
21
- TestWorker.any_instance.should_receive(:perform).once.with("foo")
21
+ expect_any_instance_of(TestWorker).to receive(:perform).once.with("foo")
22
22
  end
23
23
 
24
24
  it "::perform_async uses Sucker Punch" do
@@ -1,25 +1,25 @@
1
- require 'threaded_in_memory_queue'
2
- ThreadedInMemoryQueue.inline = true
3
-
4
- require 'test_workers'
5
-
6
- describe TestWorker do
7
- it_behaves_like "a worker"
8
- end
9
-
10
- describe MultiWorker do
11
- context "when ThreadedInMemoryQueue is loaded" do
12
- it "defaults to the :threaded_in_memory_queue adapter" do
13
- MultiWorker.default_adapter.should == :threaded_in_memory_queue
14
- end
15
- end
16
-
17
- context "when using the :threaded_in_memory_queue adapter" do
18
- it "performs the work using ThreadedInMemoryQueue" do
19
- expect(TestWorker).to receive(:perform).exactly(3).times.with("foo")
20
- TestWorker.perform_async("foo")
21
- MultiWorker.enqueue(TestWorker, "foo")
22
- TestWorker.perform("foo")
23
- end
24
- end
1
+ require 'threaded_in_memory_queue'
2
+ ThreadedInMemoryQueue.inline = true
3
+
4
+ require 'test_workers'
5
+
6
+ describe TestWorker do
7
+ it_behaves_like "a worker"
8
+ end
9
+
10
+ describe MultiWorker do
11
+ context "when ThreadedInMemoryQueue is loaded" do
12
+ it "defaults to the :threaded_in_memory_queue adapter" do
13
+ expect(MultiWorker.default_adapter).to eq(:threaded_in_memory_queue)
14
+ end
15
+ end
16
+
17
+ context "when using the :threaded_in_memory_queue adapter" do
18
+ it "performs the work using ThreadedInMemoryQueue" do
19
+ expect(TestWorker).to receive(:perform).exactly(3).times.with("foo")
20
+ TestWorker.perform_async("foo")
21
+ MultiWorker.enqueue(TestWorker, "foo")
22
+ TestWorker.perform("foo")
23
+ end
24
+ end
25
25
  end
@@ -0,0 +1,64 @@
1
+ exit if jruby?
2
+
3
+ ENV["DATABASE_URL"] ||= "postgres:///queue_classic_test"
4
+ require 'toro'
5
+
6
+ require 'test_workers'
7
+
8
+ describe TestWorker do
9
+ it_behaves_like "a worker"
10
+ end
11
+
12
+ describe MultiWorker do
13
+ context "when Toro is loaded" do
14
+ it "defaults to the :toro adapter" do
15
+ expect(MultiWorker.default_adapter).to eq(:toro)
16
+ end
17
+ end
18
+
19
+ context "when using the :toro adapter" do
20
+ it "performs the work using Toro" do
21
+ expect(Toro::Client).to receive(:create_job).exactly(2).times.with({class_name:"TestWorker", name:nil, args:["foo"], queue::default})
22
+ TestWorker.perform_async("foo")
23
+ MultiWorker.enqueue(TestWorker, "foo")
24
+ end
25
+
26
+ it "exposes the Toro rake task" do
27
+ expect(MultiWorker.adapter.rake_task.name).to eq("toro")
28
+ end
29
+
30
+ context "with advanced options" do
31
+ context "when configuring the :retry option" do
32
+ context "with a hash" do
33
+ it "configures retry interval" do
34
+ retry_worker = Class.new do
35
+ worker retry: {delay: 2.minutes}
36
+ end
37
+
38
+ expect(retry_worker.toro_options[:retry_interval]).to eq(2.minutes)
39
+ end
40
+ end
41
+
42
+ context "with an ActiveSupport::Duration" do
43
+ it "configures retry interval" do
44
+ retry_worker = Class.new do
45
+ worker retry: 15.seconds
46
+ end
47
+
48
+ expect(retry_worker.toro_options[:retry_interval]).to eq(15.seconds)
49
+ end
50
+ end
51
+
52
+ context "with a number" do
53
+ it "configures retry interval" do
54
+ retry_worker = Class.new do
55
+ worker retry: 20
56
+ end
57
+
58
+ expect(retry_worker.toro_options[:retry_interval]).to eq(20)
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -1,31 +1,31 @@
1
- exit unless jruby?
2
-
3
- require 'torquebox/messaging'
4
- require 'torquebox/messaging/backgroundable'
5
- require 'torquebox/core'
6
- #java_import 'org.torquebox.core.util.StringUtils'
7
-
8
- require 'test_workers'
9
-
10
- describe TestWorker do
11
- it_behaves_like "a worker"
12
-
13
- it { should be_a ::TorqueBox::Messaging::Backgroundable}
14
- end
15
-
16
- describe MultiWorker do
17
- context "when TorqueBox::Messaging::Backgroundable is loaded" do
18
- it "defaults to the :sidekiq adapter" do
19
- MultiWorker.default_adapter.should == :torquebox_backgroundable
20
- end
21
- end
22
-
23
- context "when using the :torquebox_backgroundable adapter" do
24
- it "puts a message on the queue" do
25
- #@queue.should_receive(:publish).exactly(2).times
26
- TorqueBox::Messaging::Backgroundable::Util.should_receive(:publish_message).exactly(2).times
27
- TestWorker.perform_async("foo")
28
- MultiWorker.enqueue(TestWorker, "foo")
29
- end
30
- end
1
+ exit unless jruby?
2
+
3
+ require 'torquebox/messaging'
4
+ require 'torquebox/messaging/backgroundable'
5
+ require 'torquebox/core'
6
+ #java_import 'org.torquebox.core.util.StringUtils'
7
+
8
+ require 'test_workers'
9
+
10
+ describe TestWorker do
11
+ it_behaves_like "a worker"
12
+
13
+ it { should be_a ::TorqueBox::Messaging::Backgroundable}
14
+ end
15
+
16
+ describe MultiWorker do
17
+ context "when TorqueBox::Messaging::Backgroundable is loaded" do
18
+ it "defaults to the :sidekiq adapter" do
19
+ expect(MultiWorker.default_adapter).to eq(:torquebox_backgroundable)
20
+ end
21
+ end
22
+
23
+ context "when using the :torquebox_backgroundable adapter" do
24
+ it "puts a message on the queue" do
25
+ #@queue.should_receive(:publish).exactly(2).times
26
+ expect(TorqueBox::Messaging::Backgroundable::Util).to receive(:publish_message).exactly(2).times
27
+ TestWorker.perform_async("foo")
28
+ MultiWorker.enqueue(TestWorker, "foo")
29
+ end
30
+ end
31
31
  end
@@ -1,59 +1,61 @@
1
- describe MultiWorker do
2
- context 'configuration' do
3
- it 'yields itself in a configuration block' do
4
- MultiWorker.configure do
5
- self.should == MultiWorker
6
- end
7
- end
8
-
9
- it 'allows the default adapter to be set' do
10
- MultiWorker.configure do
11
- default_adapter :foo
12
- end
13
-
14
- MultiWorker.default_adapter.should == :foo
15
-
16
- MultiWorker.instance_variable_set(:@default_adapter, nil)
17
- end
18
-
19
- it 'picks a default adapter automatically' do
20
- MultiWorker.default_adapter.should_not be_nil
21
- end
22
-
23
- it 'provides default options' do
24
- MultiWorker.default_options[:queue].should == :default
25
- MultiWorker.default_options[:retry].should == false
26
- MultiWorker.default_options[:lock].should == false
27
- MultiWorker.default_options[:unique].should == false
28
- MultiWorker.default_options[:status].should == false
29
- end
30
-
31
- it 'allows default options to be customized' do
32
- MultiWorker.configure do
33
- default_options :retry => true, :unique => true
34
- end
35
-
36
- MultiWorker.default_options[:retry].should == true
37
- MultiWorker.default_options[:lock].should == false
38
- MultiWorker.default_options[:unique].should == true
39
- MultiWorker.default_options[:status].should == false
40
-
41
- MultiWorker.instance_variable_set(:@default_options, nil)
42
- end
43
-
44
- it 'allows default options to be overriden on the worker' do
45
- MultiWorker.configure do
46
- default_adapter :foo
47
- end
48
-
49
- require 'multi_worker/adapters/inline'
50
- MultiWorker::Adapters::Inline.should_receive(:configure) do |klass, opts|
51
- opts[:queue].should == :background
52
- end
53
-
54
- custom_worker = Class.new do
55
- worker :adapter => :inline, :queue => :background
56
- end
57
- end
58
- end
1
+ describe MultiWorker do
2
+ context 'configuration' do
3
+ it 'yields itself in a configuration block' do
4
+ configuration = MultiWorker.configure do
5
+ self
6
+ end
7
+
8
+ expect(configuration).to eq MultiWorker
9
+ end
10
+
11
+ it 'allows the default adapter to be set' do
12
+ MultiWorker.configure do
13
+ default_adapter :foo
14
+ end
15
+
16
+ expect(MultiWorker.default_adapter).to eq(:foo)
17
+
18
+ MultiWorker.instance_variable_set(:@default_adapter, nil)
19
+ end
20
+
21
+ it 'picks a default adapter automatically' do
22
+ expect(MultiWorker.default_adapter).not_to be_nil
23
+ end
24
+
25
+ it 'provides default options' do
26
+ expect(MultiWorker.default_options[:queue]).to eq(:default)
27
+ expect(MultiWorker.default_options[:retry]).to eq(false)
28
+ expect(MultiWorker.default_options[:lock]).to eq(false)
29
+ expect(MultiWorker.default_options[:unique]).to eq(false)
30
+ expect(MultiWorker.default_options[:status]).to eq(false)
31
+ end
32
+
33
+ it 'allows default options to be customized' do
34
+ MultiWorker.configure do
35
+ default_options retry: true, unique: true
36
+ end
37
+
38
+ expect(MultiWorker.default_options[:retry]).to eq(true)
39
+ expect(MultiWorker.default_options[:lock]).to eq(false)
40
+ expect(MultiWorker.default_options[:unique]).to eq(true)
41
+ expect(MultiWorker.default_options[:status]).to eq(false)
42
+
43
+ MultiWorker.instance_variable_set(:@default_options, nil)
44
+ end
45
+
46
+ it 'allows default options to be overriden on the worker' do
47
+ MultiWorker.configure do
48
+ default_adapter :foo
49
+ end
50
+
51
+ require 'multi_worker/adapters/inline'
52
+ expect(MultiWorker::Adapters::Inline).to receive(:configure) do |klass, opts|
53
+ expect(opts[:queue]).to eq(:background)
54
+ end
55
+
56
+ custom_worker = Class.new do
57
+ worker adapter: :inline, queue: :background
58
+ end
59
+ end
60
+ end
59
61
  end
@@ -1,18 +1,18 @@
1
- shared_examples_for "a worker" do
2
- context "class" do
3
- subject { described_class }
4
-
5
- it { should respond_to(:perform) }
6
- it { should respond_to(:perform_async) }
7
-
8
- it "delegates ::perform to #perform" do
9
- TestWorker.any_instance.should_receive(:perform).once.with("foo")
10
- TestWorker.perform("foo")
11
- end
12
- end
13
-
14
- context "instance" do
15
- it { should respond_to(:perform) }
16
- it { should respond_to(:perform_async) }
17
- end
1
+ shared_examples_for "a worker" do
2
+ context "class" do
3
+ subject { described_class }
4
+
5
+ it { should respond_to(:perform) }
6
+ it { should respond_to(:perform_async) }
7
+
8
+ it "delegates ::perform to #perform" do
9
+ expect_any_instance_of(TestWorker).to receive(:perform).once.with("foo")
10
+ TestWorker.perform("foo")
11
+ end
12
+ end
13
+
14
+ context "instance" do
15
+ it { should respond_to(:perform) }
16
+ it { should respond_to(:perform_async) }
17
+ end
18
18
  end
@@ -1,6 +1,6 @@
1
1
  #require 'bundler/setup'
2
2
  require 'multi_worker'
3
- #require 'pry'
3
+ require 'pry'
4
4
  $LOAD_PATH << File.expand_path('.')
5
5
 
6
6
  def jruby?
@@ -1,7 +1,7 @@
1
- class TestWorker
2
- worker
3
-
4
- def perform(arg)
5
- arg
6
- end
1
+ class TestWorker
2
+ worker
3
+
4
+ def perform(arg)
5
+ arg
6
+ end
7
7
  end
metadata CHANGED
@@ -1,237 +1,237 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: multi_worker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Butler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-01 00:00:00.000000000 Z
11
+ date: 2014-04-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: resque
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: resque-retry
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: resque-status
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: resque-loner
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ">="
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ">="
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: resque-lock-timeout
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: resque-delay
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: sidekiq
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: sidekiq-lock
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ">="
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: sidekiq_status
169
169
  requirement: !ruby/object:Gem::Requirement
170
170
  requirements:
171
- - - '>='
171
+ - - ">="
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
- - - '>='
178
+ - - ">="
179
179
  - !ruby/object:Gem::Version
180
180
  version: '0'
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: sidekiq-unique-jobs
183
183
  requirement: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  type: :development
189
189
  prerelease: false
190
190
  version_requirements: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - '>='
192
+ - - ">="
193
193
  - !ruby/object:Gem::Version
194
194
  version: '0'
195
195
  - !ruby/object:Gem::Dependency
196
196
  name: sidekiq-delay
197
197
  requirement: !ruby/object:Gem::Requirement
198
198
  requirements:
199
- - - '>='
199
+ - - ">="
200
200
  - !ruby/object:Gem::Version
201
201
  version: '0'
202
202
  type: :development
203
203
  prerelease: false
204
204
  version_requirements: !ruby/object:Gem::Requirement
205
205
  requirements:
206
- - - '>='
206
+ - - ">="
207
207
  - !ruby/object:Gem::Version
208
208
  version: '0'
209
209
  - !ruby/object:Gem::Dependency
210
210
  name: delayed_job
211
211
  requirement: !ruby/object:Gem::Requirement
212
212
  requirements:
213
- - - '>='
213
+ - - ">="
214
214
  - !ruby/object:Gem::Version
215
215
  version: '0'
216
216
  type: :development
217
217
  prerelease: false
218
218
  version_requirements: !ruby/object:Gem::Requirement
219
219
  requirements:
220
- - - '>='
220
+ - - ">="
221
221
  - !ruby/object:Gem::Version
222
222
  version: '0'
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: delayed_job_active_record
225
225
  requirement: !ruby/object:Gem::Requirement
226
226
  requirements:
227
- - - '>='
227
+ - - ">="
228
228
  - !ruby/object:Gem::Version
229
229
  version: '0'
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
- - - '>='
234
+ - - ">="
235
235
  - !ruby/object:Gem::Version
236
236
  version: '0'
237
237
  - !ruby/object:Gem::Dependency
@@ -252,84 +252,98 @@ dependencies:
252
252
  name: queue_classic
253
253
  requirement: !ruby/object:Gem::Requirement
254
254
  requirements:
255
- - - '>='
255
+ - - ">="
256
256
  - !ruby/object:Gem::Version
257
257
  version: '0'
258
258
  type: :development
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
- - - '>='
262
+ - - ">="
263
+ - !ruby/object:Gem::Version
264
+ version: '0'
265
+ - !ruby/object:Gem::Dependency
266
+ name: toro
267
+ requirement: !ruby/object:Gem::Requirement
268
+ requirements:
269
+ - - ">="
270
+ - !ruby/object:Gem::Version
271
+ version: '0'
272
+ type: :development
273
+ prerelease: false
274
+ version_requirements: !ruby/object:Gem::Requirement
275
+ requirements:
276
+ - - ">="
263
277
  - !ruby/object:Gem::Version
264
278
  version: '0'
265
279
  - !ruby/object:Gem::Dependency
266
280
  name: que
267
281
  requirement: !ruby/object:Gem::Requirement
268
282
  requirements:
269
- - - '>='
283
+ - - ">="
270
284
  - !ruby/object:Gem::Version
271
285
  version: '0'
272
286
  type: :development
273
287
  prerelease: false
274
288
  version_requirements: !ruby/object:Gem::Requirement
275
289
  requirements:
276
- - - '>='
290
+ - - ">="
277
291
  - !ruby/object:Gem::Version
278
292
  version: '0'
279
293
  - !ruby/object:Gem::Dependency
280
294
  name: sneakers
281
295
  requirement: !ruby/object:Gem::Requirement
282
296
  requirements:
283
- - - '>='
297
+ - - ">="
284
298
  - !ruby/object:Gem::Version
285
299
  version: '0'
286
300
  type: :development
287
301
  prerelease: false
288
302
  version_requirements: !ruby/object:Gem::Requirement
289
303
  requirements:
290
- - - '>='
304
+ - - ">="
291
305
  - !ruby/object:Gem::Version
292
306
  version: '0'
293
307
  - !ruby/object:Gem::Dependency
294
308
  name: threaded_in_memory_queue
295
309
  requirement: !ruby/object:Gem::Requirement
296
310
  requirements:
297
- - - '>='
311
+ - - ">="
298
312
  - !ruby/object:Gem::Version
299
313
  version: '0'
300
314
  type: :development
301
315
  prerelease: false
302
316
  version_requirements: !ruby/object:Gem::Requirement
303
317
  requirements:
304
- - - '>='
318
+ - - ">="
305
319
  - !ruby/object:Gem::Version
306
320
  version: '0'
307
321
  - !ruby/object:Gem::Dependency
308
322
  name: sucker_punch
309
323
  requirement: !ruby/object:Gem::Requirement
310
324
  requirements:
311
- - - '>='
325
+ - - ">="
312
326
  - !ruby/object:Gem::Version
313
327
  version: '0'
314
328
  type: :development
315
329
  prerelease: false
316
330
  version_requirements: !ruby/object:Gem::Requirement
317
331
  requirements:
318
- - - '>='
332
+ - - ">="
319
333
  - !ruby/object:Gem::Version
320
334
  version: '0'
321
335
  - !ruby/object:Gem::Dependency
322
336
  name: backburner
323
337
  requirement: !ruby/object:Gem::Requirement
324
338
  requirements:
325
- - - '>='
339
+ - - ">="
326
340
  - !ruby/object:Gem::Version
327
341
  version: '0'
328
342
  type: :development
329
343
  prerelease: false
330
344
  version_requirements: !ruby/object:Gem::Requirement
331
345
  requirements:
332
- - - '>='
346
+ - - ">="
333
347
  - !ruby/object:Gem::Version
334
348
  version: '0'
335
349
  description: Provides a common interface to Ruby worker/queue libraries.
@@ -339,9 +353,9 @@ executables: []
339
353
  extensions: []
340
354
  extra_rdoc_files: []
341
355
  files:
342
- - .gitignore
343
- - .rspec
344
- - .travis.yml
356
+ - ".gitignore"
357
+ - ".rspec"
358
+ - ".travis.yml"
345
359
  - Gemfile
346
360
  - LICENSE.txt
347
361
  - README.md
@@ -358,6 +372,7 @@ files:
358
372
  - lib/multi_worker/adapters/sneakers.rb
359
373
  - lib/multi_worker/adapters/sucker_punch.rb
360
374
  - lib/multi_worker/adapters/threaded_in_memory_queue.rb
375
+ - lib/multi_worker/adapters/toro.rb
361
376
  - lib/multi_worker/adapters/torquebox_backgroundable.rb
362
377
  - lib/multi_worker/interface.rb
363
378
  - lib/multi_worker/tasks.rb
@@ -374,6 +389,7 @@ files:
374
389
  - spec/adapters/sneakers_spec.rb
375
390
  - spec/adapters/sucker_punch_spec.rb
376
391
  - spec/adapters/threaded_in_memory_queue_spec.rb
392
+ - spec/adapters/toro_spec.rb
377
393
  - spec/adapters/torquebox_backgroundable_spec.rb
378
394
  - spec/configuration_spec.rb
379
395
  - spec/delayed/backend/test.rb
@@ -391,17 +407,17 @@ require_paths:
391
407
  - lib
392
408
  required_ruby_version: !ruby/object:Gem::Requirement
393
409
  requirements:
394
- - - '>='
410
+ - - ">="
395
411
  - !ruby/object:Gem::Version
396
412
  version: '0'
397
413
  required_rubygems_version: !ruby/object:Gem::Requirement
398
414
  requirements:
399
- - - '>='
415
+ - - ">="
400
416
  - !ruby/object:Gem::Version
401
417
  version: '0'
402
418
  requirements: []
403
419
  rubyforge_project:
404
- rubygems_version: 2.1.11
420
+ rubygems_version: 2.2.2
405
421
  signing_key:
406
422
  specification_version: 4
407
423
  summary: Provides a common interface to Ruby worker/queue libraries.
@@ -417,6 +433,7 @@ test_files:
417
433
  - spec/adapters/sneakers_spec.rb
418
434
  - spec/adapters/sucker_punch_spec.rb
419
435
  - spec/adapters/threaded_in_memory_queue_spec.rb
436
+ - spec/adapters/toro_spec.rb
420
437
  - spec/adapters/torquebox_backgroundable_spec.rb
421
438
  - spec/configuration_spec.rb
422
439
  - spec/delayed/backend/test.rb
@@ -424,4 +441,3 @@ test_files:
424
441
  - spec/shared/worker_spec.rb
425
442
  - spec/spec_helper.rb
426
443
  - spec/test_workers.rb
427
- has_rdoc: