Skip to content

Commit

Permalink
v0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
lantins committed Jun 2, 2010
1 parent 2478580 commit 3a75907
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.0.3 (2010-06-02)

* Bugfix: Make sure that `redis_retry_key` has no whitespace.

## 0.0.2 (2010-05-06)

* Bugfix: Were calling non-existent method to delete redis key.
Expand Down
2 changes: 1 addition & 1 deletion resque-retry.gemspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spec = Gem::Specification.new do |s|
s.name = 'resque-retry'
s.version = '0.0.2'
s.version = '0.0.3'
s.date = Time.now.strftime('%Y-%m-%d')
s.summary = 'A resque plugin; provides retry, delay and exponential backoff support for resque jobs.'
s.homepage = 'http://github.com/lantins/resque-retry'
Expand Down
6 changes: 5 additions & 1 deletion test/retry_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,14 @@ def test_delete_redis_key_after_final_failed_retry
assert_equal 6, Resque.info[:processed], 'processed job'
assert_equal 0, Resque.info[:pending], 'pending jobs'
end

def test_job_without_args_has_no_ending_colon_in_redis_key
assert_equal 'resque-retry:GoodJob:yarrrr', GoodJob.redis_retry_key('yarrrr')
assert_equal 'resque-retry:GoodJob:foo', GoodJob.redis_retry_key('foo')
assert_equal 'resque-retry:GoodJob', GoodJob.redis_retry_key
end

def test_redis_retry_key_removes_whitespace
assert_equal 'resque-retry:GoodJob:arg1-removespace', GoodJob.redis_retry_key('arg1', 'remove space')
end
end

0 comments on commit 3a75907

Please sign in to comment.