sidekiq_monitor 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,8 @@ class SidekiqMonitor.Graph
|
|
12
12
|
@height = 580
|
13
13
|
@padding = [120, 50, 30, 20]
|
14
14
|
|
15
|
+
return null unless $(options.selector).length
|
16
|
+
|
15
17
|
# These correspond to Job.statuses: queued, running, complete, failed, [custom statuses]
|
16
18
|
colors = ['lightblue', 'blue', 'green', 'red', 'gray', 'purple', 'yellow']
|
17
19
|
|
@@ -26,7 +28,8 @@ class SidekiqMonitor.Graph
|
|
26
28
|
|
27
29
|
start_polling: =>
|
28
30
|
setInterval =>
|
29
|
-
|
31
|
+
if document.hasFocus()
|
32
|
+
@render()
|
30
33
|
, @options.poll_interval
|
31
34
|
|
32
35
|
render: =>
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sidekiq_monitor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-08-
|
12
|
+
date: 2013-08-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: sidekiq
|