writeexcel 0.6.16 → 0.6.17
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.
- data/.gitignore +40 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.rdoc +25 -10
- data/Rakefile +11 -52
- data/lib/writeexcel/helper.rb +2 -2
- data/lib/writeexcel/image.rb +2 -2
- data/lib/writeexcel/version.rb +5 -0
- data/lib/writeexcel/worksheet.rb +7 -3
- data/test/perl_output/compatibility_mode.xls +0 -0
- data/test/test_example_match.rb +13 -0
- data/writeexcel.gemspec +17 -273
- metadata +136 -7
- data/VERSION +0 -1
data/.gitignore
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
## MAC OS
|
2
|
+
.DS_Store
|
3
|
+
|
4
|
+
## TEXTMATE
|
5
|
+
*.tmproj
|
6
|
+
tmtags
|
7
|
+
|
8
|
+
## EMACS
|
9
|
+
*~
|
10
|
+
\#*
|
11
|
+
.\#*
|
12
|
+
|
13
|
+
## VIM
|
14
|
+
*.swp
|
15
|
+
|
16
|
+
## REDCAR
|
17
|
+
.redcar
|
18
|
+
|
19
|
+
## PROJECT::SPECIFIC
|
20
|
+
|
21
|
+
## NETBEANS
|
22
|
+
nbproject
|
23
|
+
|
24
|
+
*.gem
|
25
|
+
*.rbc
|
26
|
+
.bundle
|
27
|
+
.config
|
28
|
+
.yardoc
|
29
|
+
Gemfile.lock
|
30
|
+
InstalledFiles
|
31
|
+
_yardoc
|
32
|
+
coverage
|
33
|
+
doc/
|
34
|
+
lib/bundler/man
|
35
|
+
pkg
|
36
|
+
rdoc
|
37
|
+
spec/reports
|
38
|
+
test/tmp
|
39
|
+
test/version_tmp
|
40
|
+
tmp
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2009-2013 Hideo NAKAMURA
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.rdoc
CHANGED
@@ -26,6 +26,20 @@ Original description is below:
|
|
26
26
|
|
27
27
|
This module cannot be used to read an Excel file.
|
28
28
|
|
29
|
+
== Installation
|
30
|
+
|
31
|
+
Add this line to your application's Gemfile:
|
32
|
+
|
33
|
+
gem 'writeexcel'
|
34
|
+
|
35
|
+
And then execute:
|
36
|
+
|
37
|
+
$ bundle
|
38
|
+
|
39
|
+
Or install it yourself as:
|
40
|
+
|
41
|
+
$ gem install writeexcel
|
42
|
+
|
29
43
|
== Usage
|
30
44
|
|
31
45
|
See rdoc's WriteExcel class document or Reference http://writeexcel.web.fc2.com/ .
|
@@ -76,6 +90,9 @@ You must save source file in UTF8 and run ruby with -Ku option or set $KCODE='u'
|
|
76
90
|
when use urf8 string data.
|
77
91
|
|
78
92
|
== Recent Changes
|
93
|
+
v0.6.17
|
94
|
+
* Bug fix in compatibility_mode.
|
95
|
+
|
79
96
|
v0.6.16
|
80
97
|
* typo fix
|
81
98
|
|
@@ -131,18 +148,16 @@ v0.6.0
|
|
131
148
|
Original was written in Perl by John McNamara (jmcnamara@cpan.org).
|
132
149
|
|
133
150
|
Convert to ruby by Hideo Nakamura (cxn03651@msj.biglobe.ne.jp)
|
134
|
-
Copyright (c) 2009-
|
151
|
+
Copyright (c) 2009-2013 Hideo NAKAMURA. See LICENSE for details.
|
135
152
|
|
136
153
|
== License
|
137
154
|
|
138
|
-
|
155
|
+
See LICENSE.txt
|
139
156
|
|
140
|
-
==
|
157
|
+
== Contributing
|
141
158
|
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
148
|
-
* Send me a pull request. Bonus points for topic branches.
|
159
|
+
1. Fork it
|
160
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
161
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
162
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
163
|
+
5. Create new Pull Request
|
data/Rakefile
CHANGED
@@ -1,52 +1,11 @@
|
|
1
|
-
require
|
2
|
-
require '
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
gem.authors = ["Hideo NAKAMURA"]
|
13
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
14
|
-
end
|
15
|
-
Jeweler::GemcutterTasks.new
|
16
|
-
rescue LoadError
|
17
|
-
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
18
|
-
end
|
19
|
-
|
20
|
-
require 'rake/testtask'
|
21
|
-
Rake::TestTask.new(:test) do |test|
|
22
|
-
test.libs << 'lib' << 'test'
|
23
|
-
test.pattern = 'test/**/test_*.rb'
|
24
|
-
test.verbose = true
|
25
|
-
end
|
26
|
-
|
27
|
-
begin
|
28
|
-
require 'rcov/rcovtask'
|
29
|
-
Rcov::RcovTask.new do |test|
|
30
|
-
test.libs << 'test'
|
31
|
-
test.pattern = 'test/**/test_*.rb'
|
32
|
-
test.verbose = true
|
33
|
-
end
|
34
|
-
rescue LoadError
|
35
|
-
task :rcov do
|
36
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
task :test => :check_dependencies
|
41
|
-
|
42
|
-
task :default => :test
|
43
|
-
|
44
|
-
require 'rake/rdoctask'
|
45
|
-
Rake::RDocTask.new do |rdoc|
|
46
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
47
|
-
|
48
|
-
rdoc.rdoc_dir = 'rdoc'
|
49
|
-
rdoc.title = "writeexcel #{version}"
|
50
|
-
rdoc.rdoc_files.include('README*')
|
51
|
-
rdoc.rdoc_files.include('lib/**/*.rb')
|
52
|
-
end
|
1
|
+
require "bundler/gem_tasks"
|
2
|
+
require 'rubygems'
|
3
|
+
|
4
|
+
task :default => :test
|
5
|
+
|
6
|
+
require 'rake/testtask'
|
7
|
+
Rake::TestTask.new do |test|
|
8
|
+
test.libs << 'test'
|
9
|
+
test.pattern = 'test/**/test_*.rb'
|
10
|
+
test.verbose = true
|
11
|
+
end
|
data/lib/writeexcel/helper.rb
CHANGED
@@ -26,7 +26,7 @@
|
|
26
26
|
def utf8_to_16be(utf8)
|
27
27
|
ruby_18 { NKF.nkf('-w16B0 -m0 -W', utf8) } ||
|
28
28
|
ruby_19 do
|
29
|
-
utf16be =
|
29
|
+
utf16be = utf8.encode('UTF-16BE')
|
30
30
|
utf16be.force_encoding('UTF-16BE')
|
31
31
|
end
|
32
32
|
end
|
@@ -35,7 +35,7 @@
|
|
35
35
|
def utf8_to_16le(utf8)
|
36
36
|
ruby_18 { NKF.nkf('-w16L0 -m0 -W', utf8) } ||
|
37
37
|
ruby_19 do
|
38
|
-
utf16le =
|
38
|
+
utf16le = utf8.encode('UTF-16LE')
|
39
39
|
utf16le.force_encoding('UTF-16LE')
|
40
40
|
end
|
41
41
|
end
|
data/lib/writeexcel/image.rb
CHANGED
@@ -102,7 +102,7 @@ module Writeexcel
|
|
102
102
|
def check_verify(data)
|
103
103
|
# Check that the file is big enough to be a bitmap.
|
104
104
|
raise "#{@filename} doesn't contain enough data." if data.bytesize <= 0x36
|
105
|
-
raise "#{@filename}: largest image width #{width} supported is 65k." if @width > 0xFFFF
|
105
|
+
raise "#{@filename}: largest image width #{@width} supported is 65k." if @width > 0xFFFF
|
106
106
|
raise "#{@filename}: largest image height supported is 65k." if @height > 0xFFFF
|
107
107
|
|
108
108
|
# Read the bitmap planes and bpp data. Verify them.
|
@@ -111,7 +111,7 @@ module Writeexcel
|
|
111
111
|
raise "#{@filename}: only 1 plane supported in bitmap image." unless planes == 1
|
112
112
|
|
113
113
|
# Read the bitmap compression. Verify compression.
|
114
|
-
compression = data.unpack("x30 V")
|
114
|
+
compression = data.unpack("x30 V")[0]
|
115
115
|
raise "#{@filename}: compression not supported in bitmap image." unless compression == 0
|
116
116
|
end
|
117
117
|
|
data/lib/writeexcel/worksheet.rb
CHANGED
@@ -4901,9 +4901,13 @@ class Worksheet < BIFFWriter
|
|
4901
4901
|
end
|
4902
4902
|
|
4903
4903
|
def store_to_table(row, col, data) # :nodoc:
|
4904
|
-
|
4905
|
-
|
4906
|
-
|
4904
|
+
if @table[row]
|
4905
|
+
@table[row][col] = data
|
4906
|
+
else
|
4907
|
+
tmp = []
|
4908
|
+
tmp[col] = data
|
4909
|
+
@table[row] = tmp
|
4910
|
+
end
|
4907
4911
|
end
|
4908
4912
|
|
4909
4913
|
def compatibility?
|
Binary file
|
data/test/test_example_match.rb
CHANGED
@@ -3286,4 +3286,17 @@ workbook.close
|
|
3286
3286
|
# do assertion
|
3287
3287
|
compare_file("#{PERL_OUTDIR}/more_than_10_sheets_reference.xls", @file)
|
3288
3288
|
end
|
3289
|
+
|
3290
|
+
def test_compatibility_mode
|
3291
|
+
workbook = WriteExcel.new(@file)
|
3292
|
+
workbook.compatibility_mode
|
3293
|
+
|
3294
|
+
worksheet = workbook.add_worksheet('DataSheet')
|
3295
|
+
worksheet.write_string(0,0,'Cell00')
|
3296
|
+
worksheet.write_string(0,1,'Cell01')
|
3297
|
+
workbook.close
|
3298
|
+
|
3299
|
+
# do assertion
|
3300
|
+
compare_file("#{PERL_OUTDIR}/compatibility_mode.xls", @file)
|
3301
|
+
end
|
3289
3302
|
end
|
data/writeexcel.gemspec
CHANGED
@@ -1,279 +1,23 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'writeexcel/version'
|
5
5
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
6
|
+
Gem::Specification.new do |gem|
|
7
|
+
gem.name = "writeexcel"
|
8
|
+
gem.version = WriteExcel::VERSION
|
9
|
+
gem.authors = ["Hideo NAKAMURA"]
|
10
|
+
gem.email = ["cxn03651@msj.biglobe.ne.jp"]
|
11
|
+
gem.description = "Multiple worksheets can be added to a workbook and formatting can be applied to cells. Text, numbers, formulas, hyperlinks and images can be written to the cells."
|
12
|
+
gem.summary = "Write to a cross-platform Excel binary file."
|
13
|
+
gem.homepage = "http://github.com/cxn03651/writeexcel#readme"
|
9
14
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
15
|
+
gem.files = `git ls-files`.split($/)
|
16
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
|
+
gem.require_paths = ["lib"]
|
19
|
+
gem.extra_rdoc_files = [
|
20
|
+
"LICENSE.txt",
|
16
21
|
"README.rdoc"
|
17
22
|
]
|
18
|
-
s.files = [
|
19
|
-
".document",
|
20
|
-
".gitattributes",
|
21
|
-
"README.rdoc",
|
22
|
-
"Rakefile",
|
23
|
-
"VERSION",
|
24
|
-
"charts/chartex.rb",
|
25
|
-
"charts/demo1.rb",
|
26
|
-
"charts/demo101.bin",
|
27
|
-
"charts/demo2.rb",
|
28
|
-
"charts/demo201.bin",
|
29
|
-
"charts/demo3.rb",
|
30
|
-
"charts/demo301.bin",
|
31
|
-
"charts/demo4.rb",
|
32
|
-
"charts/demo401.bin",
|
33
|
-
"charts/demo5.rb",
|
34
|
-
"charts/demo501.bin",
|
35
|
-
"examples/a_simple.rb",
|
36
|
-
"examples/autofilter.rb",
|
37
|
-
"examples/bigfile.rb",
|
38
|
-
"examples/chart_area.rb",
|
39
|
-
"examples/chart_bar.rb",
|
40
|
-
"examples/chart_column.rb",
|
41
|
-
"examples/chart_line.rb",
|
42
|
-
"examples/chart_pie.rb",
|
43
|
-
"examples/chart_scatter.rb",
|
44
|
-
"examples/chart_stock.rb",
|
45
|
-
"examples/chess.rb",
|
46
|
-
"examples/colors.rb",
|
47
|
-
"examples/comments1.rb",
|
48
|
-
"examples/comments2.rb",
|
49
|
-
"examples/copyformat.rb",
|
50
|
-
"examples/data_validate.rb",
|
51
|
-
"examples/date_time.rb",
|
52
|
-
"examples/defined_name.rb",
|
53
|
-
"examples/demo.rb",
|
54
|
-
"examples/diag_border.rb",
|
55
|
-
"examples/formats.rb",
|
56
|
-
"examples/formula_result.rb",
|
57
|
-
"examples/header.rb",
|
58
|
-
"examples/hide_sheet.rb",
|
59
|
-
"examples/hyperlink.rb",
|
60
|
-
"examples/images.rb",
|
61
|
-
"examples/indent.rb",
|
62
|
-
"examples/merge1.rb",
|
63
|
-
"examples/merge2.rb",
|
64
|
-
"examples/merge3.rb",
|
65
|
-
"examples/merge4.rb",
|
66
|
-
"examples/merge5.rb",
|
67
|
-
"examples/merge6.rb",
|
68
|
-
"examples/outline.rb",
|
69
|
-
"examples/outline_collapsed.rb",
|
70
|
-
"examples/panes.rb",
|
71
|
-
"examples/password_protection.rb",
|
72
|
-
"examples/properties.rb",
|
73
|
-
"examples/properties_jp.rb",
|
74
|
-
"examples/protection.rb",
|
75
|
-
"examples/regions.rb",
|
76
|
-
"examples/repeat.rb",
|
77
|
-
"examples/republic.png",
|
78
|
-
"examples/right_to_left.rb",
|
79
|
-
"examples/row_wrap.rb",
|
80
|
-
"examples/set_first_sheet.rb",
|
81
|
-
"examples/stats.rb",
|
82
|
-
"examples/stocks.rb",
|
83
|
-
"examples/store_formula.rb",
|
84
|
-
"examples/tab_colors.rb",
|
85
|
-
"examples/utf8.rb",
|
86
|
-
"examples/write_arrays.rb",
|
87
|
-
"html/en/doc_en.html",
|
88
|
-
"html/images/a_simple.jpg",
|
89
|
-
"html/images/area1.jpg",
|
90
|
-
"html/images/bar1.jpg",
|
91
|
-
"html/images/chart_area.xls",
|
92
|
-
"html/images/column1.jpg",
|
93
|
-
"html/images/data_validation.jpg",
|
94
|
-
"html/images/line1.jpg",
|
95
|
-
"html/images/pie1.jpg",
|
96
|
-
"html/images/regions.jpg",
|
97
|
-
"html/images/scatter1.jpg",
|
98
|
-
"html/images/stats.jpg",
|
99
|
-
"html/images/stock1.jpg",
|
100
|
-
"html/images/stocks.jpg",
|
101
|
-
"html/index.html",
|
102
|
-
"html/style.css",
|
103
|
-
"lib/writeexcel.rb",
|
104
|
-
"lib/writeexcel/biffwriter.rb",
|
105
|
-
"lib/writeexcel/caller_info.rb",
|
106
|
-
"lib/writeexcel/cell_range.rb",
|
107
|
-
"lib/writeexcel/chart.rb",
|
108
|
-
"lib/writeexcel/charts/area.rb",
|
109
|
-
"lib/writeexcel/charts/bar.rb",
|
110
|
-
"lib/writeexcel/charts/column.rb",
|
111
|
-
"lib/writeexcel/charts/external.rb",
|
112
|
-
"lib/writeexcel/charts/line.rb",
|
113
|
-
"lib/writeexcel/charts/pie.rb",
|
114
|
-
"lib/writeexcel/charts/scatter.rb",
|
115
|
-
"lib/writeexcel/charts/stock.rb",
|
116
|
-
"lib/writeexcel/col_info.rb",
|
117
|
-
"lib/writeexcel/colors.rb",
|
118
|
-
"lib/writeexcel/comments.rb",
|
119
|
-
"lib/writeexcel/compatibility.rb",
|
120
|
-
"lib/writeexcel/convert_date_time.rb",
|
121
|
-
"lib/writeexcel/data_validations.rb",
|
122
|
-
"lib/writeexcel/debug_info.rb",
|
123
|
-
"lib/writeexcel/embedded_chart.rb",
|
124
|
-
"lib/writeexcel/excelformula.y",
|
125
|
-
"lib/writeexcel/excelformulaparser.rb",
|
126
|
-
"lib/writeexcel/format.rb",
|
127
|
-
"lib/writeexcel/formula.rb",
|
128
|
-
"lib/writeexcel/helper.rb",
|
129
|
-
"lib/writeexcel/image.rb",
|
130
|
-
"lib/writeexcel/olewriter.rb",
|
131
|
-
"lib/writeexcel/outline.rb",
|
132
|
-
"lib/writeexcel/properties.rb",
|
133
|
-
"lib/writeexcel/shared_string_table.rb",
|
134
|
-
"lib/writeexcel/storage_lite.rb",
|
135
|
-
"lib/writeexcel/workbook.rb",
|
136
|
-
"lib/writeexcel/worksheet.rb",
|
137
|
-
"lib/writeexcel/worksheets.rb",
|
138
|
-
"lib/writeexcel/write_file.rb",
|
139
|
-
"test/excelfile/Chart1.xls",
|
140
|
-
"test/excelfile/Chart2.xls",
|
141
|
-
"test/excelfile/Chart3.xls",
|
142
|
-
"test/excelfile/Chart4.xls",
|
143
|
-
"test/excelfile/Chart5.xls",
|
144
|
-
"test/helper.rb",
|
145
|
-
"test/perl_output/Chart1.xls.data",
|
146
|
-
"test/perl_output/Chart2.xls.data",
|
147
|
-
"test/perl_output/Chart3.xls.data",
|
148
|
-
"test/perl_output/Chart4.xls.data",
|
149
|
-
"test/perl_output/Chart5.xls.data",
|
150
|
-
"test/perl_output/README",
|
151
|
-
"test/perl_output/a_simple.xls",
|
152
|
-
"test/perl_output/autofilter.xls",
|
153
|
-
"test/perl_output/biff_add_continue_testdata",
|
154
|
-
"test/perl_output/chart_area.xls",
|
155
|
-
"test/perl_output/chart_bar.xls",
|
156
|
-
"test/perl_output/chart_column.xls",
|
157
|
-
"test/perl_output/chart_line.xls",
|
158
|
-
"test/perl_output/chess.xls",
|
159
|
-
"test/perl_output/colors.xls",
|
160
|
-
"test/perl_output/comments0.xls",
|
161
|
-
"test/perl_output/comments1.xls",
|
162
|
-
"test/perl_output/comments2.xls",
|
163
|
-
"test/perl_output/data_validate.xls",
|
164
|
-
"test/perl_output/date_time.xls",
|
165
|
-
"test/perl_output/defined_name.xls",
|
166
|
-
"test/perl_output/demo.xls",
|
167
|
-
"test/perl_output/demo101.bin",
|
168
|
-
"test/perl_output/demo201.bin",
|
169
|
-
"test/perl_output/demo301.bin",
|
170
|
-
"test/perl_output/demo401.bin",
|
171
|
-
"test/perl_output/demo501.bin",
|
172
|
-
"test/perl_output/diag_border.xls",
|
173
|
-
"test/perl_output/f_font_biff",
|
174
|
-
"test/perl_output/f_font_key",
|
175
|
-
"test/perl_output/f_xf_biff",
|
176
|
-
"test/perl_output/file_font_biff",
|
177
|
-
"test/perl_output/file_font_key",
|
178
|
-
"test/perl_output/file_xf_biff",
|
179
|
-
"test/perl_output/formula_result.xls",
|
180
|
-
"test/perl_output/headers.xls",
|
181
|
-
"test/perl_output/hidden.xls",
|
182
|
-
"test/perl_output/hide_zero.xls",
|
183
|
-
"test/perl_output/hyperlink.xls",
|
184
|
-
"test/perl_output/images.xls",
|
185
|
-
"test/perl_output/indent.xls",
|
186
|
-
"test/perl_output/merge1.xls",
|
187
|
-
"test/perl_output/merge2.xls",
|
188
|
-
"test/perl_output/merge3.xls",
|
189
|
-
"test/perl_output/merge4.xls",
|
190
|
-
"test/perl_output/merge5.xls",
|
191
|
-
"test/perl_output/merge6.xls",
|
192
|
-
"test/perl_output/more_than_10_sheets_reference.xls",
|
193
|
-
"test/perl_output/ole_write_header",
|
194
|
-
"test/perl_output/outline.xls",
|
195
|
-
"test/perl_output/outline_collapsed.xls",
|
196
|
-
"test/perl_output/panes.xls",
|
197
|
-
"test/perl_output/password_protection.xls",
|
198
|
-
"test/perl_output/protection.xls",
|
199
|
-
"test/perl_output/regions.xls",
|
200
|
-
"test/perl_output/right_to_left.xls",
|
201
|
-
"test/perl_output/set_first_sheet.xls",
|
202
|
-
"test/perl_output/stats.xls",
|
203
|
-
"test/perl_output/stocks.xls",
|
204
|
-
"test/perl_output/store_formula.xls",
|
205
|
-
"test/perl_output/tab_colors.xls",
|
206
|
-
"test/perl_output/unicode_cyrillic.xls",
|
207
|
-
"test/perl_output/utf8.xls",
|
208
|
-
"test/perl_output/workbook1.xls",
|
209
|
-
"test/perl_output/workbook2.xls",
|
210
|
-
"test/perl_output/ws_colinfo",
|
211
|
-
"test/perl_output/ws_store_colinfo",
|
212
|
-
"test/perl_output/ws_store_dimensions",
|
213
|
-
"test/perl_output/ws_store_filtermode",
|
214
|
-
"test/perl_output/ws_store_filtermode_off",
|
215
|
-
"test/perl_output/ws_store_filtermode_on",
|
216
|
-
"test/perl_output/ws_store_selection",
|
217
|
-
"test/perl_output/ws_store_window2",
|
218
|
-
"test/republic.png",
|
219
|
-
"test/test_00_IEEE_double.rb",
|
220
|
-
"test/test_01_add_worksheet.rb",
|
221
|
-
"test/test_02_merge_formats.rb",
|
222
|
-
"test/test_04_dimensions.rb",
|
223
|
-
"test/test_05_rows.rb",
|
224
|
-
"test/test_06_extsst.rb",
|
225
|
-
"test/test_11_date_time.rb",
|
226
|
-
"test/test_12_date_only.rb",
|
227
|
-
"test/test_13_date_seconds.rb",
|
228
|
-
"test/test_21_escher.rb",
|
229
|
-
"test/test_22_mso_drawing_group.rb",
|
230
|
-
"test/test_23_note.rb",
|
231
|
-
"test/test_24_txo.rb",
|
232
|
-
"test/test_25_position_object.rb",
|
233
|
-
"test/test_26_autofilter.rb",
|
234
|
-
"test/test_27_autofilter.rb",
|
235
|
-
"test/test_28_autofilter.rb",
|
236
|
-
"test/test_29_process_jpg.rb",
|
237
|
-
"test/test_30_validation_dval.rb",
|
238
|
-
"test/test_31_validation_dv_strings.rb",
|
239
|
-
"test/test_32_validation_dv_formula.rb",
|
240
|
-
"test/test_40_property_types.rb",
|
241
|
-
"test/test_41_properties.rb",
|
242
|
-
"test/test_42_set_properties.rb",
|
243
|
-
"test/test_50_name_stored.rb",
|
244
|
-
"test/test_51_name_print_area.rb",
|
245
|
-
"test/test_52_name_print_titles.rb",
|
246
|
-
"test/test_53_autofilter.rb",
|
247
|
-
"test/test_60_chart_generic.rb",
|
248
|
-
"test/test_61_chart_subclasses.rb",
|
249
|
-
"test/test_62_chart_formats.rb",
|
250
|
-
"test/test_63_chart_area_formats.rb",
|
251
|
-
"test/test_biff.rb",
|
252
|
-
"test/test_big_workbook.rb",
|
253
|
-
"test/test_compatibility.rb",
|
254
|
-
"test/test_example_match.rb",
|
255
|
-
"test/test_format.rb",
|
256
|
-
"test/test_formula.rb",
|
257
|
-
"test/test_ole.rb",
|
258
|
-
"test/test_storage_lite.rb",
|
259
|
-
"test/test_workbook.rb",
|
260
|
-
"test/test_worksheet.rb",
|
261
|
-
"utils/add_magic_comment.rb",
|
262
|
-
"writeexcel.gemspec",
|
263
|
-
"writeexcel.rdoc"
|
264
|
-
]
|
265
|
-
s.homepage = "http://wiki.github.com/cxn03651/writeexcel/"
|
266
|
-
s.require_paths = ["lib"]
|
267
|
-
s.rubygems_version = "1.8.10"
|
268
|
-
s.summary = "Write to a cross-platform Excel binary file."
|
269
|
-
|
270
|
-
if s.respond_to? :specification_version then
|
271
|
-
s.specification_version = 3
|
272
|
-
|
273
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
274
|
-
else
|
275
|
-
end
|
276
|
-
else
|
277
|
-
end
|
278
23
|
end
|
279
|
-
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: writeexcel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.17
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,22 +9,26 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-08 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Multiple worksheets can be added to a workbook and formatting can be
|
15
15
|
applied to cells. Text, numbers, formulas, hyperlinks and images can be written
|
16
16
|
to the cells.
|
17
|
-
email:
|
17
|
+
email:
|
18
|
+
- cxn03651@msj.biglobe.ne.jp
|
18
19
|
executables: []
|
19
20
|
extensions: []
|
20
21
|
extra_rdoc_files:
|
22
|
+
- LICENSE.txt
|
21
23
|
- README.rdoc
|
22
24
|
files:
|
23
25
|
- .document
|
24
26
|
- .gitattributes
|
27
|
+
- .gitignore
|
28
|
+
- Gemfile
|
29
|
+
- LICENSE.txt
|
25
30
|
- README.rdoc
|
26
31
|
- Rakefile
|
27
|
-
- VERSION
|
28
32
|
- charts/chartex.rb
|
29
33
|
- charts/demo1.rb
|
30
34
|
- charts/demo101.bin
|
@@ -136,6 +140,7 @@ files:
|
|
136
140
|
- lib/writeexcel/properties.rb
|
137
141
|
- lib/writeexcel/shared_string_table.rb
|
138
142
|
- lib/writeexcel/storage_lite.rb
|
143
|
+
- lib/writeexcel/version.rb
|
139
144
|
- lib/writeexcel/workbook.rb
|
140
145
|
- lib/writeexcel/worksheet.rb
|
141
146
|
- lib/writeexcel/worksheets.rb
|
@@ -164,6 +169,7 @@ files:
|
|
164
169
|
- test/perl_output/comments0.xls
|
165
170
|
- test/perl_output/comments1.xls
|
166
171
|
- test/perl_output/comments2.xls
|
172
|
+
- test/perl_output/compatibility_mode.xls
|
167
173
|
- test/perl_output/data_validate.xls
|
168
174
|
- test/perl_output/date_time.xls
|
169
175
|
- test/perl_output/defined_name.xls
|
@@ -265,7 +271,7 @@ files:
|
|
265
271
|
- utils/add_magic_comment.rb
|
266
272
|
- writeexcel.gemspec
|
267
273
|
- writeexcel.rdoc
|
268
|
-
homepage: http://
|
274
|
+
homepage: http://github.com/cxn03651/writeexcel#readme
|
269
275
|
licenses: []
|
270
276
|
post_install_message:
|
271
277
|
rdoc_options: []
|
@@ -285,8 +291,131 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
285
291
|
version: '0'
|
286
292
|
requirements: []
|
287
293
|
rubyforge_project:
|
288
|
-
rubygems_version: 1.8.
|
294
|
+
rubygems_version: 1.8.25
|
289
295
|
signing_key:
|
290
296
|
specification_version: 3
|
291
297
|
summary: Write to a cross-platform Excel binary file.
|
292
|
-
test_files:
|
298
|
+
test_files:
|
299
|
+
- test/excelfile/Chart1.xls
|
300
|
+
- test/excelfile/Chart2.xls
|
301
|
+
- test/excelfile/Chart3.xls
|
302
|
+
- test/excelfile/Chart4.xls
|
303
|
+
- test/excelfile/Chart5.xls
|
304
|
+
- test/helper.rb
|
305
|
+
- test/perl_output/Chart1.xls.data
|
306
|
+
- test/perl_output/Chart2.xls.data
|
307
|
+
- test/perl_output/Chart3.xls.data
|
308
|
+
- test/perl_output/Chart4.xls.data
|
309
|
+
- test/perl_output/Chart5.xls.data
|
310
|
+
- test/perl_output/README
|
311
|
+
- test/perl_output/a_simple.xls
|
312
|
+
- test/perl_output/autofilter.xls
|
313
|
+
- test/perl_output/biff_add_continue_testdata
|
314
|
+
- test/perl_output/chart_area.xls
|
315
|
+
- test/perl_output/chart_bar.xls
|
316
|
+
- test/perl_output/chart_column.xls
|
317
|
+
- test/perl_output/chart_line.xls
|
318
|
+
- test/perl_output/chess.xls
|
319
|
+
- test/perl_output/colors.xls
|
320
|
+
- test/perl_output/comments0.xls
|
321
|
+
- test/perl_output/comments1.xls
|
322
|
+
- test/perl_output/comments2.xls
|
323
|
+
- test/perl_output/compatibility_mode.xls
|
324
|
+
- test/perl_output/data_validate.xls
|
325
|
+
- test/perl_output/date_time.xls
|
326
|
+
- test/perl_output/defined_name.xls
|
327
|
+
- test/perl_output/demo.xls
|
328
|
+
- test/perl_output/demo101.bin
|
329
|
+
- test/perl_output/demo201.bin
|
330
|
+
- test/perl_output/demo301.bin
|
331
|
+
- test/perl_output/demo401.bin
|
332
|
+
- test/perl_output/demo501.bin
|
333
|
+
- test/perl_output/diag_border.xls
|
334
|
+
- test/perl_output/f_font_biff
|
335
|
+
- test/perl_output/f_font_key
|
336
|
+
- test/perl_output/f_xf_biff
|
337
|
+
- test/perl_output/file_font_biff
|
338
|
+
- test/perl_output/file_font_key
|
339
|
+
- test/perl_output/file_xf_biff
|
340
|
+
- test/perl_output/formula_result.xls
|
341
|
+
- test/perl_output/headers.xls
|
342
|
+
- test/perl_output/hidden.xls
|
343
|
+
- test/perl_output/hide_zero.xls
|
344
|
+
- test/perl_output/hyperlink.xls
|
345
|
+
- test/perl_output/images.xls
|
346
|
+
- test/perl_output/indent.xls
|
347
|
+
- test/perl_output/merge1.xls
|
348
|
+
- test/perl_output/merge2.xls
|
349
|
+
- test/perl_output/merge3.xls
|
350
|
+
- test/perl_output/merge4.xls
|
351
|
+
- test/perl_output/merge5.xls
|
352
|
+
- test/perl_output/merge6.xls
|
353
|
+
- test/perl_output/more_than_10_sheets_reference.xls
|
354
|
+
- test/perl_output/ole_write_header
|
355
|
+
- test/perl_output/outline.xls
|
356
|
+
- test/perl_output/outline_collapsed.xls
|
357
|
+
- test/perl_output/panes.xls
|
358
|
+
- test/perl_output/password_protection.xls
|
359
|
+
- test/perl_output/protection.xls
|
360
|
+
- test/perl_output/regions.xls
|
361
|
+
- test/perl_output/right_to_left.xls
|
362
|
+
- test/perl_output/set_first_sheet.xls
|
363
|
+
- test/perl_output/stats.xls
|
364
|
+
- test/perl_output/stocks.xls
|
365
|
+
- test/perl_output/store_formula.xls
|
366
|
+
- test/perl_output/tab_colors.xls
|
367
|
+
- test/perl_output/unicode_cyrillic.xls
|
368
|
+
- test/perl_output/utf8.xls
|
369
|
+
- test/perl_output/workbook1.xls
|
370
|
+
- test/perl_output/workbook2.xls
|
371
|
+
- test/perl_output/ws_colinfo
|
372
|
+
- test/perl_output/ws_store_colinfo
|
373
|
+
- test/perl_output/ws_store_dimensions
|
374
|
+
- test/perl_output/ws_store_filtermode
|
375
|
+
- test/perl_output/ws_store_filtermode_off
|
376
|
+
- test/perl_output/ws_store_filtermode_on
|
377
|
+
- test/perl_output/ws_store_selection
|
378
|
+
- test/perl_output/ws_store_window2
|
379
|
+
- test/republic.png
|
380
|
+
- test/test_00_IEEE_double.rb
|
381
|
+
- test/test_01_add_worksheet.rb
|
382
|
+
- test/test_02_merge_formats.rb
|
383
|
+
- test/test_04_dimensions.rb
|
384
|
+
- test/test_05_rows.rb
|
385
|
+
- test/test_06_extsst.rb
|
386
|
+
- test/test_11_date_time.rb
|
387
|
+
- test/test_12_date_only.rb
|
388
|
+
- test/test_13_date_seconds.rb
|
389
|
+
- test/test_21_escher.rb
|
390
|
+
- test/test_22_mso_drawing_group.rb
|
391
|
+
- test/test_23_note.rb
|
392
|
+
- test/test_24_txo.rb
|
393
|
+
- test/test_25_position_object.rb
|
394
|
+
- test/test_26_autofilter.rb
|
395
|
+
- test/test_27_autofilter.rb
|
396
|
+
- test/test_28_autofilter.rb
|
397
|
+
- test/test_29_process_jpg.rb
|
398
|
+
- test/test_30_validation_dval.rb
|
399
|
+
- test/test_31_validation_dv_strings.rb
|
400
|
+
- test/test_32_validation_dv_formula.rb
|
401
|
+
- test/test_40_property_types.rb
|
402
|
+
- test/test_41_properties.rb
|
403
|
+
- test/test_42_set_properties.rb
|
404
|
+
- test/test_50_name_stored.rb
|
405
|
+
- test/test_51_name_print_area.rb
|
406
|
+
- test/test_52_name_print_titles.rb
|
407
|
+
- test/test_53_autofilter.rb
|
408
|
+
- test/test_60_chart_generic.rb
|
409
|
+
- test/test_61_chart_subclasses.rb
|
410
|
+
- test/test_62_chart_formats.rb
|
411
|
+
- test/test_63_chart_area_formats.rb
|
412
|
+
- test/test_biff.rb
|
413
|
+
- test/test_big_workbook.rb
|
414
|
+
- test/test_compatibility.rb
|
415
|
+
- test/test_example_match.rb
|
416
|
+
- test/test_format.rb
|
417
|
+
- test/test_formula.rb
|
418
|
+
- test/test_ole.rb
|
419
|
+
- test/test_storage_lite.rb
|
420
|
+
- test/test_workbook.rb
|
421
|
+
- test/test_worksheet.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.6.16
|