resque-meta 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/Rakefile +0 -4
- data/lib/resque/plugins/meta/metadata.rb +2 -1
- data/lib/resque/plugins/meta/version.rb +1 -1
- data/test/meta_test.rb +1 -1
- metadata +13 -13
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -4,6 +4,7 @@ module Resque
|
|
4
4
|
module Plugins
|
5
5
|
module Meta
|
6
6
|
class Metadata
|
7
|
+
include Resque::Helpers
|
7
8
|
attr_reader :job_class, :meta_id, :data, :enqueued_at, :expire_in, :before_finish_expire_in
|
8
9
|
|
9
10
|
def initialize(data_hash)
|
@@ -13,7 +14,7 @@ module Resque
|
|
13
14
|
@enqueued_at = from_time_format_str('enqueued_at')
|
14
15
|
@job_class = data_hash['job_class']
|
15
16
|
if @job_class.is_a?(String)
|
16
|
-
@job_class =
|
17
|
+
@job_class = constantize(data_hash['job_class'])
|
17
18
|
else
|
18
19
|
data_hash['job_class'] = @job_class.to_s
|
19
20
|
end
|
data/test/meta_test.rb
CHANGED
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: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 2.0.
|
9
|
+
- 1
|
10
|
+
version: 2.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lee Marlow
|
@@ -15,11 +15,12 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-11-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: resque
|
22
|
-
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
23
24
|
none: false
|
24
25
|
requirements:
|
25
26
|
- - ~>
|
@@ -30,11 +31,11 @@ dependencies:
|
|
30
31
|
- 8
|
31
32
|
version: "1.8"
|
32
33
|
type: :runtime
|
33
|
-
|
34
|
-
prerelease: false
|
34
|
+
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: rake
|
37
|
-
|
37
|
+
prerelease: false
|
38
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
39
|
none: false
|
39
40
|
requirements:
|
40
41
|
- - ~>
|
@@ -46,11 +47,11 @@ dependencies:
|
|
46
47
|
- 2
|
47
48
|
version: 0.9.2
|
48
49
|
type: :development
|
49
|
-
|
50
|
-
prerelease: false
|
50
|
+
version_requirements: *id002
|
51
51
|
- !ruby/object:Gem::Dependency
|
52
52
|
name: json
|
53
|
-
|
53
|
+
prerelease: false
|
54
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
54
55
|
none: false
|
55
56
|
requirements:
|
56
57
|
- - ">="
|
@@ -60,8 +61,7 @@ dependencies:
|
|
60
61
|
- 0
|
61
62
|
version: "0"
|
62
63
|
type: :development
|
63
|
-
|
64
|
-
prerelease: false
|
64
|
+
version_requirements: *id003
|
65
65
|
description: |
|
66
66
|
A Resque plugin. If you want to be able to add metadata for a job
|
67
67
|
to track anything you want, extend it with this module.
|