html-table 1.5.2 → 1.6.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 87568bbb38d42ec54979f7ef7eaea71e4cc239816259e57ad29adc3a1379315e
4
- data.tar.gz: 22b02c5c3d5a818f8f2671f4d3f4b8b3b0fbca163f61c0206dff1fae113ab11f
3
+ metadata.gz: c16e81619ec4b291134f688af1fdd97893bc6507f8e26872e0f24d02485b739b
4
+ data.tar.gz: 7b5b86cffbf78afeddec8636183092ccfa7ce8a4da7ddc7a50bc358456c299fb
5
5
  SHA512:
6
- metadata.gz: db5f8612ed1deb09257bcc04f35457b88d5cdb3ee1b1da08f6bde3c1a1638773aba80c7505a9df754bc38de46fff926b811e33d65b1fa2f38194d5b463743bfa
7
- data.tar.gz: ca66a02ceac6eb5c44dd1f48943a66a82552ae2a850f8b406f9768156274038185babd912066b224a87a773f6b96a28e09141fb6498314b02980ecc99083d807
6
+ metadata.gz: 638ccaafa51cd29b6933e736c0b563ba04040552d639e1fbe34846a35fec8994f900419994f698b26e65a0fd59cee590bea24392e72fea536fcadbdc66182599
7
+ data.tar.gz: 9832d0be34fc3fc21116e522c93d257f2bb24169d3ff30ae1a455e62b863eb33ba801516477ce91774e6fd64b93de9d6f3aac5f3a56bfd6a5a19d407517e9fec
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ == 1.6.0 - 16-Jan-2019
2
+ * Changed license to Apache 2.0.
3
+ * Removed strongtyping dependency, now comes bundled with a pure Ruby
4
+ version instead.
5
+ * Minor documentation updates.
6
+
1
7
  == 1.5.2 - 4-Nov-2018
2
8
  * Added metadata to gemspec.
3
9
 
data/MANIFEST CHANGED
@@ -28,6 +28,7 @@ doc/examples/simple2.rb
28
28
  doc/examples/simple3.rb
29
29
 
30
30
  lib/html-table.rb
31
+ lib/strongtyping.rb
31
32
  lib/html/attribute_handler.rb
32
33
  lib/html/body.rb
33
34
  lib/html/caption.rb
data/README CHANGED
@@ -2,7 +2,6 @@
2
2
  An interface for generating HTML Tables with Ruby.
3
3
 
4
4
  == Prerequisites
5
- * strongtyping 2.0.6 or later
6
5
  * structured_warnings 0.3.0 or later
7
6
 
8
7
  == Installation
@@ -97,10 +96,10 @@
97
96
  Holden Glova and Culley Harrelson for API suggestions and comments.
98
97
 
99
98
  == License
100
- Artistic 2.0
99
+ Apache-2.0
101
100
 
102
101
  == Copyright
103
- (C) 2003-2018 Daniel J. Berger
102
+ (C) 2003-2019 Daniel J. Berger
104
103
  All Rights Reserved
105
104
 
106
105
  == Warranty
@@ -112,8 +111,8 @@
112
111
  Daniel J. Berger
113
112
 
114
113
  == Developer's Notes
115
- Some people might be a little annoyed with the fact that I required Ryan
116
- Pavlik's strongtyping library. I'm not a big fan of strong typing myself.
114
+ Some people might be a little annoyed with the fact that I use a
115
+ strongtyping library. I'm not a big fan of strong typing myself.
117
116
  So, why did I do this?
118
117
 
119
118
  Normally when creating code, you setup your own rules as far as what is
@@ -124,9 +123,13 @@
124
123
  that you don't need the strong typing training wheels after all, right?
125
124
 
126
125
  However, HTML tables have a predefined set of rules as far as what content
127
- is valid, and where it's placed in order to be HTML 4.0 compliant. For
126
+ is valid, and where it's placed in order to be HTML compliant. For
128
127
  example, if a caption is included, it should be at the 'top' of your table
129
128
  syntax, you can only have one foot section, and so on. I therefore chose to
130
- enforce these conventions and rules in Ruby via Ryan's module. I could have
131
- lived without it, and instead chose to do a plethora of "kind_of?" checks.
132
- However, Ryan's package is both faster and required less typing on my part.
129
+ enforce these conventions and rules in Ruby via a module. I could have
130
+ lived without it, and instead chose to do a plethora of "kind_of?" checks,
131
+ but the strongtyping lib is simply more convenient all around.
132
+
133
+ UPDATE: I originally used Ryan Pavlik's strongtyping library as a dependency.
134
+ As of version 1.6.0 I now simply include a pure Ruby version with this library.
135
+ This makes it easier to work with JRuby and eliminates a dependency.
data/doc/table.rdoc CHANGED
@@ -141,10 +141,10 @@ Table#unshift(obj)
141
141
  Holden Glova and Culley Harrelson for API suggestions and comments.
142
142
 
143
143
  == License
144
- Ruby's
144
+ Apache-2.0
145
145
 
146
146
  == Copyright
147
- (C) 2003-2008 Daniel J. Berger
147
+ (C) 2003-2019 Daniel J. Berger
148
148
  All Rights Reserved
149
149
 
150
150
  == Warranty
@@ -154,5 +154,3 @@ Table#unshift(obj)
154
154
 
155
155
  == Author
156
156
  Daniel J. Berger
157
- djberg96 at nospam at gmail dot com
158
- imperator on IRC (irc.freenode.net)
data/html-table.gemspec CHANGED
@@ -2,9 +2,9 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'html-table'
5
- spec.version = '1.5.2'
5
+ spec.version = '1.6.0'
6
6
  spec.author = 'Daniel J. Berger'
7
- spec.license = 'Artistic 2.0'
7
+ spec.license = 'Apache-2.0'
8
8
  spec.email = 'djberg96@gmail.com'
9
9
  spec.homepage = 'http://github.com/djberg96/html-table'
10
10
  spec.summary = 'A Ruby interface for generating HTML tables'
@@ -14,7 +14,6 @@ Gem::Specification.new do |spec|
14
14
 
15
15
  spec.extra_rdoc_files = ['README', 'CHANGES'] + Dir['doc/*.rdoc']
16
16
 
17
- spec.add_dependency('strongtyping')
18
17
  spec.add_dependency('structured_warnings', '~> 0.3.0')
19
18
 
20
19
  spec.add_development_dependency('test-unit')
data/lib/html/table.rb CHANGED
@@ -20,7 +20,7 @@ module HTML
20
20
  include HtmlHandler
21
21
 
22
22
  # The version of the html-table library
23
- VERSION = '1.5.2'.freeze
23
+ VERSION = '1.6.0'.freeze
24
24
 
25
25
  # The indentation level for the <table> and </table> tags
26
26
  @indent_level = 0
@@ -0,0 +1,13 @@
1
+ # A pure-ruby replacement for strongtyping gem
2
+
3
+ module StrongTyping
4
+ class ArgumentTypeError < ArgumentError; end
5
+
6
+ def expect(arg, allowed_types)
7
+ return true if Array(allowed_types).any? do |klass|
8
+ arg.kind_of?(klass)
9
+ end
10
+
11
+ raise ArgumentTypeError.new("#{arg} must be of type #{allowed_types}")
12
+ end
13
+ end
data/test/test_table.rb CHANGED
@@ -16,7 +16,7 @@ class TC_HTML_Table < Test::Unit::TestCase
16
16
  end
17
17
 
18
18
  def test_version
19
- assert_equal('1.5.2', Table::VERSION)
19
+ assert_equal('1.6.0', Table::VERSION)
20
20
  assert_true(Table::VERSION.frozen?)
21
21
  end
22
22
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: html-table
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.2
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Berger
@@ -35,22 +35,8 @@ cert_chain:
35
35
  ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
36
36
  WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
37
37
  -----END CERTIFICATE-----
38
- date: 2018-11-04 00:00:00.000000000 Z
38
+ date:
39
39
  dependencies:
40
- - !ruby/object:Gem::Dependency
41
- name: strongtyping
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- type: :runtime
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
40
  - !ruby/object:Gem::Dependency
55
41
  name: structured_warnings
56
42
  requirement: !ruby/object:Gem::Requirement
@@ -104,82 +90,83 @@ extra_rdoc_files:
104
90
  - README
105
91
  - CHANGES
106
92
  - doc/table_colgroup_col.rdoc
107
- - doc/table_colgroup.rdoc
108
- - doc/table_row.rdoc
93
+ - doc/table_foot.rdoc
109
94
  - doc/table_head.rdoc
110
- - doc/attributes.rdoc
95
+ - doc/table_content.rdoc
96
+ - doc/table.rdoc
111
97
  - doc/table_row_data.rdoc
98
+ - doc/table_row.rdoc
99
+ - doc/table_row_header.rdoc
112
100
  - doc/table_body.rdoc
113
101
  - doc/table_caption.rdoc
114
- - doc/table_foot.rdoc
115
- - doc/table.rdoc
116
- - doc/table_row_header.rdoc
117
- - doc/table_content.rdoc
102
+ - doc/attributes.rdoc
103
+ - doc/table_colgroup.rdoc
118
104
  files:
119
- - html-table.gemspec
105
+ - CHANGES
120
106
  - test
107
+ - test/test_table.rb
121
108
  - test/test_col.rb
109
+ - test/test_html_handler.rb
110
+ - test/test_foot.rb
122
111
  - test/test_colgroup.rb
112
+ - test/test_attribute_handler.rb
123
113
  - test/test_data.rb
124
- - test/test_caption.rb
125
- - test/test_header.rb
126
- - test/test_head.rb
127
114
  - test/test_row.rb
128
- - test/test_attribute_handler.rb
129
- - test/test_table.rb
130
- - test/test_foot.rb
131
- - test/test_html_handler.rb
115
+ - test/test_body.rb
132
116
  - test/test_tablesection.rb
117
+ - test/test_header.rb
118
+ - test/test_caption.rb
119
+ - test/test_head.rb
133
120
  - test/test_tag_handler.rb
134
- - test/test_body.rb
135
- - CHANGES
136
- - MANIFEST
137
- - README
138
- - Rakefile
139
- - certs
140
- - certs/djberg96_pub.pem
121
+ - html-table.gemspec
141
122
  - examples
142
- - examples/simple3.rb
143
- - examples/intermediate1.rb
144
- - examples/simple2.rb
145
- - examples/intermediate3.rb
146
123
  - examples/simple1.rb
147
- - examples/intermediate2.rb
124
+ - examples/intermediate3.rb
148
125
  - examples/advanced.rb
126
+ - examples/simple3.rb
127
+ - examples/intermediate2.rb
128
+ - examples/simple2.rb
129
+ - examples/intermediate1.rb
130
+ - doc
131
+ - doc/table_colgroup_col.rdoc
132
+ - doc/table_foot.rdoc
133
+ - doc/table_head.rdoc
134
+ - doc/table_content.rdoc
135
+ - doc/table.rdoc
136
+ - doc/table_row_data.rdoc
137
+ - doc/table_row.rdoc
138
+ - doc/table_row_header.rdoc
139
+ - doc/table_body.rdoc
140
+ - doc/table_caption.rdoc
141
+ - doc/attributes.rdoc
142
+ - doc/table_colgroup.rdoc
143
+ - README
144
+ - Rakefile
145
+ - MANIFEST
149
146
  - lib
150
147
  - lib/html
151
- - lib/html/tablesection.rb
152
- - lib/html/attribute_handler.rb
153
- - lib/html/data.rb
154
- - lib/html/table.rb
155
148
  - lib/html/row.rb
156
- - lib/html/col.rb
149
+ - lib/html/attribute_handler.rb
157
150
  - lib/html/head.rb
158
- - lib/html/colgroup.rb
159
- - lib/html/caption.rb
151
+ - lib/html/table.rb
160
152
  - lib/html/html_handler.rb
161
153
  - lib/html/content.rb
