spreadsheet 1.1.4 → 1.3.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.
- checksums.yaml +5 -5
- data/Manifest.txt +1 -0
- data/bin/bundle +114 -0
- data/bin/bundler +17 -0
- data/bin/oletool +29 -0
- data/bin/rake +29 -0
- data/bin/sow +17 -0
- data/bin/xlsopcodes +12 -0
- data/lib/spreadsheet/excel/internals.rb +1 -1
- data/lib/spreadsheet/excel/reader/biff8.rb +1 -1
- data/lib/spreadsheet/excel/reader.rb +12 -10
- data/lib/spreadsheet/excel/workbook.rb +1 -2
- data/lib/spreadsheet/excel/writer/n_worksheet.rb +0 -75
- data/lib/spreadsheet/excel/writer/workbook.rb +5 -92
- data/lib/spreadsheet/excel/writer/worksheet.rb +3 -81
- data/lib/spreadsheet/excel.rb +0 -6
- data/lib/spreadsheet/format.rb +2 -2
- data/lib/spreadsheet/version.rb +7 -0
- data/lib/spreadsheet/workbook.rb +1 -1
- data/lib/spreadsheet/worksheet.rb +23 -13
- data/lib/spreadsheet.rb +2 -4
- data/test/data/test_compact_format_date.xls +0 -0
- data/test/data/test_compact_many_rows.xls +0 -0
- data/test/data/test_missing_format.xls +0 -0
- data/test/data/test_sizes.xls +0 -0
- data/test/excel/reader.rb +13 -0
- data/test/format.rb +2 -0
- data/test/integration.rb +36 -12
- data/test/suite.rb +2 -0
- data/test/worksheet.rb +26 -4
- metadata +48 -46
- data/.gitignore +0 -2
- data/.travis.yml +0 -35
- data/Excel97-2007BinaryFileFormatSpecification.pdf +0 -0
- data/GUIDE.md +0 -339
- data/Gemfile +0 -10
- data/Gemfile.lock +0 -23
- data/History.md +0 -746
- data/README.md +0 -113
- data/Rakefile +0 -24
- data/excelfileformat.pdf +0 -0
- data/spreadsheet.gemspec +0 -25
data/README.md
DELETED
@@ -1,113 +0,0 @@
|
|
1
|
-
# Spreadsheet
|
2
|
-
## Getting Started
|
3
|
-
[](https://gitter.im/zdavatz/spreadsheet?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
4
|
-
[](http://travis-ci.org/zdavatz/spreadsheet)
|
5
|
-
|
6
|
-
The Mailing List can be found here:
|
7
|
-
|
8
|
-
http://groups.google.com/group/rubyspreadsheet
|
9
|
-
|
10
|
-
The code can be found here:
|
11
|
-
|
12
|
-
https://github.com/zdavatz/spreadsheet
|
13
|
-
|
14
|
-
For Non-GPLv3 commercial licensing, please see:
|
15
|
-
|
16
|
-
http://www.spreadsheet.ch
|
17
|
-
|
18
|
-
## XLS Binary Documentation
|
19
|
-
* https://github.com/zdavatz/spreadsheet/blob/master/Excel97-2007BinaryFileFormatSpecification.pdf
|
20
|
-
* https://github.com/zdavatz/spreadsheet/blob/master/excelfileformat.pdf
|
21
|
-
|
22
|
-
## Description
|
23
|
-
|
24
|
-
The Spreadsheet Library is designed to read and write Spreadsheet Documents.
|
25
|
-
As of version 0.6.0, only Microsoft Excel compatible spreadsheets are
|
26
|
-
supported. Spreadsheet is a combination/complete rewrite of the
|
27
|
-
Spreadsheet::Excel Library by Daniel J. Berger and the ParseExcel Library by
|
28
|
-
Hannes Wyss. Spreadsheet can read, write and modify Spreadsheet Documents.
|
29
|
-
|
30
|
-
## Notes from Users
|
31
|
-
|
32
|
-
Alfred: a@boxbot.org: I think it should be noted in the README file that the library doesn't
|
33
|
-
recognize cell formats in Excel created documents, which results in
|
34
|
-
Floats returned for any number.
|
35
|
-
|
36
|
-
## What's new?
|
37
|
-
|
38
|
-
* Supported outline (grouping) functions
|
39
|
-
* Significantly improved memory-efficiency when reading large Excel Files
|
40
|
-
* Limited Spreadsheet modification support
|
41
|
-
* Improved handling of String Encodings
|
42
|
-
|
43
|
-
|
44
|
-
## On the Roadmap
|
45
|
-
|
46
|
-
* Improved Format support/Styles
|
47
|
-
* Document Modification: Formats/Styles
|
48
|
-
* Formula Support
|
49
|
-
* Document Modification: Formulas
|
50
|
-
* Write-Support: BIFF5
|
51
|
-
* Remove backward compatibility code
|
52
|
-
|
53
|
-
Note: Spreadsheet supports Ruby 1.8.6, 1.8.7, 1.9.2, 1.9.3, 2.0.0, 2.1.1, 2.2.2
|
54
|
-
|
55
|
-
You will get a deprecated warning about iconv when using spreadsheet with Ruby
|
56
|
-
1.9.3. So replacing iconv is on the Roadmap as well ;).
|
57
|
-
|
58
|
-
## Dependencies
|
59
|
-
|
60
|
-
* [ruby-ole](http://code.google.com/p/ruby-ole/)
|
61
|
-
|
62
|
-
|
63
|
-
## Examples
|
64
|
-
|
65
|
-
* Have a look at the [GUIDE](https://github.com/zdavatz/spreadsheet/blob/master/GUIDE.md)
|
66
|
-
* Also look at: https://gist.github.com/phollyer/1214475
|
67
|
-
|
68
|
-
## Installation
|
69
|
-
|
70
|
-
Using [RubyGems](http://www.rubygems.org):
|
71
|
-
|
72
|
-
* `sudo gem install spreadsheet`
|
73
|
-
|
74
|
-
If you don't like [RubyGems](http://www.rubygems.org), let me know which
|
75
|
-
installation solution you prefer and I'll include it in the future.
|
76
|
-
|
77
|
-
If you can use 'rake' and 'hoe' library is also installed, you can
|
78
|
-
build a gem package as follows:
|
79
|
-
|
80
|
-
* `rake gem`
|
81
|
-
|
82
|
-
The gem package is built in pkg directory.
|
83
|
-
|
84
|
-
## Testing
|
85
|
-
|
86
|
-
Bundler support added.
|
87
|
-
Running tests:
|
88
|
-
* `bundle install`
|
89
|
-
* ./test/suite.rb
|
90
|
-
|
91
|
-
## TravisCI
|
92
|
-
|
93
|
-
* https://travis-ci.org/zdavatz/spreadsheet
|
94
|
-
|
95
|
-
## Authors
|
96
|
-
|
97
|
-
Original Code:
|
98
|
-
|
99
|
-
Spreadsheet::Excel:
|
100
|
-
Copyright (c) 2005 by Daniel J. Berger (djberg96@gmail.com)
|
101
|
-
|
102
|
-
ParseExcel:
|
103
|
-
Copyright (c) 2003 by Hannes Wyss (hannes.wyss@gmail.com)
|
104
|
-
|
105
|
-
New Code:
|
106
|
-
Copyright (c) 2010 ywesee GmbH (mhatakeyama@ywesee.com, zdavatz@ywesee.com)
|
107
|
-
|
108
|
-
|
109
|
-
## License
|
110
|
-
|
111
|
-
This library is distributed under the GPLv3.
|
112
|
-
Please see the [LICENSE] (https://github.com/zdavatz/spreadsheet/blob/master/LICENSE.txt) file.
|
113
|
-
|
data/Rakefile
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
# -*- ruby -*-
|
2
|
-
|
3
|
-
$: << File.expand_path("./lib", File.dirname(__FILE__))
|
4
|
-
|
5
|
-
require 'rubygems'
|
6
|
-
require 'bundler'
|
7
|
-
|
8
|
-
require 'hoe'
|
9
|
-
require './lib/spreadsheet.rb'
|
10
|
-
|
11
|
-
ENV['RDOCOPT'] = '-c utf8'
|
12
|
-
|
13
|
-
Hoe.plugin :git
|
14
|
-
|
15
|
-
Hoe.spec('spreadsheet') do |p|
|
16
|
-
p.developer('Masaomi Hatakeyama, Zeno R.R. Davatz','mhatakeyama@ywesee.com, zdavatz@ywesee.com')
|
17
|
-
p.remote_rdoc_dir = 'spreadsheet'
|
18
|
-
p.extra_deps << ['ruby-ole', '>=1.0']
|
19
|
-
p.email = "zdavatz@ywesee.com"
|
20
|
-
p.urls = ['https://github.com/zdavatz/spreadsheet']
|
21
|
-
p.licenses = ['GPL-3.0']
|
22
|
-
end
|
23
|
-
|
24
|
-
# vim: syntax=Ruby
|
data/excelfileformat.pdf
DELETED
Binary file
|
data/spreadsheet.gemspec
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# require File.join(File.dirname(__FILE__), 'lib', 'spreadsheet')
|
2
|
-
lib = File.expand_path('../lib', __FILE__)
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require 'spreadsheet'
|
5
|
-
|
6
|
-
spec = Gem::Specification.new do |spec|
|
7
|
-
spec.name = "spreadsheet"
|
8
|
-
spec.version = Spreadsheet::VERSION
|
9
|
-
spec.homepage = "https://github.com/zdavatz/spreadsheet"
|
10
|
-
spec.summary = "The Spreadsheet Library is designed to read and write Spreadsheet Documents"
|
11
|
-
spec.description = "As of version 0.6.0, only Microsoft Excel compatible spreadsheets are supported"
|
12
|
-
spec.author = "Masaomi Hatakeyama, Zeno R.R. Davatz"
|
13
|
-
spec.email = "mhatakeyama@ywesee.com, zdavatz@ywesee.com"
|
14
|
-
spec.platform = Gem::Platform::RUBY
|
15
|
-
spec.license = "GPL-3.0"
|
16
|
-
spec.files = Dir.glob("{bin,lib,test}/**/*") + Dir.glob("*.txt")
|
17
|
-
spec.test_file = "test/suite.rb"
|
18
|
-
spec.executables << "xlsopcodes"
|
19
|
-
|
20
|
-
spec.add_dependency "ruby-ole"
|
21
|
-
spec.add_development_dependency "hoe"
|
22
|
-
|
23
|
-
spec.homepage = 'https://github.com/zdavatz/spreadsheet/'
|
24
|
-
end
|
25
|
-
|