jsontochart 0.1.4 → 0.1.5

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 +2 -2
  2. metadata +1 -1
@@ -67,7 +67,7 @@ class JSONToChart
67
67
  # Add data correctly for the type
68
68
  if dhash[key] != nil
69
69
  if dhash[key].is_a? String
70
- tmpstring = tmpstring + "'" + dhash[key].gsub(/'/, "\\'") + "'"
70
+ tmpstring = tmpstring + "'" + dhash[key].delete("'") + "'"
71
71
  elsif dhash[key].is_a? Integer
72
72
  tmpstring = tmpstring + dhash[key].to_s
73
73
  elsif dhash[key] == true || dhash[key] == false
@@ -77,7 +77,7 @@ class JSONToChart
77
77
  z = 0
78
78
  dhash[key].each do |i|
79
79
  z += 1
80
- hold = hold + (i.to_s).gsub(/'/, "\\'")
80
+ hold = hold + (i.to_s).delete("'")
81
81
  if j < dhash[key].length
82
82
  hold = hold + ","
83
83
  end
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.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: