a_la_chart 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/lib/a_la_chart.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module ALaChart
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
4
4
 
5
5
  require File.join(File.dirname(__FILE__), 'a_la_chart', 'config')
@@ -65,7 +65,12 @@ module ALaChartHelper
65
65
 
66
66
  def decode_options(options_str)
67
67
  hash = Hash[ *(options_str.to_s.split(/[|~]/)) ]
68
- hash.each{|k,v| hash[CGI::unescape(k.to_s).to_sym] = CGI::unescape(hash.delete(k.to_s)) }
68
+ hash.each{|k,v|
69
+ val = hash.delete(k)
70
+ if val && k.class == String && !k.blank?
71
+ hash[CGI::unescape(k).to_sym] = CGI::unescape(val.to_s)
72
+ end
73
+ }
69
74
  hash
70
75
  end
71
76
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: a_la_chart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Redmond