softwear-lib 1.7.19 → 1.7.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/softwear/lib/enqueue.rb +8 -0
- data/lib/softwear/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba6e53c8b496ff26415d9abeb5914d10b4a58104
|
4
|
+
data.tar.gz: 058aa264d5c2565c150ed9535b514177166c3f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0353b213399ea2ebd26a42ebbb01221e2c1db5566d2cf155724acb9f3c9253335b816fd8a38839824e118f707f9d54636294f4f2fc3932946300e0030904458a
|
7
|
+
data.tar.gz: 31c446f380aebe301afb39b446f71e56d32b87a634f500eeb840432ac97538f59fa2c5989d84828042869787fc92d924a3f4bf3800decf72d6516ce0c6a9debb
|
data/lib/softwear/lib/enqueue.rb
CHANGED
@@ -21,12 +21,20 @@ module Softwear
|
|
21
21
|
|
22
22
|
if Rails.env.production?
|
23
23
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
24
|
+
def self.enqueue_#{method_name}(id, *args)
|
25
|
+
delay(#{options.inspect}).#{method_name}(id, *args)
|
26
|
+
end
|
27
|
+
|
24
28
|
def enqueue_#{method_name}(*args)
|
25
29
|
self.class.delay(#{options.inspect}).#{method_name}(id, *args)
|
26
30
|
end
|
27
31
|
RUBY
|
28
32
|
else
|
29
33
|
class_eval <<-RUBY, __FILE__, __LINE__ + 1
|
34
|
+
def self.enqueue_#{method_name}(id, *args)
|
35
|
+
self.#{method_name}(id, *args)
|
36
|
+
end
|
37
|
+
|
30
38
|
def enqueue_#{method_name}(*args)
|
31
39
|
self.#{method_name}(*args)
|
32
40
|
end
|
data/lib/softwear/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: softwear-lib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.7.
|
4
|
+
version: 1.7.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nigel Baillie
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|