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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27544ea06692e2eac55a08fc9d042feb2e123282
4
- data.tar.gz: 1ad2039b2492c89b52d9a903412e40f4126dd88c
3
+ metadata.gz: ba6e53c8b496ff26415d9abeb5914d10b4a58104
4
+ data.tar.gz: 058aa264d5c2565c150ed9535b514177166c3f14
5
5
  SHA512:
6
- metadata.gz: a7c359eb686b1d0476e2c7d464239992a2b6a2c2c1b06eafa9a673c6bd53e50768922aef24316efd11d68ed5ab74cd3205fb6cb6de80468b66dbdc98e7f6bb20
7
- data.tar.gz: c6756682004543bb4e2d136a155eac0de129c41b773a0038b7570498ffa58253dedea715da334b35485b547b47ba30a9be17774ea4401f38e05b89acae62bc2d
6
+ metadata.gz: 0353b213399ea2ebd26a42ebbb01221e2c1db5566d2cf155724acb9f3c9253335b816fd8a38839824e118f707f9d54636294f4f2fc3932946300e0030904458a
7
+ data.tar.gz: 31c446f380aebe301afb39b446f71e56d32b87a634f500eeb840432ac97538f59fa2c5989d84828042869787fc92d924a3f4bf3800decf72d6516ce0c6a9debb
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Softwear
2
2
  module Lib
3
- VERSION = "1.7.19"
3
+ VERSION = "1.7.20"
4
4
  end
5
5
  end
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.19
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 00:00:00.000000000 Z
11
+ date: 2016-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler