jsontochart 0.0.8 → 0.0.9

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.
Files changed (2) hide show
  1. data/lib/jsontochart.rb +12 -0
  2. metadata +1 -1
data/lib/jsontochart.rb CHANGED
@@ -72,6 +72,18 @@ class JSONToChart
72
72
  tmpstring = tmpstring + dhash[key].to_s
73
73
  elsif dhash[key] == true || dhash[key] == false
74
74
  tmpstring = tmpstring + dhash[key].to_s
75
+ elsif dhash[key].is_a? Array
76
+ hold = "'"
77
+ j = 0
78
+ dhash[key].each do |i|
79
+ j++
80
+ hold = hold + i
81
+ if dhash.len > j
82
+ hold = hold + ","
83
+ end
84
+ end
85
+ hold = hold + "'"
86
+ tmpstring = tmpstring + hold
75
87
  else tmpstring = tmpstring + "'" + dhash[key].to_s + "'"
76
88
  end
77
89
  else tmpstring = tmpstring + "' '"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsontochart
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: