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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 07315b0de78bb20b6131a711ea5159cb98eb5d0750a2e8887acc17f8656d95ff
4
- data.tar.gz: 93f14893f791086f48ba29c4dcf7b10f7ddb3d741a940769a11a35b3c200aef5
3
+ metadata.gz: a8db0c58e244d72b5457bdf5fcabb578e51401a7ff4103354ef06eefde1c4b3e
4
+ data.tar.gz: b5105268fdbbef71e39b2defe1eb4c75e7b613f58c6794b3488f64c0cc601d28
5
5
  SHA512:
6
- metadata.gz: 776986d66d7941661b8f9d412c745214a05e5a48db97f5a228b8ca8756c6383bb9f5938a504f9d6f5ad3c1396802e64ec63be86788cebdf298b344090d07c521
7
- data.tar.gz: 795c3049f0867afb22fd8937a6ccf86ed27b91dafe66aafd385b58c1918360b6a8ee14cbd1f2553ecb300392acfbca8c37a2a47d6cd4c5ddbe55dda3c0c1ce96
6
+ metadata.gz: 0f74f5fa4e42eae9fbad7ed40a78ccbff64175de7006b5addbc559e715687bbabbf8ed8a50ca04242d17ec22a8dc6a87b2ec54e8a4eea61decd2d9b16a7ab14d
7
+ data.tar.gz: 1fa8fef130e06e9c7de3fd97cd4f7a62878e5faeee17f16878b8c29d748e4586a300fd9ef6eb4aa5fb98c15f30bd9c1bfb6b07eeb65ac1c2ce54270776864e32
@@ -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
- return
19
+ sidekiq_loaded = true
18
20
  end
19
21
 
20
- begin
21
- require 'sucker_punch'
22
- rescue LoadError
23
- raise Services::NoBackgroundProcessorFound
24
- else
25
- include SuckerPunch::Job
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
 
@@ -1,3 +1,3 @@
1
1
  module Services
2
- VERSION = '7.3.0'.freeze
2
+ VERSION = '7.3.1'.freeze
3
3
  end
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.0
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-27 00:00:00.000000000 Z
11
+ date: 2020-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake