jsontochart 0.0.1 → 0.0.2

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 +3 -3
  2. metadata +2 -2
data/lib/jsontochart.rb CHANGED
@@ -7,7 +7,7 @@ class JSONToChart
7
7
 
8
8
  # Gets titles for columns and type of data then formats for table
9
9
  def columns
10
- data = JSON.parse(File.read(@input))
10
+ data = JSON.parse(@input)
11
11
  keylist = Array.new
12
12
  columnstring = "\n"
13
13
 
@@ -35,7 +35,7 @@ class JSONToChart
35
35
 
36
36
  # Gets a list of all the column titles without formatting
37
37
  def columntitles
38
- data = JSON.parse(File.read(@input))
38
+ data = JSON.parse(@input)
39
39
  keylist = Array.new
40
40
 
41
41
  data.each do |l|
@@ -52,7 +52,7 @@ class JSONToChart
52
52
 
53
53
  # Converts data in JSON to format for table
54
54
  def rows(keylist)
55
- data = JSON.parse(File.read(@input))
55
+ data = JSON.parse(@input)
56
56
  savestring = "data.addRows([\n"
57
57
  j = 0
58
58
 
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.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-22 00:00:00.000000000 Z
12
+ date: 2013-12-07 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Take JSON files and outputs html for various types of charts
15
15
  email: shidash@shidash.com