html-table 1.5.2 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/CHANGES +6 -0
- data/MANIFEST +1 -0
- data/README +12 -9
- data/doc/table.rdoc +2 -4
- data/html-table.gemspec +2 -3
- data/lib/html/table.rb +1 -1
- data/lib/strongtyping.rb +13 -0
- data/test/test_table.rb +1 -1
- metadata +61 -75
- metadata.gz.sig +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c16e81619ec4b291134f688af1fdd97893bc6507f8e26872e0f24d02485b739b
|
4
|
+
data.tar.gz: 7b5b86cffbf78afeddec8636183092ccfa7ce8a4da7ddc7a50bc358456c299fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
data/MANIFEST
CHANGED
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
|
-
|
99
|
+
Apache-2.0
|
101
100
|
|
102
101
|
== Copyright
|
103
|
-
(C) 2003-
|
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
|
116
|
-
|
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
|
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
|
131
|
-
lived without it, and instead chose to do a plethora of "kind_of?" checks
|
132
|
-
|
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
|
-
|
144
|
+
Apache-2.0
|
145
145
|
|
146
146
|
== Copyright
|
147
|
-
(C) 2003-
|
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
|
+
spec.version = '1.6.0'
|
6
6
|
spec.author = 'Daniel J. Berger'
|
7
|
-
spec.license = '
|
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
data/lib/strongtyping.rb
ADDED
@@ -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
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.
|
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:
|
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/
|
108
|
-
- doc/table_row.rdoc
|
93
|
+
- doc/table_foot.rdoc
|
109
94
|
- doc/table_head.rdoc
|
110
|
-
- doc/
|
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/
|
115
|
-
- doc/
|
116
|
-
- doc/table_row_header.rdoc
|
117
|
-
- doc/table_content.rdoc
|
102
|
+
- doc/attributes.rdoc
|
103
|
+
- doc/table_colgroup.rdoc
|
118
104
|
files:
|
119
|
-
-
|
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/
|
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
|
-
-
|
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/
|
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/
|
149
|
+
- lib/html/attribute_handler.rb
|
157
150
|
- lib/html/head.rb
|
158
|
-
- lib/html/
|
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
|
-
-
|
168
|
-
-
|
169
|
-
-
|
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
|
-
-
|
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
|
-
|
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/
|
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
|
-
|
1
|
+
��O�JA��P*ԕ֪t�7�ĭ�c@�J��]?��xw'���/�������g��G+�l�^��ߩ!������9~���6Lꉁp(�ڂ[;7[�b��bQ��,Of6���i�m�M1�c�_
|
2
|
+
�Zǹj���G��!���/k�<֥mLGX�]���_x�MH(,r�b�|c/t����T��0�e�z�+�4(�-�|w�+�ڳ��r6JG��ɠ��%LqP1=o�h�OM���G/�j��h��l��
|
3
|
+
gZD�C�{J���:QZA������QG�5���J�v)���u�Xx�ſsÑI�IK��F����4�
|