resque_extensions 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/resque_extensions/async_method.rb +2 -2
- data/lib/resque_extensions/version.rb +1 -1
- metadata +7 -12
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 80002f51b0e8d0497984bd9868fcd9e3b52d3f1e
|
4
|
+
data.tar.gz: 9bcb0d60827406630a66d18436d91c3852c65ac4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 630b27e23f2be9306aac3d7e020c2559ec6e14204852b4da90dc2d33fedffc4f24e7117acc0990835d44a9f8d3914b8b01832b48002a45d1831b0bef3a3b0ef3
|
7
|
+
data.tar.gz: 7268b939b048db1df7cabe598f9f5dae3030c05001c7e785ddcd9d69d306ec280498f3ed52bae73f8a9dce35ee6ce5080c146b735cb15603f04b2b05517c396f
|
@@ -73,10 +73,10 @@ module ResqueExtensions
|
|
73
73
|
data = data.split("::")
|
74
74
|
id = data.pop
|
75
75
|
class_name = data[1..-1].join("::")
|
76
|
-
data = Resque::Job.
|
76
|
+
data = Resque::Job.const_get(class_name).find(id)
|
77
77
|
# classes become strings prefixed by _Class
|
78
78
|
elsif data.to_s =~ /^#{CLASS_PREFIX}/
|
79
|
-
data = Resque::Job.
|
79
|
+
data = Resque::Job.const_get(data.gsub(/^#{CLASS_PREFIX}/,''))
|
80
80
|
end
|
81
81
|
# return data
|
82
82
|
data
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque_extensions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dan Langevin
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-10-25 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: resque
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ~>
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ~>
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -51,30 +48,28 @@ files:
|
|
51
48
|
- tmp/.gitkeep
|
52
49
|
homepage: https://github.com/dlangevin/resque_extensions
|
53
50
|
licenses: []
|
51
|
+
metadata: {}
|
54
52
|
post_install_message:
|
55
53
|
rdoc_options: []
|
56
54
|
require_paths:
|
57
55
|
- lib
|
58
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
57
|
requirements:
|
61
|
-
- -
|
58
|
+
- - '>='
|
62
59
|
- !ruby/object:Gem::Version
|
63
60
|
version: '0'
|
64
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
62
|
requirements:
|
67
|
-
- -
|
63
|
+
- - '>='
|
68
64
|
- !ruby/object:Gem::Version
|
69
65
|
version: '0'
|
70
66
|
requirements: []
|
71
67
|
rubyforge_project:
|
72
|
-
rubygems_version:
|
68
|
+
rubygems_version: 2.0.3
|
73
69
|
signing_key:
|
74
|
-
specification_version:
|
70
|
+
specification_version: 4
|
75
71
|
summary: Resque extensions to add .async
|
76
72
|
test_files:
|
77
73
|
- spec/lib/resque_extensions/async_method_spec.rb
|
78
74
|
- spec/lib/resque_extensions_spec.rb
|
79
75
|
- spec/spec_helper.rb
|
80
|
-
has_rdoc:
|