154
+ - lib/html/data.rb
155
+ - lib/html/tablesection.rb
162
156
  - lib/html/foot.rb
163
- - lib/html/tag_handler.rb
164
157
  - lib/html/body.rb
158
+ - lib/html/col.rb
159
+ - lib/html/caption.rb
160
+ - lib/html/colgroup.rb
161
+ - lib/html/tag_handler.rb
165
162
  - lib/html/header.rb
166
163
  - lib/html-table.rb
167
- - doc
168
- - doc/table_colgroup_col.rdoc
169
- - doc/table_colgroup.rdoc
170
- - doc/table_row.rdoc
171
- - doc/table_head.rdoc
172
- - doc/attributes.rdoc
173
- - doc/table_row_data.rdoc
174
- - doc/table_body.rdoc
175
- - doc/table_caption.rdoc
176
- - doc/table_foot.rdoc
177
- - doc/table.rdoc
178
- - doc/table_row_header.rdoc
179
- - doc/table_content.rdoc
164
+ - lib/strongtyping.rb
165
+ - certs
166
+ - certs/djberg96_pub.pem
180
167
  homepage: http://github.com/djberg96/html-table
181
168
  licenses:
182
- - Artistic 2.0
169
+ - Apache-2.0
183
170
  metadata:
184
171
  homepage_uri: https://github.com/djberg96/html-table
185
172
  bug_tracker_uri: https://github.com/djberg96/html-table/issues
@@ -202,23 +189,22 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
189
  - !ruby/object:Gem::Version
203
190
  version: '0'
204
191
  requirements: []
205
- rubyforge_project:
206
- rubygems_version: 2.7.6
192
+ rubygems_version: 3.0.2
207
193
  signing_key:
208
194
  specification_version: 4
209
195
  summary: A Ruby interface for generating HTML tables
210
196
  test_files:
197
+ - test/test_table.rb
211
198
  - test/test_col.rb
199
+ - test/test_html_handler.rb
200
+ - test/test_foot.rb
212
201
  - test/test_colgroup.rb
202
+ - test/test_attribute_handler.rb
213
203
  - test/test_data.rb
214
- - test/test_caption.rb
215
- - test/test_header.rb
216
- - test/test_head.rb
217
204
  - test/test_row.rb
218
- - test/test_attribute_handler.rb
219
- - test/test_table.rb
220
- - test/test_foot.rb
221
- - test/test_html_handler.rb
205
+ - test/test_body.rb
222
206
  - test/test_tablesection.rb
207
+ - test/test_header.rb
208
+ - test/test_caption.rb
209
+ - test/test_head.rb
223
210
  - test/test_tag_handler.rb
224
- - test/test_body.rb
metadata.gz.sig CHANGED
@@ -1 +1,3 @@
1
- W�'p�����C0��������S�W��s�� \�Eq�� K�P��<�<j�����W��U�hvzm!<�Q��O�p&xs��A�qW����p~�*����c�a�h'�Xum�gB�D���Ɋ���ص��w�"Q���L�v�6İ�UI��B��I)׈��B�O~К� �9�z�,|�ϒ���ԭKnn.x��g�PBH�b�l=LN�n-6���$Y?w!c��Mm;�a���Y�=�c��<>I!' |�3��6����"���dP"P쪺?�� ��Ķ���_��n���Vƌ)A�<H 2�w̹K�ˬ�L��{a@S $��z�>�:6n$2p. H���~viz 7��ʺ ����)��@���k
1
+ ��OJA��P*ԕ֪t�7�ĭ�c@�J��]?��xw'���/�������g��G+�l�^��ߩ!������9~���6Lꉁp(�ڂ[;7[�b��bQ��,Of 6���imM1c_
2
+ �Zǹj���G��!���/k�<֥mLGX�]���_x�MH(,r�b�|c/t����T��0�e�z�+�4(�-�|w�+�ڳ��r6JG��ɠ��%Lq P1=o�h�OM���G/�j��h��l��
3
+ gZD�C�{J���:QZA������QG�5���J�v)���u�Xx�ſsÑI�IK��F����4