proforma-html-renderer 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ab33eba357b71be3f15129b12af800aa2f12c98fee65b4e54c74a7b48dea6d5
4
- data.tar.gz: 1158f7e28998c3284d2b7fbd7d6e8ccf120815031e3b02fde6e4ef19ef095971
3
+ metadata.gz: f6af72269e7959c26c2b7a0eb3711022ca15d7e00cbb630bf46c556a8996a8eb
4
+ data.tar.gz: 6030c3a35a1c0e442ca9d61b8de867ba6485219b95a62c7b8660dbe76de223a5
5
5
  SHA512:
6
- metadata.gz: 4a76ffed9ed52c5777890151f35182e47116fedafbe3b7f34c96564f592d7fc95a23264a2470588645d5ded548db2732c80030f97243de1ccbf08ba589129c3a
7
- data.tar.gz: a5a6ca6079d6578bb9579dacc0d8ee361de816551284d519c97876a860b5be43db8dc1a20b7e7fc8009d1fd6f938105af3a12ff1271572c928c5033ede2fd671
6
+ metadata.gz: 46a414fae042143b2e3646781984c8c17e02d235fa387270a188023621d06d1168bf10e5a7642f888159adcbc1e22dabfaa4dfb9d8b42486532498bd1f8b7c7a
7
+ data.tar.gz: 7967d41d8af81f0f569c3f970d861ff2060d8b26156a78e7a6ddab99dbab173d3536d76944e4e6fbe501e8df0b52c9fbd9f4fedc668e4c819862a3cd527bb4e6
@@ -1,4 +1,10 @@
1
- # 1.0.3 (September 9th, 2019)
1
+ # 1.0.4 (September 9th, 2019)
2
+
3
+ #### Fixes
4
+
5
+ * A table should always be rendered, even if it has no rows. This puts this library's table rendering on par with proforma-pdf-renderer, where it renders empty tables as well.
6
+
7
+ # 1.0.3 (September 9th, 2019)
2
8
 
3
9
  #### Fixes
4
10
 
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Proforma
11
11
  class HtmlRenderer
12
- VERSION = '1.0.3'
12
+ VERSION = '1.0.4'
13
13
  end
14
14
  end
@@ -1779,50 +1779,49 @@ Chicago, IL 62626
1779
1779
  <br>
1780
1780
 
1781
1781
 
1782
- <table class="table">
1783
- <thead>
1784
- <tr>
1785
- <th style="text-align: left;width: 20.0%">ID Number</th>
1786
- <th style="text-align: left;width: 20.0%">First Name</th>
1787
- <th style="text-align: left;width: 20.0%">Last Name</th>
1788
- <th style="text-align: left;width: 20.0%">Username</th>
1789
- <th style="text-align: left;width: 20.0%">Login Count</th>
1790
- </tr>
1791
- </thead>
1792
- <tbody>
1793
- <tr>
1794
- <td style="text-align: left;width: 20.0%">1</td>
1795
- <td style="text-align: left;width: 20.0%">Will</td>
1796
- <td style="text-align: left;width: 20.0%">Smith</td>
1797
- <td style="text-align: left;width: 20.0%">will_smith</td>
1798
- <td style="text-align: left;width: 20.0%">9219</td>
1799
- </tr>
1800
- <tr>
1801
- <td style="text-align: left;width: 20.0%">2</td>
1802
- <td style="text-align: left;width: 20.0%">Martin</td>
1803
- <td style="text-align: left;width: 20.0%">Lawrence</td>
1804
- <td style="text-align: left;width: 20.0%">mlaw10</td>
1805
- <td style="text-align: left;width: 20.0%">8077</td>
1806
- </tr>
1807
- <tr>
1808
- <td style="text-align: left;width: 20.0%">3</td>
1809
- <td style="text-align: left;width: 20.0%">Will</td>
1810
- <td style="text-align: left;width: 20.0%">Ferrell</td>
1811
- <td style="text-align: left;width: 20.0%">will.ferrell</td>
1812
- <td style="text-align: left;width: 20.0%">190890</td>
1813
- </tr>
1814
- </tbody>
1815
- <tfoot>
1816
- <tr>
1817
- <td style="text-align: left;width: 20.0%">Login Count Ave.</td>
1818
- <td style="text-align: left;width: 20.0%">69395.333333333333333333</td>
1819
- <td style="text-align: left;width: 20.0%"></td>
1820
- <td style="text-align: left;width: 20.0%">Login Count Sum</td>
1821
- <td style="text-align: left;width: 20.0%">208186.0</td>
1822
- </tr>
1823
- </tfoot>
1824
- </table>
1825
-
1782
+ <table class="table">
1783
+ <thead>
1784
+ <tr>
1785
+ <th style="text-align: left;width: 20.0%">ID Number</th>
1786
+ <th style="text-align: left;width: 20.0%">First Name</th>
1787
+ <th style="text-align: left;width: 20.0%">Last Name</th>
1788
+ <th style="text-align: left;width: 20.0%">Username</th>
1789
+ <th style="text-align: left;width: 20.0%">Login Count</th>
1790
+ </tr>
1791
+ </thead>
1792
+ <tbody>
1793
+ <tr>
1794
+ <td style="text-align: left;width: 20.0%">1</td>
1795
+ <td style="text-align: left;width: 20.0%">Will</td>
1796
+ <td style="text-align: left;width: 20.0%">Smith</td>
1797
+ <td style="text-align: left;width: 20.0%">will_smith</td>
1798
+ <td style="text-align: left;width: 20.0%">9219</td>
1799
+ </tr>
1800
+ <tr>
1801
+ <td style="text-align: left;width: 20.0%">2</td>
1802
+ <td style="text-align: left;width: 20.0%">Martin</td>
1803
+ <td style="text-align: left;width: 20.0%">Lawrence</td>
1804
+ <td style="text-align: left;width: 20.0%">mlaw10</td>
1805
+ <td style="text-align: left;width: 20.0%">8077</td>
1806
+ </tr>
1807
+ <tr>
1808
+ <td style="text-align: left;width: 20.0%">3</td>
1809
+ <td style="text-align: left;width: 20.0%">Will</td>
1810
+ <td style="text-align: left;width: 20.0%">Ferrell</td>
1811
+ <td style="text-align: left;width: 20.0%">will.ferrell</td>
1812
+ <td style="text-align: left;width: 20.0%">190890</td>
1813
+ </tr>
1814
+ </tbody>
1815
+ <tfoot>
1816
+ <tr>
1817
+ <td style="text-align: left;width: 20.0%">Login Count Ave.</td>
1818
+ <td style="text-align: left;width: 20.0%">69395.333333333333333333</td>
1819
+ <td style="text-align: left;width: 20.0%"></td>
1820
+ <td style="text-align: left;width: 20.0%">Login Count Sum</td>
1821
+ <td style="text-align: left;width: 20.0%">208186.0</td>
1822
+ </tr>
1823
+ </tfoot>
1824
+ </table>
1826
1825
  <br>
1827
1826
  <h1>User Details</h1>
1828
1827
 
@@ -1850,33 +1849,43 @@ Chicago, IL 62626
1850
1849
 
1851
1850
 
1852
1851
 
1853
- <table class="table">
1854
- <thead>
1855
- <tr>
1856
- <th style="text-align: left">Type</th>
1857
- <th style="text-align: left">Number</th>
1858
- </tr>
1859
- </thead>
1860
- <tbody>
1861
- <tr>
1862
- <td style="text-align: left">cell</td>
1863
- <td style="text-align: left">555-444-3333</td>
1864
- </tr>
1865
- <tr>
1866
- <td style="text-align: left">fax</td>
1867
- <td style="text-align: left">333-444-2222</td>
1868
- </tr>
1869
- </tbody>
1870
- <tfoot>
1871
- </tfoot>
1872
- </table>
1873
-
1852
+ <table class="table">
1853
+ <thead>
1854
+ <tr>
1855
+ <th style="text-align: left">Type</th>
1856
+ <th style="text-align: left">Number</th>
1857
+ </tr>
1858
+ </thead>
1859
+ <tbody>
1860
+ <tr>
1861
+ <td style="text-align: left">cell</td>
1862
+ <td style="text-align: left">555-444-3333</td>
1863
+ </tr>
1864
+ <tr>
1865
+ <td style="text-align: left">fax</td>
1866
+ <td style="text-align: left">333-444-2222</td>
1867
+ </tr>
1868
+ </tbody>
1869
+ <tfoot>
1870
+ </tfoot>
1871
+ </table>
1874
1872
  <br>
1875
1873
  <h1>Table with no rows and no empty message test</h1>
1876
1874
 
1877
1875
 
1878
1876
 
1879
-
1877
+ <table class="table">
1878
+ <thead>
1879
+ <tr>
1880
+ <th style="text-align: left">Type</th>
1881
+ <th style="text-align: left">Number</th>
1882
+ </tr>
1883
+ </thead>
1884
+ <tbody>
1885
+ </tbody>
1886
+ <tfoot>
1887
+ </tfoot>
1888
+ </table>
1880
1889
  <br>
1881
1890
  <h1>User Details</h1>
1882
1891
 
@@ -1904,29 +1913,39 @@ Chicago, IL 62626
1904
1913
 
1905
1914
 
1906
1915
 
1907
- <table class="table">
1908
- <thead>
1909
- <tr>
1910
- <th style="text-align: left">Type</th>
1911
- <th style="text-align: left">Number</th>
1912
- </tr>
1913
- </thead>
1914
- <tbody>
1915
- <tr>
1916
- <td style="text-align: left">home</td>
1917
- <td style="text-align: left">999-888-7777</td>
1918
- </tr>
1919
- </tbody>
1920
- <tfoot>
1921
- </tfoot>
1922
- </table>
1923
-
1916
+ <table class="table">
1917
+ <thead>
1918
+ <tr>
1919
+ <th style="text-align: left">Type</th>
1920
+ <th style="text-align: left">Number</th>
1921
+ </tr>
1922
+ </thead>
1923
+ <tbody>
1924
+ <tr>
1925
+ <td style="text-align: left">home</td>
1926
+ <td style="text-align: left">999-888-7777</td>
1927
+ </tr>
1928
+ </tbody>
1929
+ <tfoot>
1930
+ </tfoot>
1931
+ </table>
1924
1932
  <br>
1925
1933
  <h1>Table with no rows and no empty message test</h1>
1926
1934
 
1927
1935
 
1928
1936
 
1929
-
1937
+ <table class="table">
1938
+ <thead>
1939
+ <tr>
1940
+ <th style="text-align: left">Type</th>
1941
+ <th style="text-align: left">Number</th>
1942
+ </tr>
1943
+ </thead>
1944
+ <tbody>
1945
+ </tbody>
1946
+ <tfoot>
1947
+ </tfoot>
1948
+ </table>
1930
1949
  <br>
1931
1950
  <h1>User Details</h1>
1932
1951
 
@@ -1959,7 +1978,18 @@ Chicago, IL 62626
1959
1978
 
1960
1979
 
1961
1980
 
1962
-
1981
+ <table class="table">
1982
+ <thead>
1983
+ <tr>
1984
+ <th style="text-align: left">Type</th>
1985
+ <th style="text-align: left">Number</th>
1986
+ </tr>
1987
+ </thead>
1988
+ <tbody>
1989
+ </tbody>
1990
+ <tfoot>
1991
+ </tfoot>
1992
+ </table>
1963
1993
  </div>
1964
1994
  </body>
1965
1995
  </html>
@@ -7,34 +7,32 @@
7
7
  end
8
8
  %>
9
9
 
10
- <% if object.body.rows.any? -%>
11
- <table class="table">
12
- <thead>
13
- <% object.header.rows.each do |row| -%>
14
- <tr>
15
- <% row.cells.each do |cell| -%>
16
- <th style="<%= cell_style(cell) %>"><%= cell.text %></th>
17
- <% end -%>
18
- </tr>
19
- <% end -%>
20
- </thead>
21
- <tbody>
22
- <% object.body.rows.each do |row| -%>
23
- <tr>
24
- <% row.cells.each do |cell| -%>
25
- <td style="<%= cell_style(cell) %>"><%= cell.text %></td>
26
- <% end -%>
27
- </tr>
28
- <% end -%>
29
- </tbody>
30
- <tfoot>
31
- <% object.footer.rows.each do |row| -%>
32
- <tr>
33
- <% row.cells.each do |cell| -%>
34
- <td style="<%= cell_style(cell) %>"><%= cell.text %></td>
35
- <% end -%>
36
- </tr>
37
- <% end -%>
38
- </tfoot>
39
- </table>
40
- <% end -%>
10
+ <table class="table">
11
+ <thead>
12
+ <% object.header.rows.each do |row| -%>
13
+ <tr>
14
+ <% row.cells.each do |cell| -%>
15
+ <th style="<%= cell_style(cell) %>"><%= cell.text %></th>
16
+ <% end -%>
17
+ </tr>
18
+ <% end -%>
19
+ </thead>
20
+ <tbody>
21
+ <% object.body.rows.each do |row| -%>
22
+ <tr>
23
+ <% row.cells.each do |cell| -%>
24
+ <td style="<%= cell_style(cell) %>"><%= cell.text %></td>
25
+ <% end -%>
26
+ </tr>
27
+ <% end -%>
28
+ </tbody>
29
+ <tfoot>
30
+ <% object.footer.rows.each do |row| -%>
31
+ <tr>
32
+ <% row.cells.each do |cell| -%>
33
+ <td style="<%= cell_style(cell) %>"><%= cell.text %></td>
34
+ <% end -%>
35
+ </tr>
36
+ <% end -%>
37
+ </tfoot>
38
+ </table>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: proforma-html-renderer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ruggio