navvy 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/navvy.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{navvy}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeff Kreeftmeijer"]
12
- s.date = %q{2010-01-21}
12
+ s.date = %q{2010-01-26}
13
13
  s.description = %q{Simple background job processor inspired by delayed_job, but aiming for database agnosticism.}
14
14
  s.email = %q{jeff@kreeftmeijer.nl}
15
15
  s.extra_rdoc_files = [
@@ -28,18 +28,20 @@ Gem::Specification.new do |s|
28
28
  "lib/generators/navvy_generator.rb",
29
29
  "lib/navvy.rb",
30
30
  "lib/navvy/job/active_record.rb",
31
+ "lib/navvy/job/data_mapper.rb",
31
32
  "lib/navvy/job/mongo_mapper.rb",
32
33
  "lib/navvy/job/sequel.rb",
33
34
  "lib/navvy/log.rb",
34
35
  "lib/navvy/tasks.rb",
35
36
  "lib/navvy/worker.rb",
36
37
  "navvy.gemspec",
37
- "spec/job/active_record_spec.rb",
38
- "spec/job/mongo_mapper_spec.rb",
39
- "spec/job/sequel_spec.rb",
38
+ "spec/job_spec.rb",
40
39
  "spec/log_spec.rb",
41
40
  "spec/setup/active_record.rb",
41
+ "spec/setup/data_mapper.rb",
42
+ "spec/setup/justlogging.rb",
42
43
  "spec/setup/mongo_mapper.rb",
44
+ "spec/setup/rails_default_logger.rb",
43
45
  "spec/setup/sequel.rb",
44
46
  "spec/spec_helper.rb",
45
47
  "spec/worker_spec.rb"
@@ -50,12 +52,13 @@ Gem::Specification.new do |s|
50
52
  s.rubygems_version = %q{1.3.5}
51
53
  s.summary = %q{Simple background job processor inspired by delayed_job, but aiming for database agnosticism.}
52
54
  s.test_files = [
53
- "spec/job/active_record_spec.rb",
54
- "spec/job/mongo_mapper_spec.rb",
55
- "spec/job/sequel_spec.rb",
55
+ "spec/job_spec.rb",
56
56
  "spec/log_spec.rb",
57
57
  "spec/setup/active_record.rb",
58
+ "spec/setup/data_mapper.rb",
59
+ "spec/setup/justlogging.rb",
58
60
  "spec/setup/mongo_mapper.rb",
61
+ "spec/setup/rails_default_logger.rb",
59
62
  "spec/setup/sequel.rb",
60
63
  "spec/spec_helper.rb",
61
64
  "spec/worker_spec.rb"
@@ -68,27 +71,21 @@ Gem::Specification.new do |s|
68
71
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
69
72
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
70
73
  s.add_development_dependency(%q<yard>, [">= 0.5.2"])
71
- s.add_development_dependency(%q<metric_fu>, [">= 1.1.6"])
72
- s.add_development_dependency(%q<machinist>, [">= 1.0.6"])
73
74
  s.add_development_dependency(%q<mongo_mapper>, [">= 0.6.10"])
74
- s.add_development_dependency(%q<machinist_mongomapper>, [">= 0.9.7"])
75
75
  s.add_development_dependency(%q<sequel>, [">= 3.8.0"])
76
+ s.add_development_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
76
77
  else
77
78
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
78
79
  s.add_dependency(%q<yard>, [">= 0.5.2"])
79
- s.add_dependency(%q<metric_fu>, [">= 1.1.6"])
80
- s.add_dependency(%q<machinist>, [">= 1.0.6"])
81
80
  s.add_dependency(%q<mongo_mapper>, [">= 0.6.10"])
82
- s.add_dependency(%q<machinist_mongomapper>, [">= 0.9.7"])
83
81
  s.add_dependency(%q<sequel>, [">= 3.8.0"])
82
+ s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
84
83
  end
85
84
  else
86
85
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
87
86
  s.add_dependency(%q<yard>, [">= 0.5.2"])
88
- s.add_dependency(%q<metric_fu>, [">= 1.1.6"])
89
- s.add_dependency(%q<machinist>, [">= 1.0.6"])
90
87
  s.add_dependency(%q<mongo_mapper>, [">= 0.6.10"])
91
- s.add_dependency(%q<machinist_mongomapper>, [">= 0.9.7"])
92
88
  s.add_dependency(%q<sequel>, [">= 3.8.0"])
89
+ s.add_dependency(%q<sqlite3-ruby>, [">= 1.2.5"])
93
90
  end
94
91
  end
@@ -1,53 +1,49 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe 'Navvy::Job' do
4
- before do
5
- require File.expand_path(File.dirname(__FILE__) + '/../setup/active_record')
6
- end
7
-
8
4
  describe '.enqueue' do
9
5
  before(:each) do
10
- Navvy::Job.delete_all
6
+ delete_all_jobs
11
7
  end
12
8
 
13
9
  it 'should enqueue a job' do
14
10
  Navvy::Job.enqueue(Cow, :speak)
15
- Navvy::Job.count.should == 1
11
+ job_count.should == 1
16
12
  end
17
13
 
18
14
  it 'should set the object and the method_name' do
19
15
  Navvy::Job.enqueue(Cow, :speak)
20
- job = Navvy::Job.first
16
+ job = first_job
21
17
  job.object.should == 'Cow'
22
- job.method_name.should == 'speak'
18
+ job.method_name.to_s.should == 'speak'
23
19
  end
24
20
 
25
21
  it 'should turn the method_name into a symbol' do
26
22
  Navvy::Job.enqueue(Cow, 'speak')
27
- job = Navvy::Job.first
28
- job.method_name.should == 'speak'
23
+ job = first_job
24
+ job.method_name.to_s.should == 'speak'
29
25
  end
30
26
 
31
27
  it 'should set the arguments' do
32
28
  Navvy::Job.enqueue(Cow, :speak, true, false)
33
- job = Navvy::Job.first
34
- YAML.load(job.arguments).should == [true, false]
29
+ job = first_job
30
+ job.args.should == [true, false]
35
31
  end
36
32
 
37
33
  it 'should set the created_at date' do
38
34
  Navvy::Job.enqueue(Cow, :speak, true, false)
39
- job = Navvy::Job.first
35
+ job = first_job
40
36
  job.created_at.should be_instance_of Time
41
37
  job.created_at.should <= Time.now
42
- job.created_at.should > 10.seconds.ago
38
+ job.created_at.should > Time.now - 10
43
39
  end
44
40
 
45
41
  it 'should set the run_at date' do
46
42
  Navvy::Job.enqueue(Cow, :speak, true, false)
47
- job = Navvy::Job.first
43
+ job = first_job
48
44
  job.run_at.should be_instance_of Time
49
45
  job.run_at.should <= Time.now
50
- job.created_at.should > 10.seconds.ago
46
+ job.created_at.should > Time.now - 10
51
47
  end
52
48
 
53
49
  it 'should return the enqueued job' do
@@ -58,12 +54,12 @@ describe 'Navvy::Job' do
58
54
 
59
55
  describe '.next' do
60
56
  before(:each) do
61
- Navvy::Job.delete_all
57
+ delete_all_jobs
62
58
  Navvy::Job.create(
63
59
  :object => 'Cow',
64
60
  :method_name => :last,
65
- :created_at => Time.now + 1.day,
66
- :run_at => Time.now
61
+ :created_at => Time.now + (60 * 60),
62
+ :run_at => Time.now
67
63
  )
68
64
  Navvy::Job.create(
69
65
  :object => 'Cow',
@@ -80,7 +76,7 @@ describe 'Navvy::Job' do
80
76
  Navvy::Job.create(
81
77
  :object => 'Cow',
82
78
  :method_name => :tomorrow,
83
- :run_at => Time.now + 1.day
79
+ :run_at => Time.now + (60 * 60)
84
80
  )
85
81
  120.times do
86
82
  Navvy::Job.enqueue(Cow, :speak)
@@ -92,7 +88,7 @@ describe 'Navvy::Job' do
92
88
  jobs.count.should == 100
93
89
  jobs.each do |job|
94
90
  job.should be_instance_of Navvy::Job
95
- job.method_name.should == 'speak'
91
+ job.method_name.to_s.should == 'speak'
96
92
  end
97
93
  end
98
94
 
@@ -108,11 +104,11 @@ describe 'Navvy::Job' do
108
104
 
109
105
  describe '.cleanup' do
110
106
  before(:each) do
111
- Navvy::Job.delete_all
107
+ delete_all_jobs
112
108
  Navvy::Job.create(
113
109
  :object => 'Cow',
114
110
  :method_name => :speak,
115
- :completed_at => Time.now - 2.days
111
+ :completed_at => Time.now - (2 * 60 * 60)
116
112
  )
117
113
  Navvy::Job.create(
118
114
  :object => 'Cow',
@@ -127,26 +123,25 @@ describe 'Navvy::Job' do
127
123
 
128
124
  it 'should delete all complete jobs when "keep" is false' do
129
125
  Navvy::Job.cleanup
130
- Navvy::Job.count.should == 1
126
+ job_count.should == 1
131
127
  end
132
128
 
133
129
  it 'should not delete any complete jobs when "keep" is true' do
134
130
  Navvy::Job.keep = true
135
131
  Navvy::Job.cleanup
136
- Navvy::Job.count.should == 3
132
+ job_count.should == 3
137
133
  end
138
134
 
139
135
  it 'should delete all complete jobs where "keep" has passed' do
140
- Navvy::Job.keep = 1.day
136
+ Navvy::Job.keep = (60 * 60)
141
137
  Navvy::Job.cleanup
142
- Navvy::Job.count.should == 2
138
+ job_count.should == 2
143
139
  end
144
140
  end
145
141
 
146
142
  describe '#run' do
147
-
148
143
  it 'should pass the arguments' do
149
- Navvy::Job.delete_all
144
+ delete_all_jobs
150
145
  job = Navvy::Job.enqueue(Cow, :name, 'Betsy')
151
146
  Cow.should_receive(:name).with('Betsy')
152
147
  job.run
@@ -154,7 +149,7 @@ describe 'Navvy::Job' do
154
149
 
155
150
  describe 'when everything goes well' do
156
151
  before(:each) do
157
- Navvy::Job.delete_all
152
+ delete_all_jobs
158
153
  Navvy::Job.enqueue(Cow, :speak)
159
154
  Navvy::Job.keep = false
160
155
  end
@@ -162,7 +157,7 @@ describe 'Navvy::Job' do
162
157
  it 'should run the job and delete it' do
163
158
  jobs = Navvy::Job.next
164
159
  jobs.first.run.should == 'moo'
165
- Navvy::Job.count.should == 0
160
+ job_count.should == 0
166
161
  end
167
162
 
168
163
  describe 'when Navvy::Job.keep is set' do
@@ -170,39 +165,39 @@ describe 'Navvy::Job' do
170
165
  Navvy::Job.keep = true
171
166
  jobs = Navvy::Job.next
172
167
  jobs.first.run
173
- Navvy::Job.count.should == 1
168
+ job_count.should == 1
174
169
  jobs.first.started_at.should be_instance_of Time
175
170
  jobs.first.completed_at.should be_instance_of Time
176
171
  end
177
172
 
178
173
  it 'should mark the job as complete when keep has not passed yer' do
179
- Navvy::Job.keep = 1.day
174
+ Navvy::Job.keep = (60 * 60)
180
175
  jobs = Navvy::Job.next
181
176
  jobs.first.run
182
- Navvy::Job.count.should == 1
177
+ job_count.should == 1
183
178
  jobs.first.started_at.should be_instance_of Time
184
179
  jobs.first.completed_at.should be_instance_of Time
185
180
  end
186
181
 
187
182
  it 'should delete the job when the "keep" flag has passed' do
188
- Navvy::Job.keep = -1.day
183
+ Navvy::Job.keep = -(60 * 60)
189
184
  jobs = Navvy::Job.next
190
185
  jobs.first.run
191
- Navvy::Job.count.should == 0
186
+ job_count.should == 0
192
187
  end
193
188
  end
194
189
  end
195
190
 
196
191
  describe 'when a job fails' do
197
192
  before(:each) do
198
- Navvy::Job.delete_all
193
+ delete_all_jobs
199
194
  Navvy::Job.enqueue(Cow, :broken)
200
195
  end
201
196
 
202
197
  it 'should store the exception and current time' do
203
198
  jobs = Navvy::Job.next
204
199
  jobs.first.run
205
- Navvy::Job.count.should == 1
200
+ job_count.should == 1
206
201
  jobs.first.exception.should == 'this method is broken'
207
202
  jobs.first.started_at.should be_instance_of Time
208
203
  jobs.first.failed_at.should be_instance_of Time
@@ -212,7 +207,7 @@ describe 'Navvy::Job' do
212
207
 
213
208
  describe '#completed' do
214
209
  before(:each) do
215
- Navvy::Job.delete_all
210
+ delete_all_jobs
216
211
  Navvy::Job.enqueue(Cow, :speak)
217
212
  end
218
213
 
@@ -231,7 +226,7 @@ describe 'Navvy::Job' do
231
226
 
232
227
  describe '#failed' do
233
228
  before(:each) do
234
- Navvy::Job.delete_all
229
+ delete_all_jobs
235
230
  Navvy::Job.enqueue(Cow, :speak)
236
231
  end
237
232
 
@@ -267,25 +262,25 @@ describe 'Navvy::Job' do
267
262
  describe '#duration' do
268
263
  it 'should return a duration if started_at and completed_at are set' do
269
264
  job = Navvy::Job.create(
270
- :started_at => 2.seconds.ago,
265
+ :started_at => Time.now - 2,
271
266
  :completed_at => Time.now
272
267
  )
273
268
 
274
- job.duration.should >= 2.seconds
269
+ job.duration.should >= 2
275
270
  end
276
271
 
277
272
  it 'should return a duration if started_at and failed_at are set' do
278
273
  job = Navvy::Job.create(
279
- :started_at => 3.seconds.ago,
274
+ :started_at => Time.now - 3,
280
275
  :failed_at => Time.now
281
276
  )
282
277
 
283
- job.duration.should >= 3.seconds
278
+ job.duration.should >= 3
284
279
  end
285
280
 
286
281
  it 'should return 0 if only started_at is set' do
287
282
  job = Navvy::Job.create(
288
- :started_at => 4.seconds.ago
283
+ :started_at => Time.now - 4
289
284
  )
290
285
 
291
286
  job.duration.should == 0
@@ -299,27 +294,4 @@ describe 'Navvy::Job' do
299
294
  job.args.count.should == 2
300
295
  end
301
296
  end
302
-
303
- describe '#status' do
304
- before(:each) do
305
- Navvy::Job.delete_all
306
- end
307
-
308
- it 'should return :pending' do
309
- job = Navvy::Job.enqueue(Cow, :speak)
310
- job.status.should == :pending
311
- end
312
-
313
- it 'should return :completed' do
314
- job = Navvy::Job.enqueue(Cow, :speak)
315
- job.completed
316
- job.status.should == :completed
317
- end
318
-
319
- it 'should return :failed' do
320
- job = Navvy::Job.enqueue(Cow, :speak)
321
- job.failed
322
- job.status.should == :failed
323
- end
324
- end
325
297
  end
data/spec/log_spec.rb CHANGED
@@ -8,18 +8,13 @@ describe Navvy::Log do
8
8
  before do
9
9
  Navvy::Log.logger = :rails
10
10
  end
11
-
11
+
12
12
  it 'should raise an error when the logger can not be found' do
13
13
  lambda { Navvy::Log.info('123') }.should raise_error
14
14
  end
15
-
16
- it 'should pass the log to RAILS_DEFAULT_LOGGER' do
17
- class RailsLogger
18
- def self.info(text);end
19
- end
20
15
 
21
- RAILS_DEFAULT_LOGGER = RailsLogger
22
-
16
+ it 'should pass the log to RAILS_DEFAULT_LOGGER' do
17
+ require File.expand_path(File.dirname(__FILE__) + '/setup/rails_default_logger')
23
18
  RAILS_DEFAULT_LOGGER.should_receive(:info).with('123')
24
19
  Navvy::Log.info('123')
25
20
  end
@@ -29,16 +24,13 @@ describe Navvy::Log do
29
24
  before do
30
25
  Navvy::Log.logger = :justlogging
31
26
  end
32
-
27
+
33
28
  it 'should raise an error when the logger can not be found' do
34
29
  lambda { Navvy::Log.info('123') }.should raise_error
35
30
  end
36
-
31
+
37
32
  it 'should pass the log to justlogging' do
38
- class Justlogging
39
- def self.log(text);end
40
- end
41
-
33
+ require File.expand_path(File.dirname(__FILE__) + '/setup/justlogging')
42
34
  Justlogging.should_receive(:log).with('123')
43
35
  Navvy::Log.info('123')
44
36
  end
@@ -55,12 +47,12 @@ describe Navvy::Log do
55
47
  Navvy::Log.info('123')
56
48
  end
57
49
  end
58
-
50
+
59
51
  describe 'when not using any logger' do
60
52
  before do
61
53
  Navvy::Log.logger = nil
62
54
  end
63
-
55
+
64
56
  it 'should not log' do
65
57
  RAILS_DEFAULT_LOGGER.should_not_receive(:info)
66
58
  Justlogging.should_not_receive(:log)
@@ -1,6 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/../../lib/navvy/job/active_record')
2
2
  require 'rubygems'
3
- require 'yaml'
4
3
 
5
4
  ActiveRecord::Base.establish_connection(:adapter => 'sqlite3', :database => '/tmp/navvy_test.sqlite')
6
5
 
@@ -0,0 +1,3 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/../../lib/navvy/job/data_mapper')
2
+ DataMapper.setup(:default, "sqlite3:///tmp/navvy_test.sqlite")
3
+ Navvy::Job.auto_migrate!
@@ -0,0 +1,3 @@
1
+ class Justlogging
2
+ def self.log(text);end
3
+ end
@@ -0,0 +1,5 @@
1
+ class RailsLogger
2
+ def self.info(text);end
3
+ end
4
+
5
+ RAILS_DEFAULT_LOGGER = RailsLogger
data/spec/setup/sequel.rb CHANGED
@@ -1,21 +1,20 @@
1
1
  require 'rubygems'
2
2
  require 'sequel'
3
- require 'yaml'
4
3
 
5
- Sequel.sqlite('/tmp/navvy_test_s.sqlite')
4
+ Sequel.sqlite('/tmp/navvy_test.sqlite')
6
5
 
7
6
  Sequel::DATABASES[0].create_table!(:jobs) do
8
- primary_key :id, :type=>Integer
9
- String :object
10
- String :method_name
11
- String :arguments, :text => true
12
- String :return
13
- String :exception
14
- DateTime :created_at
15
- DateTime :run_at
16
- DateTime :started_at
17
- DateTime :completed_at
18
- DateTime :failed_at
7
+ primary_key :id, :type => Integer
8
+ String :object
9
+ String :method_name
10
+ String :arguments, :text => true
11
+ String :return
12
+ String :exception
13
+ DateTime :created_at
14
+ DateTime :run_at
15
+ DateTime :started_at
16
+ DateTime :completed_at
17
+ DateTime :failed_at
19
18
  end
20
19
 
21
20
  require File.expand_path(File.dirname(__FILE__) + '/../../lib/navvy/job/sequel')
data/spec/spec_helper.rb CHANGED
@@ -7,6 +7,28 @@ require 'spec/autorun'
7
7
  Spec::Runner.configure do |config|
8
8
  end
9
9
 
10
+ def delete_all_jobs
11
+ if defined? Navvy::Job.delete_all
12
+ Navvy::Job.delete_all
13
+ elsif defined? Navvy::Job.all.destroy
14
+ Navvy::Job.all.destroy
15
+ else
16
+ Navvy::Job.delete
17
+ end
18
+ end
19
+
20
+ def job_count
21
+ if defined? Navvy::Job.count
22
+ Navvy::Job.count
23
+ else
24
+ Navvy::Job.all.length
25
+ end
26
+ end
27
+
28
+ def first_job
29
+ Navvy::Job.first
30
+ end
31
+
10
32
  class Cow
11
33
  def self.speak
12
34
  'moo'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: navvy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Kreeftmeijer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-21 00:00:00 +01:00
12
+ date: 2010-01-26 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -32,26 +32,6 @@ dependencies:
32
32
  - !ruby/object:Gem::Version
33
33
  version: 0.5.2
34
34
  version:
35
- - !ruby/object:Gem::Dependency
36
- name: metric_fu
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- version: 1.1.6
44
- version:
45
- - !ruby/object:Gem::Dependency
46
- name: machinist
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: 1.0.6
54
- version:
55
35
  - !ruby/object:Gem::Dependency
56
36
  name: mongo_mapper
57
37
  type: :development
@@ -63,24 +43,24 @@ dependencies:
63
43
  version: 0.6.10
64
44
  version:
65
45
  - !ruby/object:Gem::Dependency
66
- name: machinist_mongomapper
46
+ name: sequel
67
47
  type: :development
68
48
  version_requirement:
69
49
  version_requirements: !ruby/object:Gem::Requirement
70
50
  requirements:
71
51
  - - ">="
72
52
  - !ruby/object:Gem::Version
73
- version: 0.9.7
53
+ version: 3.8.0
74
54
  version:
75
55
  - !ruby/object:Gem::Dependency
76
- name: sequel
56
+ name: sqlite3-ruby
77
57
  type: :development
78
58
  version_requirement:
79
59
  version_requirements: !ruby/object:Gem::Requirement
80
60
  requirements:
81
61
  - - ">="
82
62
  - !ruby/object:Gem::Version
83
- version: 3.8.0
63
+ version: 1.2.5
84
64
  version:
85
65
  description: Simple background job processor inspired by delayed_job, but aiming for database agnosticism.
86
66
  email: jeff@kreeftmeijer.nl
@@ -103,18 +83,20 @@ files:
103
83
  - lib/generators/navvy_generator.rb
104
84
  - lib/navvy.rb
105
85
  - lib/navvy/job/active_record.rb
86
+ - lib/navvy/job/data_mapper.rb
106
87
  - lib/navvy/job/mongo_mapper.rb
107
88
  - lib/navvy/job/sequel.rb
108
89
  - lib/navvy/log.rb
109
90
  - lib/navvy/tasks.rb
110
91
  - lib/navvy/worker.rb
111
92
  - navvy.gemspec
112
- - spec/job/active_record_spec.rb
113
- - spec/job/mongo_mapper_spec.rb
114
- - spec/job/sequel_spec.rb
93
+ - spec/job_spec.rb
115
94
  - spec/log_spec.rb
116
95
  - spec/setup/active_record.rb
96
+ - spec/setup/data_mapper.rb
97
+ - spec/setup/justlogging.rb
117
98
  - spec/setup/mongo_mapper.rb
99
+ - spec/setup/rails_default_logger.rb
118
100
  - spec/setup/sequel.rb
119
101
  - spec/spec_helper.rb
120
102
  - spec/worker_spec.rb
@@ -147,12 +129,13 @@ signing_key:
147
129
  specification_version: 3
148
130
  summary: Simple background job processor inspired by delayed_job, but aiming for database agnosticism.
149
131
  test_files:
150
- - spec/job/active_record_spec.rb
151
- - spec/job/mongo_mapper_spec.rb
152
- - spec/job/sequel_spec.rb
132
+ - spec/job_spec.rb
153
133
  - spec/log_spec.rb
154
134
  - spec/setup/active_record.rb
135
+ - spec/setup/data_mapper.rb
136
+ - spec/setup/justlogging.rb
155
137
  - spec/setup/mongo_mapper.rb
138
+ - spec/setup/rails_default_logger.rb
156
139
  - spec/setup/sequel.rb
157
140
  - spec/spec_helper.rb
158
141
  - spec/worker_spec.rb