spreadsheet 0.9.5 → 0.9.6
Sign up to get free protection for your applications and to get access to all the features.
- data/Excel97-2007BinaryFileFormatSpecification.pdf +2648 -0
- data/History.md +8 -0
- data/Manifest.txt +2 -0
- data/README.md +8 -4
- data/excelfileformat.pdf +2648 -0
- data/lib/spreadsheet.rb +1 -1
- data/lib/spreadsheet/excel/reader.rb +12 -8
- metadata +13 -23
data/lib/spreadsheet.rb
CHANGED
@@ -1142,15 +1142,19 @@ class Reader
|
|
1142
1142
|
def read_note worksheet, work, pos, len
|
1143
1143
|
#puts "\nDEBUG: found a note record in read_worksheet\n"
|
1144
1144
|
row, col, _, _objID, _objAuthLen, _objAuthLenFmt = work.unpack('v5C')
|
1145
|
-
if (
|
1146
|
-
|
1147
|
-
|
1148
|
-
|
1149
|
-
|
1150
|
-
|
1151
|
-
|
1145
|
+
if (_objAuthLen > 0)
|
1146
|
+
if (_objAuthLenFmt == 0)
|
1147
|
+
#puts "Picking compressed charset"
|
1148
|
+
#Skip to offset due to 'v5C' used above
|
1149
|
+
_objAuth = work.unpack('@11C' + (_objAuthLen-1).to_s + 'C')
|
1150
|
+
elsif (_objAuthLenFmt == 1)
|
1151
|
+
#puts "Picking uncompressed charset"
|
1152
|
+
_objAuth = work.unpack('@11S' + (_objAuthLen-1).to_s + 'S')
|
1153
|
+
end
|
1154
|
+
_objAuth = _objAuth.pack('C*')
|
1155
|
+
else
|
1156
|
+
_objAuth = ""
|
1152
1157
|
end
|
1153
|
-
_objAuth = _objAuth.pack('C*')
|
1154
1158
|
@note = Note.new
|
1155
1159
|
@note.length = len
|
1156
1160
|
@note.row = row
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spreadsheet
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-12-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ruby-ole
|
@@ -34,7 +34,7 @@ dependencies:
|
|
34
34
|
requirements:
|
35
35
|
- - ~>
|
36
36
|
- !ruby/object:Gem::Version
|
37
|
-
version: '
|
37
|
+
version: '3.10'
|
38
38
|
type: :development
|
39
39
|
prerelease: false
|
40
40
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -42,7 +42,7 @@ dependencies:
|
|
42
42
|
requirements:
|
43
43
|
- - ~>
|
44
44
|
- !ruby/object:Gem::Version
|
45
|
-
version: '
|
45
|
+
version: '3.10'
|
46
46
|
- !ruby/object:Gem::Dependency
|
47
47
|
name: hoe
|
48
48
|
requirement: !ruby/object:Gem::Requirement
|
@@ -50,7 +50,7 @@ dependencies:
|
|
50
50
|
requirements:
|
51
51
|
- - ~>
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '2.13'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -58,31 +58,20 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
description:
|
63
|
-
Documents.
|
64
|
-
|
65
|
-
As of version 0.6.0, only Microsoft Excel compatible spreadsheets are
|
66
|
-
|
67
|
-
supported. Spreadsheet is a combination/complete rewrite of the
|
68
|
-
|
69
|
-
Spreadsheet::Excel Library by Daniel J. Berger and the ParseExcel Library by
|
70
|
-
|
71
|
-
Hannes Wyss. Spreadsheet can read, write and modify Spreadsheet Documents.'
|
61
|
+
version: '2.13'
|
62
|
+
description: ''
|
72
63
|
email:
|
73
64
|
- mhatakeyama@ywesee.com, zdavatz@ywesee.com
|
74
65
|
executables:
|
75
66
|
- xlsopcodes
|
76
67
|
extensions: []
|
77
68
|
extra_rdoc_files:
|
78
|
-
- GUIDE.md
|
79
|
-
- History.md
|
80
69
|
- LICENSE.txt
|
81
70
|
- Manifest.txt
|
82
|
-
- README.md
|
83
71
|
files:
|
84
72
|
- .gitignore
|
85
73
|
- .travis.yml
|
74
|
+
- Excel97-2007BinaryFileFormatSpecification.pdf
|
86
75
|
- GUIDE.md
|
87
76
|
- Gemfile
|
88
77
|
- Gemfile.lock
|
@@ -92,6 +81,7 @@ files:
|
|
92
81
|
- README.md
|
93
82
|
- Rakefile
|
94
83
|
- bin/xlsopcodes
|
84
|
+
- excelfileformat.pdf
|
95
85
|
- lib/parseexcel.rb
|
96
86
|
- lib/parseexcel/parseexcel.rb
|
97
87
|
- lib/parseexcel/parser.rb
|
@@ -165,12 +155,12 @@ files:
|
|
165
155
|
- test/workbook_protection.rb
|
166
156
|
- test/worksheet.rb
|
167
157
|
- .gemtest
|
168
|
-
homepage:
|
158
|
+
homepage:
|
169
159
|
licenses: []
|
170
160
|
post_install_message:
|
171
161
|
rdoc_options:
|
172
162
|
- --main
|
173
|
-
- README.
|
163
|
+
- README.txt
|
174
164
|
require_paths:
|
175
165
|
- lib
|
176
166
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -187,8 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
187
177
|
version: '0'
|
188
178
|
requirements: []
|
189
179
|
rubyforge_project: spreadsheet
|
190
|
-
rubygems_version: 1.8.
|
180
|
+
rubygems_version: 1.8.25
|
191
181
|
signing_key:
|
192
182
|
specification_version: 3
|
193
|
-
summary:
|
183
|
+
summary: ''
|
194
184
|
test_files: []
|