rgviz 0.23 → 0.24

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/rgviz/html_renderer.rb +5 -2
  2. metadata +3 -3
@@ -1,7 +1,8 @@
1
1
  module Rgviz
2
2
  module HtmlRenderer
3
3
  def self.render(table)
4
- @string = ''
4
+ @string = "<html>\n"
5
+ @string += "<body>\n"
5
6
  @string += "<table border=\"1\" cellpadding=\"2\" cellspacing=\"0\">\n"
6
7
 
7
8
  @string += "<tr style=\"font-weight: bold; background-color: #aaa;\">\n"
@@ -19,7 +20,9 @@ module Rgviz
19
20
  @string += "<tr>\n"
20
21
  end
21
22
 
22
- @string += "</table>\n"
23
+ @string += "</table>\n"
24
+ @string += "</body>\n"
25
+ @string += "</html>\n"
23
26
  @string
24
27
  end
25
28
  end
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rgviz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 37
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 23
9
- version: "0.23"
8
+ - 24
9
+ version: "0.24"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ary Borenszweig