rgviz 0.46 → 0.47

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/rgviz.rb +1 -0
  2. data/lib/rgviz/table.rb +4 -2
  3. metadata +1 -1
data/lib/rgviz.rb CHANGED
@@ -4,6 +4,7 @@ require File.dirname(__FILE__) + '/rgviz/parser'
4
4
  require File.dirname(__FILE__) + '/rgviz/nodes'
5
5
  require File.dirname(__FILE__) + '/rgviz/visitor'
6
6
  require File.dirname(__FILE__) + '/rgviz/table'
7
+ require File.dirname(__FILE__) + '/rgviz/table_builder'
7
8
  require File.dirname(__FILE__) + '/rgviz/csv_renderer'
8
9
  require File.dirname(__FILE__) + '/rgviz/html_renderer'
9
10
  require File.dirname(__FILE__) + '/rgviz/memory_executor'
data/lib/rgviz/table.rb CHANGED
@@ -34,8 +34,10 @@ module Rgviz
34
34
  class Row
35
35
  attr_accessor :c
36
36
 
37
- def initialize
38
- @c = []
37
+ def initialize(attributes = {})
38
+ attributes.each do |key, value|
39
+ self.send "#{key}=", value
40
+ end
39
41
  end
40
42
  end
41
43
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.46'
4
+ version: '0.47'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: