simple-spreadsheet-extractor 0.15.0 → 0.15.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.rdoc +1 -1
- data/VERSION +1 -1
- data/jars/lib/xercesImpl-2.6.2.jar +0 -0
- data/jars/{simple-spreadsheet-extractor-0.15.0.jar → simple-spreadsheet-extractor-0.15.1.jar} +0 -0
- data/lib/sysmodb/extractor.rb +1 -1
- data/simple-spreadsheet-extractor.gemspec +8 -5
- data/test/files/xml-unfriendly-chars.xlsx +0 -0
- data/test/test_extraction.rb +7 -0
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e07fc07c220224f9abfb1c4ce9478cfffd63eaa7
|
4
|
+
data.tar.gz: d4e2a14ebb3176938f57f43ad6ac0baba36a844a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d58d254df2bb329b2878700068fcad912ac7fd28f6462c77eebf9d8e306f08860f4c8dc9e0290899a5137792bab4af320dfc3932ad842999816de1bc2536a8c
|
7
|
+
data.tar.gz: ec99aefffe9d2bd1a7048a8e25367b5b145e2da41ea8f7d8f6c71411c377a87c4c3b86e9433195d472593609152f64a0a41f2ae58e9e60c7b4815bbdd12fab10
|
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.15.
|
1
|
+
0.15.1
|
Binary file
|
data/jars/{simple-spreadsheet-extractor-0.15.0.jar → simple-spreadsheet-extractor-0.15.1.jar}
RENAMED
Binary file
|
data/lib/sysmodb/extractor.rb
CHANGED
@@ -7,7 +7,7 @@ module SysMODB
|
|
7
7
|
#handles the delegation to java, and executes the extraction passing the
|
8
8
|
#input file through STDIN, and reading the results through STDOUT.
|
9
9
|
class Extractor
|
10
|
-
JAR_VERSION="0.15.
|
10
|
+
JAR_VERSION="0.15.1"
|
11
11
|
DEFAULT_PATH = File.dirname(__FILE__) + "/../../jars/simple-spreadsheet-extractor-#{JAR_VERSION}.jar"
|
12
12
|
BUFFER_SIZE=250000 # 1/4 a megabyte
|
13
13
|
|
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: simple-spreadsheet-extractor 0.15.
|
5
|
+
# stub: simple-spreadsheet-extractor 0.15.1 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "simple-spreadsheet-extractor"
|
9
|
-
s.version = "0.15.
|
9
|
+
s.version = "0.15.1"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Stuart Owen", "Finn Bacall", "Quyen Nguyen"]
|
14
|
-
s.date = "2015-
|
14
|
+
s.date = "2015-05-18"
|
15
15
|
s.description = "Takes a stream to a spreadsheet file and produces an XML or CSV representation of its contents"
|
16
16
|
s.email = "stuart.owen@manchester.ac.uk"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -29,13 +29,15 @@ Gem::Specification.new do |s|
|
|
29
29
|
"VERSION",
|
30
30
|
"doc/schema-v1.xsd",
|
31
31
|
"examples/example.rb",
|
32
|
+
"jars/lib/.#",
|
32
33
|
"jars/lib/dom4j-1.6.1.jar",
|
33
34
|
"jars/lib/log4j-1.2.17.jar",
|
34
35
|
"jars/lib/poi-3.11.jar",
|
35
36
|
"jars/lib/poi-ooxml-3.11.jar",
|
36
37
|
"jars/lib/poi-ooxml-schemas-3.11.jar",
|
38
|
+
"jars/lib/xercesImpl-2.6.2.jar",
|
37
39
|
"jars/lib/xmlbeans-2.6.0.jar",
|
38
|
-
"jars/simple-spreadsheet-extractor-0.15.
|
40
|
+
"jars/simple-spreadsheet-extractor-0.15.1.jar",
|
39
41
|
"lib/simple-spreadsheet-extractor.rb",
|
40
42
|
"lib/sysmodb/extractor.rb",
|
41
43
|
"lib/sysmodb/simple-spreadsheet-extractor.rb",
|
@@ -46,10 +48,11 @@ Gem::Specification.new do |s|
|
|
46
48
|
"test/files/test-csv-output1.csv",
|
47
49
|
"test/files/test-spreadsheet.xls",
|
48
50
|
"test/files/test-spreadsheet.xlsx",
|
51
|
+
"test/files/xml-unfriendly-chars.xlsx",
|
49
52
|
"test/test_extraction.rb"
|
50
53
|
]
|
51
54
|
s.homepage = "http://github.com/myGrid/simple-spreadsheet-extractor-gem"
|
52
|
-
s.rubygems_version = "2.
|
55
|
+
s.rubygems_version = "2.4.3"
|
53
56
|
s.summary = "Basic spreadsheet content extraction using Apache POI"
|
54
57
|
|
55
58
|
if s.respond_to? :specification_version then
|
Binary file
|
data/test/test_extraction.rb
CHANGED
@@ -44,6 +44,13 @@ class TestExtraction < Test::Unit::TestCase
|
|
44
44
|
validate_against_schema(xml)
|
45
45
|
end
|
46
46
|
|
47
|
+
def test_invalid_xml_chars
|
48
|
+
test_sheet = File.dirname(__FILE__) + "/files/xml-unfriendly-chars.xlsx"
|
49
|
+
f=open(test_sheet,"rb")
|
50
|
+
xml = spreadsheet_to_xml(f)
|
51
|
+
validate_against_schema(xml)
|
52
|
+
end
|
53
|
+
|
47
54
|
def validate_against_schema xml
|
48
55
|
document = LibXML::XML::Document.string(xml)
|
49
56
|
schema = LibXML::XML::Schema.new(SCHEMA_FILE_PATH)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simple-spreadsheet-extractor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Owen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2015-
|
13
|
+
date: 2015-05-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: libxml-ruby
|
@@ -120,8 +120,9 @@ files:
|
|
120
120
|
- jars/lib/poi-3.11.jar
|
121
121
|
- jars/lib/poi-ooxml-3.11.jar
|
122
122
|
- jars/lib/poi-ooxml-schemas-3.11.jar
|
123
|
+
- jars/lib/xercesImpl-2.6.2.jar
|
123
124
|
- jars/lib/xmlbeans-2.6.0.jar
|
124
|
-
- jars/simple-spreadsheet-extractor-0.15.
|
125
|
+
- jars/simple-spreadsheet-extractor-0.15.1.jar
|
125
126
|
- lib/simple-spreadsheet-extractor.rb
|
126
127
|
- lib/sysmodb/extractor.rb
|
127
128
|
- lib/sysmodb/simple-spreadsheet-extractor.rb
|
@@ -132,6 +133,7 @@ files:
|
|
132
133
|
- test/files/test-csv-output1.csv
|
133
134
|
- test/files/test-spreadsheet.xls
|
134
135
|
- test/files/test-spreadsheet.xlsx
|
136
|
+
- test/files/xml-unfriendly-chars.xlsx
|
135
137
|
- test/test_extraction.rb
|
136
138
|
homepage: http://github.com/myGrid/simple-spreadsheet-extractor-gem
|
137
139
|
licenses: []
|
@@ -152,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
152
154
|
version: '0'
|
153
155
|
requirements: []
|
154
156
|
rubyforge_project:
|
155
|
-
rubygems_version: 2.
|
157
|
+
rubygems_version: 2.4.3
|
156
158
|
signing_key:
|
157
159
|
specification_version: 4
|
158
160
|
summary: Basic spreadsheet content extraction using Apache POI
|