spreadsheet 0.6.2 → 0.6.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,11 @@
1
+ === 0.6.2.1 / 2008-12-18
2
+
3
+ * 1 Bugfix
4
+
5
+ * Using Spreadsheet together with 'jcode' could lead to broken Excel-Files
6
+ Thanks to Eugene Mikhailov for tracking this one down in:
7
+ http://rubyforge.org/tracker/index.php?func=detail&aid=23085&group_id=678&atid=2677
8
+
1
9
  === 0.6.2 / 2008-12-11
2
10
 
3
11
  * 14 Bugfixes
data/README.txt CHANGED
@@ -1,4 +1,5 @@
1
- Last Update: 13.10.2008, 19.45 - zdavatz
1
+ Last Update: 16.12.2008, 10.33 - zdavatz
2
+
2
3
 
3
4
  = Spreadsheet
4
5
 
@@ -9,6 +10,11 @@ For a viewable directory of all recent changes, please see:
9
10
 
10
11
  http://scm.ywesee.com/?p=spreadsheet;a=summary
11
12
 
13
+ For Non-GPLv3 commercial licencing, please see:
14
+
15
+ http://www.spreadsheet.ch
16
+
17
+
12
18
  == Description
13
19
 
14
20
  The Spreadsheet Library is designed to read and write Spreadsheet Documents.
@@ -17,12 +23,16 @@ supported. Spreadsheet is a combination/complete rewrite of the
17
23
  Spreadsheet::Excel Library by Daniel J. Berger and the ParseExcel Library by
18
24
  Hannes Wyss. Spreadsheet can read, write and modify Spreadsheet Documents.
19
25
 
26
+
20
27
  == What's new?
28
+
21
29
  * Significantly improved memory-efficiency when reading large Excel Files
22
30
  * Limited Spreadsheet modification support
23
31
  * Improved handling of String Encodings
24
32
 
33
+
25
34
  == Roadmap
35
+
26
36
  0.7.0:: Improved Format support/Styles
27
37
  0.7.1:: Document Modification: Formats/Styles
28
38
  0.8.0:: Formula Support
@@ -31,16 +41,19 @@ Hannes Wyss. Spreadsheet can read, write and modify Spreadsheet Documents.
31
41
  1.0.0:: Ruby 1.9 Support;
32
42
  Remove backward compatibility code
33
43
 
44
+
34
45
  == Dependencies
35
46
 
36
47
  * ruby 1.8
37
48
  * Iconv
38
49
  * ruby-ole[http://code.google.com/p/ruby-ole/]
39
50
 
51
+
40
52
  == Examples
41
53
 
42
54
  Have a look at the GUIDE[link://files/GUIDE_txt.html].
43
55
 
56
+
44
57
  == Installation
45
58
 
46
59
  Using RubyGems[http://www.rubygems.org]:
@@ -64,8 +77,9 @@ Copyright (c) 2003 by Hannes Wyss (hannes.wyss@gmail.com)
64
77
  New Code:
65
78
  Copyright (c) 2008 by Hannes Wyss (hannes.wyss@gmail.com)
66
79
 
80
+
67
81
  == License
68
82
 
69
- This library is distributed under the GPL.
83
+ This library is distributed under the GPLv3.
70
84
  Please see the LICENSE[link://files/LICENSE_txt.html] file.
71
85
 
data/lib/spreadsheet.rb CHANGED
@@ -42,7 +42,7 @@ module Spreadsheet
42
42
 
43
43
  ##
44
44
  # The version of Spreadsheet you are using.
45
- VERSION = '0.6.2'
45
+ VERSION = '0.6.2.1'
46
46
 
47
47
  ##
48
48
  # Default client Encoding. Change this value if your application uses a
@@ -14,12 +14,20 @@ module Biff8
14
14
  # is a Null-byte) and perform compression.
15
15
  # Returns the data and compression_status (0/1)
16
16
  def compress_unicode_string data
17
- wide = 1
18
- if /^([^\0]\0)*$/.match data
19
- data = data.delete "\0"
20
- wide = 0
17
+ compressed = ''
18
+ expect_null = false
19
+ data.each_byte do |byte|
20
+ if expect_null
21
+ if byte != 0
22
+ return [data, 1] # 1 => Data consists of wide Chars
23
+ end
24
+ expect_null = false
25
+ else
26
+ compressed << byte
27
+ expect_null = true
28
+ end
21
29
  end
22
- [data, wide]
30
+ [compressed, 0] # 0 => Data consists of compressed Chars
23
31
  end
24
32
  ##
25
33
  # Encode _string_ into a Biff8 Unicode String. Header and body are encoded
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.6.2
4
+ version: 0.6.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hannes Wyss
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-11 00:00:00 +01:00
12
+ date: 2008-12-19 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency