poi2csv 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/classes/ToCSV$ExcelFilenameFilter.class +0 -0
- data/classes/ToCSV.class +0 -0
- data/convert.sh +4 -0
- data/lib/poi2csv/version.rb +1 -1
- data/src/ToCSV.java +6 -1
- metadata +8 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cd7618a5e1863eacbbe2f742891714c66908f821
|
|
4
|
+
data.tar.gz: d2aa51d17653f4bf899923cc4f04359b6e5a88d9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e70230e2d7b38f0ad0467d3b55eee8b29de2ef99eadc3cc30c140e1242c4d7dd634c9e90899cd484448b466c149027f17cf25abfbd1a601e9ca19d7b6b628b7f
|
|
7
|
+
data.tar.gz: 3fcbcb2444114480a599d0c94c22fed879f28f857756afd20237cb23b48438fb1cd1bb595922d04696092c407efd8253991e1dcb901a893b8112359d36b5abe0
|
|
Binary file
|
data/classes/ToCSV.class
CHANGED
|
Binary file
|
data/convert.sh
ADDED
data/lib/poi2csv/version.rb
CHANGED
data/src/ToCSV.java
CHANGED
|
@@ -541,7 +541,12 @@ public class ToCSV {
|
|
|
541
541
|
else {
|
|
542
542
|
switch (cell.getCellType()) {
|
|
543
543
|
case Cell.CELL_TYPE_FORMULA:
|
|
544
|
-
|
|
544
|
+
try {
|
|
545
|
+
csvLine.add(this.formatter.formatCellValue(cell, this.evaluator));
|
|
546
|
+
}
|
|
547
|
+
catch (Exception e) {
|
|
548
|
+
csvLine.add(this.formatter.formatCellValue(cell));
|
|
549
|
+
}
|
|
545
550
|
break;
|
|
546
551
|
case Cell.CELL_TYPE_ERROR:
|
|
547
552
|
csvLine.add("");
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: poi2csv
|
|
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
|
- Douglas English
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2013-
|
|
11
|
+
date: 2013-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -28,14 +28,14 @@ dependencies:
|
|
|
28
28
|
name: rake
|
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
|
30
30
|
requirements:
|
|
31
|
-
- -
|
|
31
|
+
- - '>='
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
33
|
version: '0'
|
|
34
34
|
type: :development
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
|
-
- -
|
|
38
|
+
- - '>='
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
41
|
description: Converts Excel .xls and .xlsx files to CSV.
|
|
@@ -54,6 +54,7 @@ files:
|
|
|
54
54
|
- build.xml
|
|
55
55
|
- classes/ToCSV$ExcelFilenameFilter.class
|
|
56
56
|
- classes/ToCSV.class
|
|
57
|
+
- convert.sh
|
|
57
58
|
- lib/.DS_Store
|
|
58
59
|
- lib/commons-codec-1.5.jar
|
|
59
60
|
- lib/commons-logging-1.1.jar
|
|
@@ -82,17 +83,17 @@ require_paths:
|
|
|
82
83
|
- lib
|
|
83
84
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
85
|
requirements:
|
|
85
|
-
- -
|
|
86
|
+
- - '>='
|
|
86
87
|
- !ruby/object:Gem::Version
|
|
87
88
|
version: '0'
|
|
88
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
89
90
|
requirements:
|
|
90
|
-
- -
|
|
91
|
+
- - '>='
|
|
91
92
|
- !ruby/object:Gem::Version
|
|
92
93
|
version: '0'
|
|
93
94
|
requirements: []
|
|
94
95
|
rubyforge_project:
|
|
95
|
-
rubygems_version: 2.0.
|
|
96
|
+
rubygems_version: 2.0.10
|
|
96
97
|
signing_key:
|
|
97
98
|
specification_version: 4
|
|
98
99
|
summary: This GEM provides a wrapper to the http://poi.apache.org/ library for converting
|