resque_def 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9c3404884d923b927c5b92b85eb7915a73bb6ac8
4
- data.tar.gz: 8ed1f86604aa745923a7a90dba35c6f73f49d52a
3
+ metadata.gz: c740af5705f821605373d2886f59cd9a278cb586
4
+ data.tar.gz: 773902c51beb53061d5e5a9b5586855deb96ecd5
5
5
  SHA512:
6
- metadata.gz: 7005e15765fecb153f11e9c7d823cada909bbaafd20f2bec5cec7c54ee6e37c4bcb7475085e46bd8a9f5e8f7b89595337c39c0038c0380294da84f1deb7d2767
7
- data.tar.gz: b712746e20cb800521b4e5e19b3656b57ec45b20673ff12c16cf61045b9c936309407f68a97f997bf9df75954cec466c7c3fa58589c3dafd5a5b091fef70b039
6
+ metadata.gz: 5d5fe5344b8161cdcaff3f29df7e68a1d71c0db8f7f0a4e36697d971abb2c8bee8c08d1df647e2a8a032c74d8097c98169ec752ae4bc9bdd38c5947d26633046
7
+ data.tar.gz: c56d4d5bfb77bdf62d1320a644c7ea115ae7c0a514746f1cc955d2f992d0261f357ffccdc450de487cd26eca0d1fd4988f47a5e08bbe782bcd493de4511fcb3c
@@ -1,6 +1,10 @@
1
+ ## 0.0.3
2
+
3
+ - Bugfix: fix queue name
4
+
1
5
  ## 0.0.2
2
6
 
3
- Allow early returns from blocks.
7
+ - Allow early returns from blocks.
4
8
 
5
9
  ## 0.0.1
6
10
 
@@ -31,7 +31,7 @@ module ResqueDef
31
31
  end
32
32
  end
33
33
  resque_klass.job = block
34
- resque_klass.queue = name
34
+ resque_klass.queue = resque_name
35
35
 
36
36
  # assign the object to a constant we can look up later
37
37
  resque_klass = self.const_set(resque_klass_name, resque_klass)
@@ -1,3 +1,3 @@
1
1
  module ResqueDef
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -11,6 +11,8 @@ class ResqueDefTest < Test::Unit::TestCase
11
11
 
12
12
  User.foo(1,2,3)
13
13
  User.new.foo(4,5,6)
14
+
15
+ assert_equal :foo, User::Foo.instance_variable_get("@queue")
14
16
  end
15
17
 
16
18
  def test_dequeue
@@ -23,5 +25,7 @@ class ResqueDefTest < Test::Unit::TestCase
23
25
  Foo.expects(:bar).once
24
26
  Foo.early_return_if false
25
27
  Foo.early_return_if true
28
+
29
+ assert_equal :bar, Foo::Bar.instance_variable_get("@queue")
26
30
  end
27
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: resque_def
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Schneeman