spreadsheet 0.9.4 → 0.9.5

Sign up to get free protection for your applications and to get access to all the features.
data/History.md CHANGED
@@ -1,3 +1,13 @@
1
+ ### 0.9.5 / 20.11.2013
2
+
3
+ Author: Malcolm Blyth <trashbat@co.ck>
4
+ Date: Tue Nov 19 15:14:31 2013 +0000
5
+
6
+ * Bumped revision
7
+ * Fixed author stringname error (damn this 1 based counting)
8
+ * Updating integration test to check for comments contained within the cells.
9
+ * Checking also for multiple comments in a sheet
10
+
1
11
  ### 0.9.4 / 12.11.2013
2
12
 
3
13
  * Updated Manifest.txt
data/README.md CHANGED
@@ -119,5 +119,5 @@ Copyright (c) 2010 ywesee GmbH (mhatakeyama@ywesee.com, zdavatz@ywesee.com)
119
119
  ## License
120
120
 
121
121
  This library is distributed under the GPLv3.
122
- Please see the LICENSE[link://files/LICENSE_txt.html] file.
122
+ Please see the [LICENSE] (https://github.com/zdavatz/spreadsheet/blob/master/LICENSE.txt) file.
123
123
 
@@ -1145,10 +1145,10 @@ class Reader
1145
1145
  if (_objAuthLenFmt == 0)
1146
1146
  #puts "Picking compressed charset"
1147
1147
  #Skip to offset due to 'v5C' used above
1148
- _objAuth = work.unpack('@11C*')
1148
+ _objAuth = work.unpack('@11C' + (_objAuthLen-1).to_s + 'C')
1149
1149
  elsif (_objAuthLenFmt == 1)
1150
1150
  #puts "Picking uncompressed charset"
1151
- _objAuth = work.unpack('@11S*')
1151
+ _objAuth = work.unpack('@11S' + (_objAuthLen-1).to_s + 'S')
1152
1152
  end
1153
1153
  _objAuth = _objAuth.pack('C*')
1154
1154
  @note = Note.new
data/lib/spreadsheet.rb CHANGED
@@ -43,7 +43,7 @@ module Spreadsheet
43
43
 
44
44
  ##
45
45
  # The version of Spreadsheet you are using.
46
- VERSION = '0.9.4'
46
+ VERSION = '0.9.5'
47
47
 
48
48
  ##
49
49
  # Default client Encoding. Change this value if your application uses a
data/spreadsheet.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = "spreadsheet"
3
- s.version = "0.9.3"
3
+ s.version = "0.9.5"
4
4
  s.summary = "The Spreadsheet Library is designed to read and write Spreadsheet Documents"
5
5
  s.description = "As of version 0.6.0, only Microsoft Excel compatible spreadsheets are supported"
6
6
  s.author = "Masaomi Hatakeyama, Zeno R.R. Davatz"
Binary file
data/test/integration.rb CHANGED
@@ -1280,12 +1280,20 @@ module Spreadsheet
1280
1280
  temp_file.unlink
1281
1281
  end
1282
1282
 
1283
- def test_andre
1283
+ def test_comment
1284
1284
  path = File.join @data, 'test_comment.xls'
1285
1285
  book = Spreadsheet.open path
1286
1286
  assert_instance_of Excel::Workbook, book
1287
1287
  sheet = book.worksheet 0
1288
1288
  sheet.ensure_rows_read
1289
+ #Now two commented fields in sheet
1290
+ assert_equal(true, book.worksheet(0).notes.has_key?([0,18]))
1291
+ assert_equal(true, book.worksheet(0).notes.has_key?([0,2]))
1292
+ assert_equal(false, book.worksheet(0).notes.has_key?([0,3]))
1293
+ assert_equal("Another Author:\n0: switch it off\n1: switch it on",
1294
+ book.worksheet(0).notes[[0,18]])
1295
+ assert_equal("Some author:\nI have a register name",
1296
+ book.worksheet(0).notes[[0,2]])
1289
1297
  end
1290
1298
  def test_read_pagesetup
1291
1299
  path = File.join @data, 'test_pagesetup.xls'
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
4
+ version: 0.9.5
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-11-12 00:00:00.000000000 Z
12
+ date: 2013-11-20 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: '3.10'
37
+ version: '4.0'
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: '3.10'
45
+ version: '4.0'
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: '2.13'
53
+ version: '3.6'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,16 +58,28 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '2.13'
62
- description: ''
61
+ version: '3.6'
62
+ description: ! 'The Spreadsheet Library is designed to read and write Spreadsheet
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.'
63
72
  email:
64
73
  - mhatakeyama@ywesee.com, zdavatz@ywesee.com
65
74
  executables:
66
75
  - xlsopcodes
67
76
  extensions: []
68
77
  extra_rdoc_files:
78
+ - GUIDE.md
79
+ - History.md
69
80
  - LICENSE.txt
70
81
  - Manifest.txt
82
+ - README.md
71
83
  files:
72
84
  - .gitignore
73
85
  - .travis.yml
@@ -153,12 +165,12 @@ files:
153
165
  - test/workbook_protection.rb
154
166
  - test/worksheet.rb
155
167
  - .gemtest
156
- homepage:
168
+ homepage: https://github.com/zdavatz/spreadsheet
157
169
  licenses: []
158
170
  post_install_message:
159
171
  rdoc_options:
160
172
  - --main
161
- - README.txt
173
+ - README.md
162
174
  require_paths:
163
175
  - lib
164
176
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -175,8 +187,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
187
  version: '0'
176
188
  requirements: []
177
189
  rubyforge_project: spreadsheet
178
- rubygems_version: 1.8.25
190
+ rubygems_version: 1.8.23
179
191
  signing_key:
180
192
  specification_version: 3
181
- summary: ''
193
+ summary: The Spreadsheet Library is designed to read and write Spreadsheet Documents
182
194
  test_files: []