html-table 1.5.0 → 1.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +5 -5
  2. checksums.yaml.gz.sig +3 -1
  3. data.tar.gz.sig +0 -0
  4. data/CHANGES +159 -155
  5. data/MANIFEST +59 -59
  6. data/README +132 -132
  7. data/certs/djberg96_pub.pem +22 -17
  8. data/doc/attributes.rdoc +143 -143
  9. data/doc/table.rdoc +158 -158
  10. data/doc/table_body.rdoc +9 -9
  11. data/doc/table_caption.rdoc +9 -9
  12. data/doc/table_colgroup.rdoc +8 -8
  13. data/doc/table_colgroup_col.rdoc +9 -9
  14. data/doc/table_content.rdoc +15 -15
  15. data/doc/table_foot.rdoc +8 -8
  16. data/doc/table_head.rdoc +11 -11
  17. data/doc/table_row.rdoc +105 -105
  18. data/doc/table_row_data.rdoc +92 -92
  19. data/doc/table_row_header.rdoc +7 -7
  20. data/examples/advanced.rb +128 -128
  21. data/examples/intermediate1.rb +72 -72
  22. data/examples/intermediate2.rb +62 -62
  23. data/examples/intermediate3.rb +46 -46
  24. data/examples/simple1.rb +39 -39
  25. data/examples/simple2.rb +47 -47
  26. data/examples/simple3.rb +41 -41
  27. data/html-table.gemspec +28 -28
  28. data/lib/html-table.rb +1 -1
  29. data/lib/html/attribute_handler.rb +403 -403
  30. data/lib/html/body.rb +37 -37
  31. data/lib/html/caption.rb +49 -49
  32. data/lib/html/col.rb +41 -41
  33. data/lib/html/colgroup.rb +113 -113
  34. data/lib/html/content.rb +18 -18
  35. data/lib/html/data.rb +69 -69
  36. data/lib/html/foot.rb +49 -49
  37. data/lib/html/head.rb +49 -49
  38. data/lib/html/header.rb +65 -65
  39. data/lib/html/html_handler.rb +120 -120
  40. data/lib/html/row.rb +188 -188
  41. data/lib/html/table.rb +323 -323
  42. data/lib/html/tablesection.rb +48 -48
  43. data/lib/html/tag_handler.rb +121 -121
  44. data/test/test_attribute_handler.rb +361 -361
  45. data/test/test_body.rb +87 -87
  46. data/test/test_caption.rb +80 -80
  47. data/test/test_col.rb +40 -40
  48. data/test/test_colgroup.rb +89 -89
  49. data/test/test_data.rb +77 -77
  50. data/test/test_foot.rb +111 -111
  51. data/test/test_head.rb +104 -104
  52. data/test/test_header.rb +77 -77
  53. data/test/test_html_handler.rb +37 -37
  54. data/test/test_row.rb +141 -141
  55. data/test/test_table.rb +159 -158
  56. data/test/test_tablesection.rb +42 -42
  57. data/test/test_tag_handler.rb +90 -90
  58. metadata +25 -20
  59. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: ccb27641d8cb2dad479a7d751a9c16357a4d94da
4
- data.tar.gz: 765a7761cf6febab3b9405707bded64dedecbfc9
2
+ SHA256:
3
+ metadata.gz: a908e60fdbe3fecf3fa94be736696edc9c36005ae9df7fe118d2380992b43e5a
4
+ data.tar.gz: bc0f0554f82383e7e63b0e47fd786e8159f27cbe2720f4658b184410fb723e6d
5
5
  SHA512:
6
- metadata.gz: b8306683f34b913bb32df5c8f30eb44fe9e7b9a7b7e25d0f3700e529a3d52726719371388c06ea94ca081adbb54b852572bd8a73dca5f92f1b3a56de61892c10
7
- data.tar.gz: 4dd31ee6569962dcf41aed60b07886e109a3868353461de3481b56f6ff3b7c9940a809adbdf22200bbf9fb95f52b4eef3bfca30050654be52371ed3ea3a96fd7
6
+ metadata.gz: 7527011bee9e70bbe0ea903c5762d7dc0bc7ab5a39c6afa04c4668646798766867aa8241289bbf2e72254cce392ed4427692e8c7c3f9dd13d4583a1ca5869096
7
+ data.tar.gz: 64e8a5a420e2cb421ecd7ddfca46b7f19f963b3a1de2746a1fa76f7b9028b67c60224c32a0fe319150efecba870e699ca28c60acb0beec3c82919e81acf097ba
@@ -1 +1,2 @@
1
- `^�C:�\��9ien㡻��/&�f,��h��$��"a6���K�O��Pi0c�z�Mޝ̿"�%�QG�:�#����� j@?�2?��`
1
+ )���b���G@�O>:�m|�0ҟ]J_l/������u)�z��/�7Z���kr`�����g��޸e���`Š�v>�� Yn��
2
+ �ݳ��/+H�a��{ov�'_�wѫ��&NĹsm, nL��!�����z�Q@�w���4q&�S��&6Á���ŝ�m�b��UP=
3
+ �@���9�a-ď�^�u9�'rH���gOqZ�?�p�Fe�s.��"�������n�rN����c��Pei�6������w�B\߷Q��u{��3�
data.tar.gz.sig CHANGED
Binary file
data/CHANGES CHANGED
@@ -1,155 +1,159 @@
1
- == 1.5.0 - 29-Mar-2017
2
- * Updated the structured_warnings dependency to 0.3.0, and modified the
3
- warning classes to subclass the new warning types.
4
- * The VERSION constant is now frozen.
5
- * Updated cert file.
6
-
7
- == 1.4.2 - 8-Apr-2016
8
- * This gem is now signed.
9
- * Added the html-table.rb file for convenience.
10
- * Updated the gem related rake tasks.
11
- * Corrections to the README.
12
-
13
- == 1.4.1 - 8-Nov-2014
14
- * Minor updates to Rakefile and gemspec.
15
- * Use require_relative where appropriate.
16
-
17
- == 1.4.0 - 28-Aug-2013
18
- * The HTML::Table constructor now accepts an optional hash of options.
19
- If present, they are treated as table attributes.
20
- * Some Rakefile and gemspec updates.
21
- * Minor test file cleanup.
22
-
23
- == 1.3.6 - 19-Sep-2011
24
- * Fixes header.rb, data.rb and caption.rb for Ruby 1.9.
25
-
26
- == 1.3.5 - 1-Sep-2011
27
- * Refactored the Rakefile. Removed an old install task, reworked the
28
- gem tasks and added a default task.
29
- * Minor updates to the gemspec.
30
-
31
- == 1.3.4 - 29-Sep-2009
32
- * The test-unit library is now a development dependency instead of a
33
- standard dependency.
34
- * Removed all load path mangling.
35
- * License changed to Artistic 2.0.
36
- * Updated the gemspec description, added a license.
37
-
38
- == 1.3.3 - 5-Feb-2009
39
- * Added structured_warnings as a requirement. The non standard tags now
40
- raise a NonStandardExtensionWarning. These are now _always_ raised whenever
41
- used (instead of only in $VERBOSE mode), but the warning can be disabled as
42
- you see fit. See the documentation on structured_warnings for more details.
43
- * Added test-unit 2.x as a requirement.
44
- * Refactored and renamed the tests.
45
- * The gem now includes the example files.
46
- * Added additional rake tasks for the sake of testing individual portions
47
- of the html-table library instead of the all or nothing approach I had
48
- before.
49
- * Added rake tasks for running the example programs.
50
-
51
- == 1.3.2 - 15-Jul-2008
52
- * Added to_s and to_str aliases for the html method for all classes.
53
- * Some documentation updates.
54
- * Removed unnecessary presetup code from the test files that was no longer
55
- necessary thanks to Rake.
56
- * Removed the ts_all.rb file. It was no longer necessary thanks to Rake.
57
-
58
- == 1.3.1 - 8-Feb-2008
59
- * Fully qualified the HTML::Table class in the HTMLHandler module. This fix
60
- eliminates the need to 'include HTML' to actually get some code to work
61
- properly. Thanks go to Jos Backus for the spot and patch.
62
- * Added a Rakefile with tasks for testing and installation.
63
- * Removed the install.rb file. That's now handled by the Rakefile.
64
- * Cleaned up some warnings in the AttributeHandler and TagHandler modules.
65
- * Updated the MANIFEST and README files.
66
-
67
- == 1.3.0 - 2-Aug-2006
68
- * Added support for DSI style syntax, i.e. the ability to omit the explicit
69
- receiver in block form.
70
- * The content method now creates a Table::Content object behind the scenes
71
- (a subclass of String) and allows physical tags to generated on the fly
72
- via a block.
73
- * Added support for physical tags for content, e.g. <b>, <i> etc. See the
74
- documentation for more details.
75
- * Added the 'style' and 'class_' attribute handlers for you CSS lovers.
76
- * Added the 'data' alias for the 'content' method.
77
- * Added the 'header' method to the Table class so that you can explicitly
78
- generate <th> content instead of <td> content if you prefer.
79
- * The .html method now accepts an optional boolean that can be used to
80
- disable formatting. If set to true, the output will not include newlines
81
- or spaces between the tags (i.e. it will give you a single long string).
82
- * Some comment additions and tweaks.
83
-
84
- == 1.2.2 - 17-Jun-2005
85
- * Each class now defines its own content= method (rather than a generic module
86
- method that handles it). Internal change only.
87
- * The Head, Foot and Body classes now use the inherited version of content=
88
- method, instead of defining them individually (which they should have
89
- been doing all along).
90
- * Made the README and CHANGES file rdoc friendly.
91
- * Removed the .rd and html files under the 'doc' directory. All of those
92
- files have been made rdoc friendly and been given .rdoc extensions.
93
- * Some $LOAD_PATH setup changes for the test suite.
94
-
95
- == 1.2.1 - 26-Oct-2004
96
- * Documentation additions to make the code rdoc friendly.
97
- * Minor typo/bug fix in the background method of the AttributeHandler module.
98
- * Added an assertion to the test suite, mostly to make tc_all.rb work
99
- correctly (one test was causing other tests to fail due to a global
100
- setting that was made in a previous test).
101
-
102
- == 1.2.0 - 8-Aug-2004
103
- * Added the global_end_tags= class method for the Table class. This allows
104
- you to configure you want end tags or not for all classes, rather than
105
- having to configure each class individually. Note that classes which
106
- require end tags are unaffected.
107
- * Added handling for '<<' for those classes where it was appropriate (i.e.
108
- any class that also used 'push').
109
- * Minor update in the Table::Row#unshift method.
110
- * Modified the border= method in the AttributeHandler module to accept true
111
- or false as arguments. I had forgotten that you could specify 'border' as
112
- an attribute without a value.
113
- * Yet more tests.
114
-
115
- == 1.1.0 - 6-Aug-2004
116
- * Modified the constructors for all of the classes that can contain content
117
- to accept an optional argument. If present it is assumed to be content.
118
- * Fixed a bug/feature in Table::Row where it didn't allow you to add or
119
- delete Fixnums. Henceforth, Fixnum's are stringified.
120
- * The Table::ColGroup class no longer has the content or content= methods.
121
- This was illegal in 1.0.0 as well but it now raises a NoMethodError instead.
122
- * Added many more tests, including tests for attribute handlers and html
123
- handlers.
124
- * Made the modify_html method in the HtmlHandler module private. This should
125
- have no affect on your code.
126
- * Added another simple sample program under doc/examples.
127
- * Documentation updates.
128
-
129
- == 1.0.0 - 23-May-2004
130
- * No API changes - same as 0.0.4 but now officially declared "stable". The
131
- only change that was made is that each class is now in its own file.
132
-
133
- == 0.0.4 - 16-May-2004 (Beta4)
134
- * Prerequisites now include Ruby 1.8.0 or later and the StrongTyping package from
135
- Ryan Pavlik.
136
- * More stringent type checking added using the StrongTyping package.
137
- * Bug in Table::Foot class corrected.
138
- * Minor name change for included modules (AttributeHandler, HtmlHandler).
139
- * Many more tests added
140
-
141
- == 0.0.3 - 9-Jul-2003 (Beta3)
142
- * Added html_case() class method for those who want their HTML tags in upper
143
- case
144
- * Fixed up the docs, added the html docs to the core distro
145
- * Added some config info to table.rb so that this package works as expected
146
- after installation
147
-
148
- == 0.0.2 - 5-Jul-2003 (Beta2)
149
- * API completely rewritten
150
- * End tags and indentation level now configurable
151
- * Added all remaining tag types (caption, colgroup, col, tbody, tfoot and
152
- thead)
153
-
154
- == 0.0.1 11-Jun-2003 (Beta1)
155
- * Initial Release
1
+ == 1.5.1 - 31-Mar-2018
2
+ * Fixed deprecation warnings.
3
+ * Updated cert.
4
+
5
+ == 1.5.0 - 29-Mar-2017
6
+ * Updated the structured_warnings dependency to 0.3.0, and modified the
7
+ warning classes to subclass the new warning types.
8
+ * The VERSION constant is now frozen.
9
+ * Updated cert file.
10
+
11
+ == 1.4.2 - 8-Apr-2016
12
+ * This gem is now signed.
13
+ * Added the html-table.rb file for convenience.
14
+ * Updated the gem related rake tasks.
15
+ * Corrections to the README.
16
+
17
+ == 1.4.1 - 8-Nov-2014
18
+ * Minor updates to Rakefile and gemspec.
19
+ * Use require_relative where appropriate.
20
+
21
+ == 1.4.0 - 28-Aug-2013
22
+ * The HTML::Table constructor now accepts an optional hash of options.
23
+ If present, they are treated as table attributes.
24
+ * Some Rakefile and gemspec updates.
25
+ * Minor test file cleanup.
26
+
27
+ == 1.3.6 - 19-Sep-2011
28
+ * Fixes header.rb, data.rb and caption.rb for Ruby 1.9.
29
+
30
+ == 1.3.5 - 1-Sep-2011
31
+ * Refactored the Rakefile. Removed an old install task, reworked the
32
+ gem tasks and added a default task.
33
+ * Minor updates to the gemspec.
34
+
35
+ == 1.3.4 - 29-Sep-2009
36
+ * The test-unit library is now a development dependency instead of a
37
+ standard dependency.
38
+ * Removed all load path mangling.
39
+ * License changed to Artistic 2.0.
40
+ * Updated the gemspec description, added a license.
41
+
42
+ == 1.3.3 - 5-Feb-2009
43
+ * Added structured_warnings as a requirement. The non standard tags now
44
+ raise a NonStandardExtensionWarning. These are now _always_ raised whenever
45
+ used (instead of only in $VERBOSE mode), but the warning can be disabled as
46
+ you see fit. See the documentation on structured_warnings for more details.
47
+ * Added test-unit 2.x as a requirement.
48
+ * Refactored and renamed the tests.
49
+ * The gem now includes the example files.
50
+ * Added additional rake tasks for the sake of testing individual portions
51
+ of the html-table library instead of the all or nothing approach I had
52
+ before.
53
+ * Added rake tasks for running the example programs.
54
+
55
+ == 1.3.2 - 15-Jul-2008
56
+ * Added to_s and to_str aliases for the html method for all classes.
57
+ * Some documentation updates.
58
+ * Removed unnecessary presetup code from the test files that was no longer
59
+ necessary thanks to Rake.
60
+ * Removed the ts_all.rb file. It was no longer necessary thanks to Rake.
61
+
62
+ == 1.3.1 - 8-Feb-2008
63
+ * Fully qualified the HTML::Table class in the HTMLHandler module. This fix
64
+ eliminates the need to 'include HTML' to actually get some code to work
65
+ properly. Thanks go to Jos Backus for the spot and patch.
66
+ * Added a Rakefile with tasks for testing and installation.
67
+ * Removed the install.rb file. That's now handled by the Rakefile.
68
+ * Cleaned up some warnings in the AttributeHandler and TagHandler modules.
69
+ * Updated the MANIFEST and README files.
70
+
71
+ == 1.3.0 - 2-Aug-2006
72
+ * Added support for DSI style syntax, i.e. the ability to omit the explicit
73
+ receiver in block form.
74
+ * The content method now creates a Table::Content object behind the scenes
75
+ (a subclass of String) and allows physical tags to generated on the fly
76
+ via a block.
77
+ * Added support for physical tags for content, e.g. <b>, <i> etc. See the
78
+ documentation for more details.
79
+ * Added the 'style' and 'class_' attribute handlers for you CSS lovers.
80
+ * Added the 'data' alias for the 'content' method.
81
+ * Added the 'header' method to the Table class so that you can explicitly
82
+ generate <th> content instead of <td> content if you prefer.
83
+ * The .html method now accepts an optional boolean that can be used to
84
+ disable formatting. If set to true, the output will not include newlines
85
+ or spaces between the tags (i.e. it will give you a single long string).
86
+ * Some comment additions and tweaks.
87
+
88
+ == 1.2.2 - 17-Jun-2005
89
+ * Each class now defines its own content= method (rather than a generic module
90
+ method that handles it). Internal change only.
91
+ * The Head, Foot and Body classes now use the inherited version of content=
92
+ method, instead of defining them individually (which they should have
93
+ been doing all along).
94
+ * Made the README and CHANGES file rdoc friendly.
95
+ * Removed the .rd and html files under the 'doc' directory. All of those
96
+ files have been made rdoc friendly and been given .rdoc extensions.
97
+ * Some $LOAD_PATH setup changes for the test suite.
98
+
99
+ == 1.2.1 - 26-Oct-2004
100
+ * Documentation additions to make the code rdoc friendly.
101
+ * Minor typo/bug fix in the background method of the AttributeHandler module.
102
+ * Added an assertion to the test suite, mostly to make tc_all.rb work
103
+ correctly (one test was causing other tests to fail due to a global
104
+ setting that was made in a previous test).
105
+
106
+ == 1.2.0 - 8-Aug-2004
107
+ * Added the global_end_tags= class method for the Table class. This allows
108
+ you to configure you want end tags or not for all classes, rather than
109
+ having to configure each class individually. Note that classes which
110
+ require end tags are unaffected.
111
+ * Added handling for '<<' for those classes where it was appropriate (i.e.
112
+ any class that also used 'push').
113
+ * Minor update in the Table::Row#unshift method.
114
+ * Modified the border= method in the AttributeHandler module to accept true
115
+ or false as arguments. I had forgotten that you could specify 'border' as
116
+ an attribute without a value.
117
+ * Yet more tests.
118
+
119
+ == 1.1.0 - 6-Aug-2004
120
+ * Modified the constructors for all of the classes that can contain content
121
+ to accept an optional argument. If present it is assumed to be content.
122
+ * Fixed a bug/feature in Table::Row where it didn't allow you to add or
123
+ delete Fixnums. Henceforth, Fixnum's are stringified.
124
+ * The Table::ColGroup class no longer has the content or content= methods.
125
+ This was illegal in 1.0.0 as well but it now raises a NoMethodError instead.
126
+ * Added many more tests, including tests for attribute handlers and html
127
+ handlers.
128
+ * Made the modify_html method in the HtmlHandler module private. This should
129
+ have no affect on your code.
130
+ * Added another simple sample program under doc/examples.
131
+ * Documentation updates.
132
+
133
+ == 1.0.0 - 23-May-2004
134
+ * No API changes - same as 0.0.4 but now officially declared "stable". The
135
+ only change that was made is that each class is now in its own file.
136
+
137
+ == 0.0.4 - 16-May-2004 (Beta4)
138
+ * Prerequisites now include Ruby 1.8.0 or later and the StrongTyping package from
139
+ Ryan Pavlik.
140
+ * More stringent type checking added using the StrongTyping package.
141
+ * Bug in Table::Foot class corrected.
142
+ * Minor name change for included modules (AttributeHandler, HtmlHandler).
143
+ * Many more tests added
144
+
145
+ == 0.0.3 - 9-Jul-2003 (Beta3)
146
+ * Added html_case() class method for those who want their HTML tags in upper
147
+ case
148
+ * Fixed up the docs, added the html docs to the core distro
149
+ * Added some config info to table.rb so that this package works as expected
150
+ after installation
151
+
152
+ == 0.0.2 - 5-Jul-2003 (Beta2)
153
+ * API completely rewritten
154
+ * End tags and indentation level now configurable
155
+ * Added all remaining tag types (caption, colgroup, col, tbody, tfoot and
156
+ thead)
157
+
158
+ == 0.0.1 11-Jun-2003 (Beta1)
159
+ * Initial Release
data/MANIFEST CHANGED
@@ -1,59 +1,59 @@
1
- MANIFEST
2
- CHANGES
3
- README
4
- Rakefile
5
- html-table.gemspec
6
-
7
- certs/djberg96_pub.pem
8
-
9
- doc/attributes.rdoc
10
- doc/table_body.rdoc
11
- doc/table_caption.rdoc
12
- doc/table_content.rdoc
13
- doc/table_colgroup.rdoc
14
- doc/table_colgroup_col.rdoc
15
- doc/table_foot.rdoc
16
- doc/table_head.rdoc
17
- doc/table_row_data.rdoc
18
- doc/table_row_header.rdoc
19
- doc/table_row.rdoc
20
- doc/table.rdoc
21
-
22
- doc/examples/advanced.rb
23
- doc/examples/intermediate1.rb
24
- doc/examples/intermediate2.rb
25
- doc/examples/intermediate3.rb
26
- doc/examples/simple1.rb
27
- doc/examples/simple2.rb
28
- doc/examples/simple3.rb
29
-
30
- lib/html-table.rb
31
- lib/html/attribute_handler.rb
32
- lib/html/body.rb
33
- lib/html/caption.rb
34
- lib/html/col.rb
35
- lib/html/colgroup.rb
36
- lib/html/content.rb
37
- lib/html/data.rb
38
- lib/html/foot.rb
39
- lib/html/head.rb
40
- lib/html/header.rb
41
- lib/html/html_handler.rb
42
- lib/html/row.rb
43
- lib/html/table.rb
44
- lib/html/tablesection.rb
45
- lib/html/tag_handler.rb
46
-
47
- test/test_attribute_handler.rb
48
- test/test_body.rb
49
- test/test_caption.rb
50
- test/test_col.rb
51
- test/test_colgroup.rb
52
- test/test_data.rb
53
- test/test_head.rb
54
- test/test_header.rb
55
- test/test_html_handler.rb
56
- test/test_row.rb
57
- test/test_table.rb
58
- test/test_tablesection.rb
59
- test/test_tag_handler.rb
1
+ MANIFEST
2
+ CHANGES
3
+ README
4
+ Rakefile
5
+ html-table.gemspec
6
+
7
+ certs/djberg96_pub.pem
8
+
9
+ doc/attributes.rdoc
10
+ doc/table_body.rdoc
11
+ doc/table_caption.rdoc
12
+ doc/table_content.rdoc
13
+ doc/table_colgroup.rdoc
14
+ doc/table_colgroup_col.rdoc
15
+ doc/table_foot.rdoc
16
+ doc/table_head.rdoc
17
+ doc/table_row_data.rdoc
18
+ doc/table_row_header.rdoc
19
+ doc/table_row.rdoc
20
+ doc/table.rdoc
21
+
22
+ doc/examples/advanced.rb
23
+ doc/examples/intermediate1.rb
24
+ doc/examples/intermediate2.rb
25
+ doc/examples/intermediate3.rb
26
+ doc/examples/simple1.rb
27
+ doc/examples/simple2.rb
28
+ doc/examples/simple3.rb
29
+
30
+ lib/html-table.rb
31
+ lib/html/attribute_handler.rb
32
+ lib/html/body.rb
33
+ lib/html/caption.rb
34
+ lib/html/col.rb
35
+ lib/html/colgroup.rb
36
+ lib/html/content.rb
37
+ lib/html/data.rb
38
+ lib/html/foot.rb
39
+ lib/html/head.rb
40
+ lib/html/header.rb
41
+ lib/html/html_handler.rb
42
+ lib/html/row.rb
43
+ lib/html/table.rb
44
+ lib/html/tablesection.rb
45
+ lib/html/tag_handler.rb
46
+
47
+ test/test_attribute_handler.rb
48
+ test/test_body.rb
49
+ test/test_caption.rb
50
+ test/test_col.rb
51
+ test/test_colgroup.rb
52
+ test/test_data.rb
53
+ test/test_head.rb
54
+ test/test_header.rb
55
+ test/test_html_handler.rb
56
+ test/test_row.rb
57
+ test/test_table.rb
58
+ test/test_tablesection.rb
59
+ test/test_tag_handler.rb