resque-retry 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.0.3 (2010-06-02)
2
+
3
+ * Bugfix: Make sure that `redis_retry_key` has no whitespace.
4
+
1
5
  ## 0.0.2 (2010-05-06)
2
6
 
3
7
  * Bugfix: Were calling non-existent method to delete redis key.
@@ -55,7 +55,7 @@ module Resque
55
55
  #
56
56
  # @return [String] redis key
57
57
  def redis_retry_key(*args)
58
- ['resque-retry', name, identifier(*args)].compact.join(":")
58
+ ['resque-retry', name, identifier(*args)].compact.join(":").gsub(/\s/, '')
59
59
  end
60
60
 
61
61
  ##
data/test/retry_test.rb CHANGED
@@ -132,10 +132,14 @@ class RetryTest < Test::Unit::TestCase
132
132
  assert_equal 6, Resque.info[:processed], 'processed job'
133
133
  assert_equal 0, Resque.info[:pending], 'pending jobs'
134
134
  end
135
-
135
+
136
136
  def test_job_without_args_has_no_ending_colon_in_redis_key
137
137
  assert_equal 'resque-retry:GoodJob:yarrrr', GoodJob.redis_retry_key('yarrrr')
138
138
  assert_equal 'resque-retry:GoodJob:foo', GoodJob.redis_retry_key('foo')
139
139
  assert_equal 'resque-retry:GoodJob', GoodJob.redis_retry_key
140
140
  end
141
+
142
+ def test_redis_retry_key_removes_whitespace
143
+ assert_equal 'resque-retry:GoodJob:arg1-removespace', GoodJob.redis_retry_key('arg1', 'remove space')
144
+ end
141
145
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Luke Antins
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-06 00:00:00 +01:00
18
+ date: 2010-06-02 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency