proforma-html-renderer 1.0.0 → 1.0.1

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: f32af778c006fa93d42430822ce0bbfbf6d4c650ef9fff3ae0716db4baffb39c
4
- data.tar.gz: 9afb5f985a4a067f54c94da7d6eca1f10448263f6196445608c5e0fb5a2dab69
3
+ metadata.gz: 8e1e224c8644cde3fe550f2d4d4f6da92a65c6dca9f233e7131b42686dd74f33
4
+ data.tar.gz: abac419e39206d169a0110c592b2f536473d4f2dc3fe618158e9e41768d006b4
5
5
  SHA512:
6
- metadata.gz: 503cf0a566363fac9f096a91e71ff19e11fcfe58ef08d5c9e483aed54371bd12432d3e72f7a8db39480f68a8eab3013893a291e04bcc2fa8885c8bb1f1231117
7
- data.tar.gz: 4c5dd364b691efc4bbf3e19f524b2f1de1f687d77992d37ee790f7718cde13191150badd5558d604af41fff753bf452cb3888667d8c4fcf3b7fe74606be24101
6
+ metadata.gz: e12d0e54825e88283d14d688d8ab222eee3064eb4d3e645bb7f9c12ddc88c9ee7055708f1dde3d565a1e8abdb0e85b562b58c2bba1cfc876233dd525161c02ad
7
+ data.tar.gz: 3cafa744445dbed65639d89f46b5802db3a22d8dd2e9e6153bd22072efd228d513f1e25b5b2f198056dc5bb91cd37dd16c88eb9706e26286e837188aebc9a29f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ # 1.0.1 (June 6th, 2019)
2
+
3
+ * Added additional right padding to middle pane value cells.
4
+ * Fixed bug with Banner objects not rendering.
5
+
1
6
  # 1.0.0 (June 6th, 2019)
2
7
 
3
8
  Initial release.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- proforma-html-renderer (1.0.0)
4
+ proforma-html-renderer (1.0.1)
5
5
  proforma (~> 1)
6
6
 
7
7
  GEM
@@ -109,6 +109,3 @@ DEPENDENCIES
109
109
  rubocop (~> 0.63.1)
110
110
  simplecov (~> 0.16.1)
111
111
  simplecov-console (~> 0.4.2)
112
-
113
- BUNDLED WITH
114
- 2.0.1
@@ -9,6 +9,6 @@
9
9
 
10
10
  module Proforma
11
11
  class HtmlRenderer
12
- VERSION = '1.0.0'
12
+ VERSION = '1.0.1'
13
13
  end
14
14
  end
@@ -1765,7 +1765,8 @@ Chicago, IL 62626
1765
1765
  </tbody>
1766
1766
  </table>
1767
1767
  <br>
1768
-
1768
+ <h1>User List</h1>
1769
+
1769
1770
  <hr>
1770
1771
  <p>The following is a list of users</p>
1771
1772
 
@@ -1817,7 +1818,8 @@ Chicago, IL 62626
1817
1818
  </table>
1818
1819
 
1819
1820
  <br>
1820
-
1821
+ <h1>User Details</h1>
1822
+
1821
1823
  <hr>
1822
1824
 
1823
1825
 
@@ -1825,20 +1827,21 @@ Chicago, IL 62626
1825
1827
  <tbody>
1826
1828
  <tr>
1827
1829
  <td style="font-weight: bold;width: 25.0%">ID Number</td>
1828
- <td style="text-align: left">1</td>
1830
+ <td style="padding-right: 0px;text-align: left">1</td>
1829
1831
  <tr>
1830
1832
  <tr>
1831
1833
  <td style="font-weight: bold;width: 25.0%">First Name</td>
1832
- <td style="text-align: left">Will</td>
1834
+ <td style="padding-right: 0px;text-align: left">Will</td>
1833
1835
  <tr>
1834
1836
  <tr>
1835
1837
  <td style="font-weight: bold;width: 25.0%">Last Name</td>
1836
- <td style="text-align: left">Smith</td>
1838
+ <td style="padding-right: 0px;text-align: left">Smith</td>
1837
1839
  <tr>
1838
1840
  </tbody>
1839
1841
  </table>
1840
1842
  <br>
1841
-
1843
+ <h1>Phone Numbers</h1>
1844
+
1842
1845
 
1843
1846
 
1844
1847
  <table class="table">
@@ -1864,7 +1867,8 @@ Chicago, IL 62626
1864
1867
 
1865
1868
  <br>
1866
1869
  <br>
1867
-
1870
+ <h1>User Details</h1>
1871
+
1868
1872
  <hr>
1869
1873
 
1870
1874
 
@@ -1872,20 +1876,21 @@ Chicago, IL 62626
1872
1876
  <tbody>
1873
1877
  <tr>
1874
1878
  <td style="font-weight: bold;width: 25.0%">ID Number</td>
1875
- <td style="text-align: left">2</td>
1879
+ <td style="padding-right: 0px;text-align: left">2</td>
1876
1880
  <tr>
1877
1881
  <tr>
1878
1882
  <td style="font-weight: bold;width: 25.0%">First Name</td>
1879
- <td style="text-align: left">Martin</td>
1883
+ <td style="padding-right: 0px;text-align: left">Martin</td>
1880
1884
  <tr>
1881
1885
  <tr>
1882
1886
  <td style="font-weight: bold;width: 25.0%">Last Name</td>
1883
- <td style="text-align: left">Lawrence</td>
1887
+ <td style="padding-right: 0px;text-align: left">Lawrence</td>
1884
1888
  <tr>
1885
1889
  </tbody>
1886
1890
  </table>
1887
1891
  <br>
1888
-
1892
+ <h1>Phone Numbers</h1>
1893
+
1889
1894
 
1890
1895
 
1891
1896
  <table class="table">
@@ -1907,7 +1912,8 @@ Chicago, IL 62626
1907
1912
 
1908
1913
  <br>
1909
1914
  <br>
1910
-
1915
+ <h1>User Details</h1>
1916
+
1911
1917
  <hr>
1912
1918
 
1913
1919
 
@@ -1915,20 +1921,21 @@ Chicago, IL 62626
1915
1921
  <tbody>
1916
1922
  <tr>
1917
1923
  <td style="font-weight: bold;width: 25.0%">ID Number</td>
1918
- <td style="text-align: left">3</td>
1924
+ <td style="padding-right: 0px;text-align: left">3</td>
1919
1925
  <tr>
1920
1926
  <tr>
1921
1927
  <td style="font-weight: bold;width: 25.0%">First Name</td>
1922
- <td style="text-align: left">Will</td>
1928
+ <td style="padding-right: 0px;text-align: left">Will</td>
1923
1929
  <tr>
1924
1930
  <tr>
1925
1931
  <td style="font-weight: bold;width: 25.0%">Last Name</td>
1926
- <td style="text-align: left">Ferrell</td>
1932
+ <td style="padding-right: 0px;text-align: left">Ferrell</td>
1927
1933
  <tr>
1928
1934
  </tbody>
1929
1935
  </table>
1930
1936
  <br>
1931
-
1937
+ <h1>Phone Numbers</h1>
1938
+
1932
1939
  <p>No phone numbers.</p>
1933
1940
 
1934
1941
  <br>
@@ -1,3 +1,3 @@
1
- <% unless !object.value.to_s.empty? -%>
1
+ <% if !object.value.to_s.empty? -%>
2
2
  <h1><%= object.value %></h1>
3
3
  <% end -%>
@@ -10,10 +10,12 @@
10
10
  end.join(';')
11
11
  end
12
12
 
13
- def value_cell_style(column)
13
+ def value_cell_style(column, last)
14
14
  return unless column
15
15
 
16
- [].tap do |styles|
16
+ right_padding = last ? 0 : 20
17
+
18
+ ["padding-right: #{right_padding}px"].tap do |styles|
17
19
  styles << "text-align: #{column.align}" if !column.align.to_s.empty?
18
20
  styles << "width: #{column.value_width}%" if column.value_width
19
21
  end.join(';')
@@ -28,7 +30,7 @@
28
30
  <% column = object.columns[col_index] -%>
29
31
  <% line = column&.lines[row_index] -%>
30
32
  <td style="<%= label_cell_style(column) -%>"><%= line&.label %></td>
31
- <td style="<%= value_cell_style(column) -%>"><%= line&.value %></td>
33
+ <td style="<%= value_cell_style(column, col_index >= col_count-1) -%>"><%= line&.value %></td>
32
34
  <% end -%>
33
35
  <tr>
34
36
  <% end -%>
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew Ruggio