resque-meta 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +3 -1
- data/lib/resque/plugins/meta/version.rb +1 -1
- data/lib/resque/plugins/meta.rb +3 -1
- data/lib/resque-meta.rb +1 -0
- data/test/meta_test.rb +2 -2
- data/test/redis-test.conf +2 -2
- metadata +11 -9
data/README.md
CHANGED
data/lib/resque/plugins/meta.rb
CHANGED
data/lib/resque-meta.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'resque/plugins/meta'
|
data/test/meta_test.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require File.dirname(__FILE__) + '/test_helper'
|
2
|
-
require 'resque
|
2
|
+
require 'resque-meta'
|
3
3
|
|
4
4
|
class MetaJob
|
5
5
|
extend Resque::Plugins::Meta
|
@@ -55,7 +55,7 @@ class MetaTest < Test::Unit::TestCase
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def test_meta_version
|
58
|
-
assert_equal '1.0.
|
58
|
+
assert_equal '1.0.1', Resque::Plugins::Meta::Version
|
59
59
|
end
|
60
60
|
|
61
61
|
def test_lint
|
data/test/redis-test.conf
CHANGED
@@ -128,5 +128,5 @@ glueoutputbuf yes
|
|
128
128
|
# WARNING: object sharing is experimental, don't enable this feature
|
129
129
|
# in production before of Redis 1.0-stable. Still please try this feature in
|
130
130
|
# your development environment so that we can test it better.
|
131
|
-
shareobjects no
|
132
|
-
shareobjectspoolsize 1024
|
131
|
+
# shareobjects no
|
132
|
+
# shareobjectspoolsize 1024
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-meta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 1
|
10
|
+
version: 1.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lee Marlow
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-09-10 00:00:00 -06:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -24,14 +24,13 @@ dependencies:
|
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ~>
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 31
|
30
30
|
segments:
|
31
31
|
- 1
|
32
32
|
- 8
|
33
|
-
|
34
|
-
version: 1.8.0
|
33
|
+
version: "1.8"
|
35
34
|
type: :runtime
|
36
35
|
version_requirements: *id001
|
37
36
|
description: |
|
@@ -40,8 +39,10 @@ description: |
|
|
40
39
|
|
41
40
|
For example:
|
42
41
|
|
42
|
+
require 'resque-meta'
|
43
|
+
|
43
44
|
class MyJob
|
44
|
-
extend Resque::
|
45
|
+
extend Resque::Plugins::Meta
|
45
46
|
|
46
47
|
def self.perform(meta_id, *args)
|
47
48
|
heavy_lifting
|
@@ -73,6 +74,7 @@ files:
|
|
73
74
|
- lib/resque/plugins/meta/metadata.rb
|
74
75
|
- lib/resque/plugins/meta/version.rb
|
75
76
|
- lib/resque/plugins/meta.rb
|
77
|
+
- lib/resque-meta.rb
|
76
78
|
- test/meta_test.rb
|
77
79
|
- test/redis-test.conf
|
78
80
|
- test/test_helper.rb
|