christiank-turntable 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/turntable.rb +4 -3
  2. metadata +1 -1
data/turntable.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  #
2
- # Turntable v1.0.0
2
+ # Turntable v1.0.1
3
3
  # Christian Koch <ckoch002@student.ucr.edu>
4
4
  #
5
5
  # Turntable is an alternative relational database for Ruby. A Turntable object
@@ -13,7 +13,7 @@ require 'ostruct'
13
13
 
14
14
  class Turntable
15
15
 
16
- VERSION = 'v1.0.0'
16
+ VERSION = 'v1.0.1'
17
17
 
18
18
  include Enumerable
19
19
  def each
@@ -69,7 +69,7 @@ class Turntable
69
69
  @table[:columns].push column_name
70
70
  @table.each { |key, value| eval("@table[key].#{column_name} = nil") if key.is_a?(Fixnum) }
71
71
  self.update
72
- @table
72
+ @table[:columns]
73
73
  end
74
74
 
75
75
  # Returns an array of all of the non-metadata rows.
@@ -140,6 +140,7 @@ class Turntable
140
140
  row.table.each_value { |value| string += "\t\t<td>#{value}</td>\n" }
141
141
  string += "\t</tr>\n"
142
142
  end
143
+
143
144
  string += '</table>'
144
145
  end
145
146
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: christiank-turntable
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Koch