write_xlsx 0.72.2 → 0.72.3.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/{README.rdoc → Changes} +3 -94
- data/README.md +96 -0
- data/lib/write_xlsx/chart.rb +115 -259
- data/lib/write_xlsx/chart/axis.rb +4 -4
- data/lib/write_xlsx/chart/bar.rb +1 -1
- data/lib/write_xlsx/chart/column.rb +1 -1
- data/lib/write_xlsx/chart/pie.rb +3 -3
- data/lib/write_xlsx/chart/radar.rb +1 -1
- data/lib/write_xlsx/chart/scatter.rb +1 -1
- data/lib/write_xlsx/chart/series.rb +0 -37
- data/lib/write_xlsx/chartsheet.rb +25 -37
- data/lib/write_xlsx/col_name.rb +40 -0
- data/lib/write_xlsx/drawing.rb +95 -85
- data/lib/write_xlsx/format.rb +32 -32
- data/lib/write_xlsx/package/app.rb +18 -23
- data/lib/write_xlsx/package/button.rb +15 -12
- data/lib/write_xlsx/package/comments.rb +33 -30
- data/lib/write_xlsx/package/conditional_format.rb +18 -14
- data/lib/write_xlsx/package/content_types.rb +22 -17
- data/lib/write_xlsx/package/core.rb +19 -24
- data/lib/write_xlsx/package/relationships.rb +10 -13
- data/lib/write_xlsx/package/shared_strings.rb +8 -16
- data/lib/write_xlsx/package/styles.rb +59 -64
- data/lib/write_xlsx/package/table.rb +27 -37
- data/lib/write_xlsx/package/vml.rb +23 -21
- data/lib/write_xlsx/package/xml_writer_simple.rb +3 -6
- data/lib/write_xlsx/sheets.rb +4 -4
- data/lib/write_xlsx/sparkline.rb +22 -22
- data/lib/write_xlsx/utility.rb +61 -33
- data/lib/write_xlsx/version.rb +1 -1
- data/lib/write_xlsx/workbook.rb +46 -50
- data/lib/write_xlsx/worksheet.rb +149 -133
- data/lib/write_xlsx/worksheet/cell_data.rb +8 -6
- data/lib/write_xlsx/worksheet/data_validation.rb +14 -14
- data/lib/write_xlsx/worksheet/hyperlink.rb +97 -65
- data/lib/write_xlsx/worksheet/page_setup.rb +23 -22
- data/test/chart/test_write_a_latin.rb +3 -3
- data/test/regression/test_chart_font01.rb +1 -1
- data/test/regression/test_chart_font02.rb +1 -1
- data/test/regression/test_chart_font03.rb +1 -1
- data/test/regression/test_chart_font04.rb +1 -1
- data/test/regression/test_chart_font05.rb +1 -1
- data/test/regression/test_chart_font06.rb +1 -1
- data/test/test_xml_writer_simple.rb +3 -3
- data/test/worksheet/test_write_hyperlink.rb +4 -4
- data/test/worksheet/test_write_worksheet_attributes.rb +3 -3
- data/write_xlsx.gemspec +2 -1
- metadata +9 -8
- data/test/package/table/test_write_xml_declaration.rb +0 -20
@@ -13,9 +13,9 @@ def setup
|
|
13
13
|
def test_write_worksheet_attributes
|
14
14
|
result = @worksheet.__send__('write_worksheet_attributes')
|
15
15
|
expected = [
|
16
|
-
'xmlns', "http://schemas.openxmlformats.org/spreadsheetml/2006/main",
|
17
|
-
'xmlns:r', "http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
18
|
-
|
16
|
+
['xmlns', "http://schemas.openxmlformats.org/spreadsheetml/2006/main"],
|
17
|
+
['xmlns:r', "http://schemas.openxmlformats.org/officeDocument/2006/relationships"]
|
18
|
+
]
|
19
19
|
assert_equal(expected, result)
|
20
20
|
end
|
21
21
|
end
|
data/write_xlsx.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: write_xlsx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.72.
|
4
|
+
version: 0.72.3.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hideo NAKAMURA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-09-
|
11
|
+
date: 2013-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubyzip
|
@@ -46,14 +46,16 @@ executables:
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files:
|
48
48
|
- LICENSE.txt
|
49
|
-
- README.
|
49
|
+
- README.md
|
50
|
+
- Changes
|
50
51
|
files:
|
51
52
|
- .document
|
52
53
|
- .gitattributes
|
53
54
|
- .gitignore
|
55
|
+
- Changes
|
54
56
|
- Gemfile
|
55
57
|
- LICENSE.txt
|
56
|
-
- README.
|
58
|
+
- README.md
|
57
59
|
- Rakefile
|
58
60
|
- bin/extract_vba.rb
|
59
61
|
- examples/a_simple.rb
|
@@ -133,6 +135,7 @@ files:
|
|
133
135
|
- lib/write_xlsx/chart/series.rb
|
134
136
|
- lib/write_xlsx/chart/stock.rb
|
135
137
|
- lib/write_xlsx/chartsheet.rb
|
138
|
+
- lib/write_xlsx/col_name.rb
|
136
139
|
- lib/write_xlsx/colors.rb
|
137
140
|
- lib/write_xlsx/compatibility.rb
|
138
141
|
- lib/write_xlsx/drawing.rb
|
@@ -260,7 +263,6 @@ files:
|
|
260
263
|
- test/package/table/test_write_auto_filter.rb
|
261
264
|
- test/package/table/test_write_table_column.rb
|
262
265
|
- test/package/table/test_write_table_style_info.rb
|
263
|
-
- test/package/table/test_write_xml_declaration.rb
|
264
266
|
- test/package/vml/test_write_auto_fill.rb
|
265
267
|
- test/package/vml/test_write_div.rb
|
266
268
|
- test/package/vml/test_write_idmap.rb
|
@@ -1292,9 +1294,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1292
1294
|
version: '0'
|
1293
1295
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1294
1296
|
requirements:
|
1295
|
-
- - '
|
1297
|
+
- - '>'
|
1296
1298
|
- !ruby/object:Gem::Version
|
1297
|
-
version:
|
1299
|
+
version: 1.3.1
|
1298
1300
|
requirements: []
|
1299
1301
|
rubyforge_project:
|
1300
1302
|
rubygems_version: 2.0.3
|
@@ -1399,7 +1401,6 @@ test_files:
|
|
1399
1401
|
- test/package/table/test_write_auto_filter.rb
|
1400
1402
|
- test/package/table/test_write_table_column.rb
|
1401
1403
|
- test/package/table/test_write_table_style_info.rb
|
1402
|
-
- test/package/table/test_write_xml_declaration.rb
|
1403
1404
|
- test/package/vml/test_write_auto_fill.rb
|
1404
1405
|
- test/package/vml/test_write_div.rb
|
1405
1406
|
- test/package/vml/test_write_idmap.rb
|
@@ -1,20 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
require 'helper'
|
3
|
-
require 'write_xlsx/package/table'
|
4
|
-
|
5
|
-
class TestTableWriteXmlDeclaration < Test::Unit::TestCase
|
6
|
-
def setup
|
7
|
-
workbook = WriteXLSX.new(StringIO.new)
|
8
|
-
@worksheet = workbook.add_worksheet
|
9
|
-
end
|
10
|
-
|
11
|
-
def test_table_write_xml_declaration
|
12
|
-
expected = %Q{<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n}
|
13
|
-
|
14
|
-
table = Writexlsx::Package::Table.new(@worksheet, 0, 1, 1, 2, 2)
|
15
|
-
table.__send__(:write_xml_declaration)
|
16
|
-
result = table.instance_variable_get(:@writer).string
|
17
|
-
|
18
|
-
assert_equal(expected, result)
|
19
|
-
end
|
20
|
-
end
|