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: 5820f515b1c2fd4924839d2a6f8f3039083d783d
4
- data.tar.gz: fe75d0fec65c2b6eabe3bd4af9333bfdb5471496
3
+ metadata.gz: 5fd49e8d1e1bac01968685cfc2b6138181c340ef
4
+ data.tar.gz: 9a47cffbec645497147f7c69498b9b3c6aa7cfdd
5
5
  SHA512:
6
- metadata.gz: 5dc883da911bdafd0498936ac68d80cb8aad1667c8c93f866e955a22d8be55322c4ce86b785384d2fa39e15de0167e361e8915acdc44fadec4f5e4c4969cd6d2
7
- data.tar.gz: e8881573eff68336c43051163408bc307e0eb77201b83e2aa8db489d032cf6df81e682de9e9f5ab7a130a4601ee42575dc546c4a6cb865667ccbdaae7d7d751e
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.4'
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.sub(' ', ',').split(','))
15
+ @dashboardNames = (name.trim() for name in names.split(/[ ,]+/).filter(Boolean))
16
16
 
17
17
  start: (interval=60000) ->
18
18
  self = @
@@ -1,3 +1,3 @@
1
1
  module DashingContrib
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
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.5
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-07-15 00:00:00.000000000 Z
11
+ date: 2014-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dotenv