boss_queue 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.4.0
data/boss_queue.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "boss_queue"
8
- s.version = "0.3.1"
8
+ s.version = "0.4.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Daniel Nelson"]
12
- s.date = "2013-10-07"
12
+ s.date = "2013-10-09"
13
13
  s.description = "A fault tolerant job queue built around Amazon SQS & DynamoDB"
14
14
  s.email = "daniel@populr.me"
15
15
  s.extra_rdoc_files = [
@@ -80,7 +80,7 @@ class BossQueue
80
80
  elsif failure_action == 'callback' &&
81
81
  failure_callback
82
82
 
83
- callback_called = target.send(failure_callback, *arguments) rescue nil
83
+ callback_called = target.send(failure_callback, err, *arguments) rescue nil
84
84
  if callback_called
85
85
  destroy
86
86
  else
data/spec/job_spec.rb CHANGED
@@ -334,8 +334,8 @@ describe "BossQueue::Job" do
334
334
  TestClass.stub(:find).and_return(@instance_to_work_on)
335
335
  end
336
336
 
337
- it "should call the failure_callback method with the arguments" do
338
- @instance_to_work_on.should_receive(:failure).with('a', 'b', { 'c' => 2, 'd' => 1 })
337
+ it "should call the failure_callback method with the exception and the callback arguments" do
338
+ @instance_to_work_on.should_receive(:failure).with(instance_of(StandardError), 'a', 'b', { 'c' => 2, 'd' => 1 })
339
339
  @job.fail(@err)
340
340
  end
341
341
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: boss_queue
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-07 00:00:00.000000000 Z
12
+ date: 2013-10-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk
@@ -160,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  segments:
162
162
  - 0
163
- hash: -2145018656605300488
163
+ hash: -3950769751484491906
164
164
  required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  none: false
166
166
  requirements: