Spreadsheet-HTML 0.0.3 → 0.0.4
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 +4 -4
- data/Changes +3 -0
- data/Spreadsheet-HTML.gemspec +1 -0
- data/doc/HTML.rdoc +8 -0
- data/lib/Spreadsheet/HTML/version.rb +1 -1
- data/readme.md +6 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e87db33e8727739ce5668df43966c13b234f225
|
4
|
+
data.tar.gz: 6b0159e16c415c243f2126d949cb09340416d3b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 078110fcafb731b0a6ee6e50b434be8f898941e7f6f708a130c46c5d0d2e3286306fc4825953edba38259e41341f8afc4b68238b27e1dcfe752a814677568f3a
|
7
|
+
data.tar.gz: 860d40235b72163de7cfddcb6f3eefbb37e6e82e673582af685774134a583ac8a2dc0423af491e6b418117da1445632d30a20ae228125b8aed1096140eed79c0
|
data/Changes
CHANGED
data/Spreadsheet-HTML.gemspec
CHANGED
@@ -17,6 +17,7 @@ Gem::Specification.new do |spec|
|
|
17
17
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
|
+
spec.extra_rdoc_files = Dir['doc/*.rdoc']
|
20
21
|
|
21
22
|
spec.add_development_dependency "bundler", "~> 1.3"
|
22
23
|
spec.add_development_dependency 'rake'
|
data/doc/HTML.rdoc
CHANGED
@@ -75,6 +75,10 @@ level
|
|
75
75
|
empty
|
76
76
|
String. Render any empty cells with this value. Defaults to &nbps;
|
77
77
|
|
78
|
+
encodes
|
79
|
+
Boolean. Uses htmlentities rubygem to encode any HTML entities found in a cell's data.
|
80
|
+
(TODO: this value will be a string containing the characters to HTML encode.)
|
81
|
+
|
78
82
|
matrix
|
79
83
|
Boolean. Render the headings row with only <td> tags, no <th> tags.
|
80
84
|
|
@@ -90,6 +94,10 @@ flip
|
|
90
94
|
Flips the table horizontally from the perspective of the headings "row" by
|
91
95
|
negating the value of theta.
|
92
96
|
|
97
|
+
pinhead
|
98
|
+
Works in conjunction with theta to ensure reporting readability. Without it, south() and east()
|
99
|
+
would have data cells arranged in reverse order.
|
100
|
+
|
93
101
|
== Dynamic Parameters
|
94
102
|
There currently are no Dynamic Parameters, but they will be implemented soon enough.
|
95
103
|
They will allow the client to modify headings by name and row/columns by their indices.
|
data/readme.md
CHANGED
@@ -17,9 +17,13 @@ puts generator.generate( data )
|
|
17
17
|
puts generator.generate( 'data' => data )
|
18
18
|
|
19
19
|
generator = Spreadsheet::HTML.new( 'data' => data )
|
20
|
-
puts generator.portrait()
|
21
|
-
puts generator.landscape()
|
20
|
+
puts generator.portrait( 'indent' => "\t" )
|
21
|
+
puts generator.landscape( 'encodes' => 1 )
|
22
22
|
|
23
|
+
puts generator.generate( 'tgroups' => 1 )
|
24
|
+
puts generator.generate( 'tgroups' => 2 )
|
25
|
+
|
26
|
+
puts generator.generate( 'tr' => { 'class' => %w{ odd even } } )
|
23
27
|
```
|
24
28
|
|
25
29
|
Installation
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Spreadsheet-HTML
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jeffa
|
@@ -63,7 +63,8 @@ email:
|
|
63
63
|
- jeffa@cpan.org
|
64
64
|
executables: []
|
65
65
|
extensions: []
|
66
|
-
extra_rdoc_files:
|
66
|
+
extra_rdoc_files:
|
67
|
+
- doc/HTML.rdoc
|
67
68
|
files:
|
68
69
|
- ".gitignore"
|
69
70
|
- ".travis.yml"
|