prospector 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/prospector.rb +1 -0
- data/lib/prospector/background.rb +4 -4
- data/lib/prospector/background/coordinator.rb +2 -2
- data/lib/prospector/railtie.rb +2 -4
- data/lib/prospector/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04dadff1c44fc488a213f5bb0e7eb1bef2f8dd59
|
4
|
+
data.tar.gz: a0b60a8a7adb5e91ce7d12329a82353a2f902269
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9e9d1e4102387140a0032f644d16ee7a7651ee35a13ffa7ed6289f91c3cd22df91bde5b134cb74ac40c15a5ba48e50a090a021c4e3b01c35cabb9de3ab677d1
|
7
|
+
data.tar.gz: 2810e11fee813086da9944bc619e70eeab30287fa46fbcf94da025f0ca5d1c3b02f852b5eeee976d415249ce5b1c177c22ffa1d67a9ca64808cb988cf99c685a
|
data/lib/prospector.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
require "prospector/background/coordinator"
|
2
|
-
require "prospector/background/notify_job" if defined?(ActiveJob::Base)
|
3
|
-
require "prospector/background/notify_worker" if defined?(Sidekiq::Worker)
|
4
|
-
|
5
1
|
module Prospector
|
6
2
|
module Background
|
3
|
+
autoload :Coordinator, 'prospector/background/coordinator'
|
4
|
+
autoload :NotifyJob, 'prospector/background/notify_job'
|
5
|
+
autoload :NotifyWorker, 'prospector/background/notify_worker'
|
6
|
+
|
7
7
|
def enqueue
|
8
8
|
Coordinator.new.enqueue
|
9
9
|
end
|
@@ -19,13 +19,13 @@ module Prospector; module Background
|
|
19
19
|
end
|
20
20
|
|
21
21
|
def enqueue_via_active_job
|
22
|
-
raise UnsupportedAdapterError unless
|
22
|
+
raise UnsupportedAdapterError unless Object.const_defined?('ActiveJob::Base')
|
23
23
|
|
24
24
|
NotifyJob.perform_later
|
25
25
|
end
|
26
26
|
|
27
27
|
def enqueue_via_sidekiq
|
28
|
-
raise UnsupportedAdapterError unless
|
28
|
+
raise UnsupportedAdapterError unless Object.const_defined?('Sidekiq::Worker')
|
29
29
|
|
30
30
|
NotifyWorker.perform_async
|
31
31
|
end
|
data/lib/prospector/railtie.rb
CHANGED
data/lib/prospector/version.rb
CHANGED