resque-serial 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/resque-serial/sync_job.rb +4 -1
- data/lib/resque-serial/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDZkMjIyMDExNTFhZTU4NWU2YTQ5NTM4Y2FiNGQ1NjJjOTliNTg2Mw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTI4NDJlZDk2YWRmMmEyZjVjYmY1MmNiYjUxYjA4NmEzYjMyNzU4ZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2I4ZGE3ZWZhZTRiNDQ5NGU5ODAyNmQ4YjRhMjFkZDUyMmRkZGM1ZDgxNTNm
|
10
|
+
MzcyZjU0MGQzMDUwMDJmY2IyY2MwNWNkNWNkMzVlZTljM2NmNTdmYzE5M2I1
|
11
|
+
MjY5YWU0MTAwMmY0NWUyYmE1Y2Y3YjlhNGUzNTRjOTNkZjY4Mzk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NjI4MzU5ZDFlNTVmNGE5ZTJkODU3MDg0YWFkMWZhNmE2ODdhYzFlMWY4OTI4
|
14
|
+
ZWI0MThiMWQwNmNhMzczMWI4YzUzNzA1ZGNlNTUwMDY0OWUyMzlhZGVlZmUw
|
15
|
+
MjBmNWQwYmQ1Y2Q3OGQ0NDU1NWM3NDVlN2U0NGU0N2I4ZDNiMTk=
|
@@ -39,7 +39,10 @@ module ResqueSerial
|
|
39
39
|
|
40
40
|
def perform(queue)
|
41
41
|
options = dequeue_payload queue
|
42
|
-
|
42
|
+
|
43
|
+
model = options[:class].constantize.unscoped.where(id: options[:id]).first
|
44
|
+
return unless model
|
45
|
+
|
43
46
|
model.scope = options.delete(:scope)
|
44
47
|
model.send options[:method], *options[:args]
|
45
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resque-serial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max Kazarin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|