dashing-contrib 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5fd49e8d1e1bac01968685cfc2b6138181c340ef
|
4
|
+
data.tar.gz: 9a47cffbec645497147f7c69498b9b3c6aa7cfdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7d1d088322a87f0b320537560989c87c9f84173b8316d89034ab5b1f9280f0e1ca3cd688a730aaa63b1197c5f6b4ba6ec9b5dc967f422abcaa43629d912f2b03
|
7
|
+
data.tar.gz: ebf7b8e29e77156ea9d5a04de3dff856784cb75febbb69c630b59cecf93ab3614f0fbb9ce69eed68993bbe3f70f6418264bf9dc6e985137ba06f07b2f7361c44
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ Read each individual widget documentation to use dashing-contrib built-in widget
|
|
18
18
|
## Installation
|
19
19
|
Requires Ruby >= 1.9.3. Add this line to your Dashing's dashboard Gemfile:
|
20
20
|
|
21
|
-
gem 'dashing-contrib', '~> 0.1.
|
21
|
+
gem 'dashing-contrib', '~> 0.1.6'
|
22
22
|
|
23
23
|
Update dependencies:
|
24
24
|
|
@@ -140,8 +140,8 @@ class Dashing.Rickshawgraph extends Dashing.Widget
|
|
140
140
|
}
|
141
141
|
|
142
142
|
if !!@get('stroke') then graphOptions.stroke = true
|
143
|
-
if @get('min') != null then graphOptions.min = @get('min')
|
144
|
-
if @get('max') != null then graphOptions.max = @get('max')
|
143
|
+
if @get('min') != null && @get('min') != undefined then graphOptions.min = @get('min')
|
144
|
+
if @get('max') != null && @get('max') != undefined then graphOptions.max = @get('max')
|
145
145
|
|
146
146
|
try
|
147
147
|
graph = new Rickshaw.Graph graphOptions
|
@@ -12,7 +12,7 @@ class DashboardSwitcher
|
|
12
12
|
names = $('[data-switcher-dashboards]').first().attr('data-switcher-dashboards') || ''
|
13
13
|
if names.length > 1
|
14
14
|
# Get names separated with comma or space
|
15
|
-
@dashboardNames = (name.trim() for name in names.
|
15
|
+
@dashboardNames = (name.trim() for name in names.split(/[ ,]+/).filter(Boolean))
|
16
16
|
|
17
17
|
start: (interval=60000) ->
|
18
18
|
self = @
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dashing-contrib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jing Dong
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|