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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 39a9475bfe11ce50a2edc97d54c3f2e93a5e7421
4
- data.tar.gz: cd181e56d1f58a4b318129deca3bca6544b62910
3
+ metadata.gz: e07fc07c220224f9abfb1c4ce9478cfffd63eaa7
4
+ data.tar.gz: d4e2a14ebb3176938f57f43ad6ac0baba36a844a
5
5
  SHA512:
6
- metadata.gz: e9dd4fd69b122c774d731219e44273dd73971cb325313f9237bb048cf6b95b57637ac510a4a6e48c17824e72bfb1db252625a058e6dfbedba1c0685ec17d15a7
7
- data.tar.gz: 0f89e8351ef0e20732a51cca35061e76cd9b8b5692a4936ec2ddfcb2113bbe4a4516e5e7c7d4945e90967a6a58e916778e6559a2892754d3a1a9b17f7e9da652
6
+ metadata.gz: 6d58d254df2bb329b2878700068fcad912ac7fd28f6462c77eebf9d8e306f08860f4c8dc9e0290899a5137792bab4af320dfc3932ad842999816de1bc2536a8c
7
+ data.tar.gz: ec99aefffe9d2bd1a7048a8e25367b5b145e2da41ea8f7d8f6c71411c377a87c4c3b86e9433195d472593609152f64a0a41f2ae58e9e60c7b4815bbdd12fab10
@@ -23,7 +23,7 @@ This is a simple tool developed for use within SysMO-DB[http://www.sysmo-db.org]
23
23
 
24
24
  == Installation
25
25
 
26
- Java 1.6 (JRE) is required.
26
+ Java 1.7 (JRE) is required.
27
27
 
28
28
  gem install simple-spreadsheet-extractor
29
29
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.15.0
1
+ 0.15.1
@@ -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.0"
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.0 ruby lib
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.0"
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-03-13"
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.0.jar",
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.2.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
@@ -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.0
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-03-13 00:00:00.000000000 Z
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.0.jar
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.2.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