Spreadsheet-HTML 0.0.1 → 0.0.2

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
  SHA1:
3
- metadata.gz: 9f87b9dc34a54719ccd396dd5e6c45234f920f4b
4
- data.tar.gz: 376181b18aedfd03c3f19adf58217bb775c867c8
3
+ metadata.gz: be82883c6b2f3f1eb50695360be61c9a74d11d45
4
+ data.tar.gz: 7934c3ca46e633193984d46e3bfc9fdd7417ce00
5
5
  SHA512:
6
- metadata.gz: 13c66aed213cabad46d6db74c3bedffc8cf64d5a47cd93ff03322df308e5afc33551c9fa2e3d6cf2109a78e367d474ced40fc067e01cf9ca88b29736e649fab5
7
- data.tar.gz: 999297ba319055f39163cd2d6f495c512a830a7d5b54cff557f595b8e8b646493c757a7196ea5e1f9ca0df1a8386f97ac90157e3e35676f72be24011ba06ec2a
6
+ metadata.gz: 61a247d27d8f1aea4eadd5c1024234add596fde13e6a070c944468290484a4dbbcb6510f5dc9f132b56fdbcd52f1ff6e47a746d0733b734c578ea60971ab598b
7
+ data.tar.gz: 9f5b69f0eb818ee9ec8e2ed8c7d71a06f795bd98e38d655f749850c6708c08beb657768e74cf5fde3b7bf534d24d05224965059b8b3387c58da6f90697290a18
data/Changes CHANGED
@@ -1,4 +1,7 @@
1
1
  Revision history for html-autotag-ruby
2
2
 
3
+ 0.0.2
4
+ - no real changes, just ensuring that all new files are published
5
+
3
6
  0.0.1
4
7
  - First version, released on an unsuspecting world.
@@ -1,5 +1,5 @@
1
1
  module Spreadsheet
2
2
  class HTML
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
data/readme.md CHANGED
@@ -19,15 +19,12 @@ puts generator.generate( 'data' => data )
19
19
  generator = Spreadsheet::HTML.new( 'data' => data )
20
20
  puts generator.portrait()
21
21
  puts generator.landscape()
22
+
22
23
  ```
23
24
 
24
25
  Installation
25
26
  ------------
26
- We are currently pre-Alpha, so installation is not recommended.
27
-
28
- * rake test
29
- * rake build
30
- * ~~rake install~~ :skull:
27
+ * gem install Spreadsheet-HTML
31
28
 
32
29
  License and Copyright
33
30
  ---------------------
@@ -0,0 +1,24 @@
1
+ require "test/unit"
2
+ require "Spreadsheet/HTML"
3
+
4
+ class Test_Indentation < Test::Unit::TestCase
5
+
6
+ def test_indent
7
+
8
+ data = Array[
9
+ %w(header1 header2 header3),
10
+ Array[ 'foo1', 'bar1', 'baz1' ],
11
+ Array[ 'foo2', 'bar2', 'baz2' ],
12
+ ]
13
+
14
+ gen = Spreadsheet::HTML.new( 'data' => data, 'indent' => ' ' )
15
+
16
+ assert_equal(
17
+ "<table>\n <tr>\n <th>header1</th>\n <th>header2</th>\n <th>header3</th>\n </tr>\n <tr>\n <td>foo1</td>\n <td>bar1</td>\n <td>baz1</td>\n </tr>\n <tr>\n <td>foo2</td>\n <td>bar2</td>\n <td>baz2</td>\n </tr>\n</table>\n",
18
+ gen.generate(),
19
+ "empty values are padded with default"
20
+ )
21
+
22
+ end
23
+
24
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Spreadsheet-HTML
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - jeffa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-27 00:00:00.000000000 Z
11
+ date: 2015-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -84,6 +84,7 @@ files:
84
84
  - t/07-attrs.rb
85
85
  - t/08-tgroups.rb
86
86
  - t/09-padding.rb
87
+ - t/10-indent.rb
87
88
  homepage: https://github.com/jeffa/spreadsheet-html-ruby
88
89
  licenses:
89
90
  - MIT