services 7.3.0 → 7.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/services/asyncable.rb +11 -7
- data/lib/services/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a8db0c58e244d72b5457bdf5fcabb578e51401a7ff4103354ef06eefde1c4b3e
|
4
|
+
data.tar.gz: b5105268fdbbef71e39b2defe1eb4c75e7b613f58c6794b3488f64c0cc601d28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f74f5fa4e42eae9fbad7ed40a78ccbff64175de7006b5addbc559e715687bbabbf8ed8a50ca04242d17ec22a8dc6a87b2ec54e8a4eea61decd2d9b16a7ab14d
|
7
|
+
data.tar.gz: 1fa8fef130e06e9c7de3fd97cd4f7a62878e5faeee17f16878b8c29d748e4586a300fd9ef6eb4aa5fb98c15f30bd9c1bfb6b07eeb65ac1c2ce54270776864e32
|
data/lib/services/asyncable.rb
CHANGED
@@ -8,21 +8,25 @@ module Services
|
|
8
8
|
ASYNC_METHOD_SUFFIXES = %i(async in at).freeze
|
9
9
|
|
10
10
|
included do
|
11
|
+
sidekiq_loaded = false
|
12
|
+
|
11
13
|
begin
|
12
14
|
require 'sidekiq'
|
13
15
|
require 'sidekiq/api'
|
14
16
|
rescue LoadError
|
15
17
|
else
|
16
18
|
include Sidekiq::Worker
|
17
|
-
|
19
|
+
sidekiq_loaded = true
|
18
20
|
end
|
19
21
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
22
|
+
unless sidekiq_loaded
|
23
|
+
begin
|
24
|
+
require 'sucker_punch'
|
25
|
+
rescue LoadError
|
26
|
+
raise Services::NoBackgroundProcessorFound
|
27
|
+
else
|
28
|
+
include SuckerPunch::Job
|
29
|
+
end
|
26
30
|
end
|
27
31
|
end
|
28
32
|
|
data/lib/services/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.3.
|
4
|
+
version: 7.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Meurer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-01-
|
11
|
+
date: 2020-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|