simple-spreadsheet-extractor 0.6.4 → 0.7.0

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.
@@ -1,7 +1,7 @@
1
1
  = Simple Spreadsheet Extractor
2
2
 
3
3
  Authors:: Stuart Owen, Finn Bacall
4
- Version:: 0.6.2
4
+ Version:: 0.7.0
5
5
  Contact:: mailto:stuart.owen@manchester.ac.uk
6
6
  Licence:: BSD (See LICENCE or http://www.opensource.org/licenses/bsd-license.php)
7
7
  Copyright:: (c) 2010 The University of Manchester, UK
@@ -73,6 +73,7 @@ e.g.
73
73
 
74
74
  <?xml version="1.0" encoding="UTF-8"?>
75
75
  <workbook xmlns="http://www.sysmo-db.org/2010/xml/spreadsheet">
76
+ <named_ranges/>
76
77
  <styles>
77
78
  <style id="style21">
78
79
  <border-top>dotted 1pt</border-top>
@@ -95,6 +96,7 @@ e.g.
95
96
  </style>
96
97
  </styles>
97
98
  <sheet name="Sheet1" index="1" hidden="false" very_hidden="false">
99
+ <data_validations/>
98
100
  <columns first_column="1" last_column="3">
99
101
  <column index="1" column_alpha="A" width="2048"/>
100
102
  <column index="2" column_alpha="B" width="2048"/>
@@ -125,6 +127,7 @@ e.g.
125
127
  </rows>
126
128
  </sheet>
127
129
  <sheet name="Sheet2" index="2" hidden="false" very_hidden="false">
130
+ <data_validations/>
128
131
  <columns first_column="1" last_column="1">
129
132
  <column index="1" column_alpha="A" width="2048"/>
130
133
  </columns>
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.4
1
+ 0.7.0
@@ -7,6 +7,8 @@
7
7
 
8
8
  <xsd:complexType name="Workbook">
9
9
  <xsd:sequence>
10
+ <xsd:element name="named_ranges" type="NamedRanges" minOccurs="1"
11
+ maxOccurs="1" />
10
12
  <xsd:element name="styles" type="Styles" minOccurs="1"
11
13
  maxOccurs="1" />
12
14
  <xsd:element name="sheet" type="Sheet" minOccurs="0"
@@ -51,6 +53,8 @@
51
53
 
52
54
  <xsd:complexType name="Sheet">
53
55
  <xsd:sequence>
56
+ <xsd:element name="data_validations" type="DataValidations" minOccurs="1"
57
+ maxOccurs="1" />
54
58
  <xsd:element name="columns" type="Columns" minOccurs="1"
55
59
  maxOccurs="1" />
56
60
  <xsd:element name="rows" type="Rows" minOccurs="1"
@@ -94,6 +98,7 @@
94
98
  <xsd:attribute name="last_row" type="xsd:positiveInteger"
95
99
  use="required"></xsd:attribute>
96
100
  </xsd:complexType>
101
+
97
102
 
98
103
  <xsd:complexType name="Row">
99
104
  <xsd:sequence>
@@ -121,5 +126,45 @@
121
126
  </xsd:extension>
122
127
  </xsd:simpleContent>
123
128
  </xsd:complexType>
129
+
130
+ <xsd:complexType name="NamedRanges">
131
+ <xsd:sequence>
132
+ <xsd:element name="named_range" type="NamedRange" minOccurs="0"
133
+ maxOccurs="unbounded" />
134
+ </xsd:sequence>
135
+ </xsd:complexType>
136
+
137
+ <xsd:complexType name="NamedRange">
138
+ <xsd:sequence>
139
+ <xsd:element name="name" type="xsd:string" minOccurs="1"
140
+ maxOccurs="1" />
141
+ <xsd:element name="sheet_name" type="xsd:string" minOccurs="1"
142
+ maxOccurs="1" />
143
+ <xsd:element name="refers_to_formula" type="xsd:string" minOccurs="1"
144
+ maxOccurs="1" />
145
+ </xsd:sequence>
146
+ <xsd:attribute name="first_column" type="xsd:positiveInteger" use="required"></xsd:attribute>
147
+ <xsd:attribute name="last_column" type="xsd:positiveInteger" use="required"></xsd:attribute>
148
+ <xsd:attribute name="first_row" type="xsd:positiveInteger" use="required"></xsd:attribute>
149
+ <xsd:attribute name="last_row" type="xsd:positiveInteger" use="required"></xsd:attribute>
150
+ </xsd:complexType>
151
+
152
+ <xsd:complexType name="DataValidations">
153
+ <xsd:sequence>
154
+ <xsd:element name="data_validation" type="DataValidation" minOccurs="0"
155
+ maxOccurs="unbounded" />
156
+ </xsd:sequence>
157
+ </xsd:complexType>
158
+
159
+ <xsd:complexType name="DataValidation">
160
+ <xsd:sequence>
161
+ <xsd:element name="constraint" type="xsd:string" minOccurs="1"
162
+ maxOccurs="1" />
163
+ </xsd:sequence>
164
+ <xsd:attribute name="first_column" type="xsd:positiveInteger" use="required"></xsd:attribute>
165
+ <xsd:attribute name="last_column" type="xsd:positiveInteger" use="required"></xsd:attribute>
166
+ <xsd:attribute name="first_row" type="xsd:positiveInteger" use="required"></xsd:attribute>
167
+ <xsd:attribute name="last_row" type="xsd:positiveInteger" use="required"></xsd:attribute>
168
+ </xsd:complexType>
124
169
 
125
170
  </xsd:schema>
@@ -9,7 +9,7 @@ module SysMODB
9
9
  end
10
10
 
11
11
  module SpreadsheetExtractor
12
- JAR_VERSION="0.6.4"
12
+ JAR_VERSION="0.7"
13
13
  DEFAULT_PATH = File.dirname(__FILE__) + "/../jars/simple-spreadsheet-extractor-#{JAR_VERSION}.jar"
14
14
 
15
15
  def spreadsheet_to_xml spreadsheet_data
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-spreadsheet-extractor
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 6
9
- - 4
10
- version: 0.6.4
8
+ - 7
9
+ - 0
10
+ version: 0.7.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Stuart Owen
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-08-15 00:00:00 +01:00
19
+ date: 2011-11-24 00:00:00 +00:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
@@ -67,11 +67,12 @@ files:
67
67
  - doc/schema-v1.xsd
68
68
  - examples/example.rb
69
69
  - jars/lib/dom4j-1.6.1.jar
70
- - jars/lib/poi-3.7.jar
71
- - jars/lib/poi-ooxml-3.7.jar
72
- - jars/lib/poi-ooxml-schemas-3.7.jar
70
+ - jars/lib/poi-ooxml-3.8-beta4.jar
71
+ - jars/lib/poi-ooxml-schemas-3.8-beta4.jar
72
+ - jars/lib/poi-rightfield-3.8-beta4.jar
73
73
  - jars/lib/xmlbeans-2.3.0.jar
74
- - jars/simple-spreadsheet-extractor-0.6.4.jar
74
+ - jars/simple-spreadsheet-extractor-0.7-SNAPSHOT.jar
75
+ - jars/simple-spreadsheet-extractor-0.7.jar
75
76
  - lib/simple-spreadsheet-extractor.rb
76
77
  - simple-spreadsheet-extractor.gemspec
77
78
  - test/files/not-a-spreadsheet.xls
Binary file
Binary file