axlsx 1.1.4 → 1.1.5
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/README.md +10 -3
- data/Rakefile +7 -1
- data/examples/chart_colors.rb +1 -1
- data/examples/chart_colors.xlsx +0 -0
- data/examples/doc/_index.html +84 -0
- data/examples/doc/class_list.html +47 -0
- data/examples/doc/css/common.css +1 -0
- data/examples/doc/css/full_list.css +55 -0
- data/examples/doc/css/style.css +322 -0
- data/examples/doc/file_list.html +46 -0
- data/examples/doc/frames.html +13 -0
- data/examples/doc/index.html +84 -0
- data/examples/doc/js/app.js +205 -0
- data/examples/doc/js/full_list.js +173 -0
- data/examples/doc/js/jquery.js +16 -0
- data/examples/doc/method_list.html +46 -0
- data/examples/doc/top-level-namespace.html +95 -0
- data/examples/example.rb +12 -5
- data/examples/example.xlsx +0 -0
- data/examples/example_streamed.xlsx +0 -0
- data/examples/extractive.rb +3 -0
- data/lib/axlsx.rb +4 -4
- data/lib/axlsx/drawing/drawing.rb +7 -2
- data/lib/axlsx/drawing/graphic_frame.rb +2 -1
- data/lib/axlsx/drawing/num_data_source.rb +3 -0
- data/lib/axlsx/drawing/vml_drawing.rb +42 -0
- data/lib/axlsx/drawing/vml_drawing.rb~ +6 -0
- data/lib/axlsx/drawing/vml_shape.rb +128 -0
- data/lib/axlsx/drawing/vml_shape.rb~ +61 -0
- data/lib/axlsx/package.rb +24 -0
- data/lib/axlsx/rels/relationships.rb +0 -10
- data/lib/axlsx/stylesheet/gradient_fill.rb +1 -1
- data/lib/axlsx/util/constants.rb +24 -0
- data/lib/axlsx/util/validators.rb +32 -4
- data/lib/axlsx/version.rb +1 -1
- data/lib/axlsx/workbook/workbook.rb +21 -0
- data/lib/axlsx/workbook/worksheet/cell.rb +4 -2
- data/lib/axlsx/workbook/worksheet/comment.rb +107 -0
- data/lib/axlsx/workbook/worksheet/comment.rb~ +91 -0
- data/lib/axlsx/workbook/worksheet/comments.rb +77 -0
- data/lib/axlsx/workbook/worksheet/comments.rb~ +86 -0
- data/lib/axlsx/workbook/worksheet/page_setup.rb +90 -0
- data/lib/axlsx/workbook/worksheet/print_options.rb +63 -0
- data/lib/axlsx/workbook/worksheet/row.rb +2 -2
- data/lib/axlsx/workbook/worksheet/worksheet.rb +72 -9
- data/test/doc_props/tc_core.rb +3 -1
- data/test/drawing/tc_hyperlink.rb +4 -0
- data/test/drawing/tc_line_series.rb +6 -2
- data/test/drawing/tc_pie_series.rb +6 -1
- data/test/drawing/tc_vml_drawing.rb +25 -0
- data/{examples/#extractive.csv# → test/drawing/tc_vml_drawing.rb~} +0 -0
- data/test/drawing/tc_vml_shape.rb +100 -0
- data/test/rels/tc_relationship.rb +1 -0
- data/test/stylesheet/tc_gradient_fill.rb +8 -0
- data/test/stylesheet/tc_pattern_fill.rb +7 -1
- data/test/tc_helper.rb +1 -0
- data/test/tc_package.rb +16 -5
- data/test/util/tc_validators.rb +29 -0
- data/test/workbook/worksheet/tc_cell.rb +17 -0
- data/test/workbook/worksheet/tc_comment.rb +56 -0
- data/test/workbook/worksheet/tc_comments.rb +50 -0
- data/test/workbook/worksheet/tc_page_setup.rb +103 -0
- data/test/workbook/worksheet/tc_print_options.rb +72 -0
- data/test/workbook/worksheet/tc_row.rb +19 -13
- data/test/workbook/worksheet/tc_worksheet.rb +60 -7
- metadata +56 -24
- data/examples/#extractive.rb# +0 -45
- data/examples/chart_colors.rb~ +0 -0
- data/examples/colored_series_data.xlsx +0 -0
- data/examples/example.csv +0 -1000
- data/examples/extractive.csv +0 -1
- data/examples/extractive.csv~ +0 -1
- data/examples/extractive.rb~ +0 -3
- data/examples/extractive.xlsx +0 -0
- data/examples/no-use_autowidth.xlsx +0 -0
- data/examples/shared_strings_example.xlsx +0 -0
- data/examples/stack.rb +0 -21
- data/examples/stack.rb~ +0 -27
- data/examples/stack.xlsx +0 -0
- data/examples/~$chart_colors.xlsx +0 -0
- data/examples/~$extractive.xlsx +0 -0
@@ -0,0 +1,103 @@
|
|
1
|
+
require 'tc_helper.rb'
|
2
|
+
|
3
|
+
class TestPageSetup < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def setup
|
6
|
+
p = Axlsx::Package.new
|
7
|
+
ws = p.workbook.add_worksheet :name => "hmmm"
|
8
|
+
@ps = ws.page_setup
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_initialize
|
12
|
+
assert_equal(nil, @ps.fit_to_height)
|
13
|
+
assert_equal(nil, @ps.fit_to_width)
|
14
|
+
assert_equal(nil, @ps.orientation)
|
15
|
+
assert_equal(nil, @ps.paper_height)
|
16
|
+
assert_equal(nil, @ps.paper_width)
|
17
|
+
assert_equal(nil, @ps.scale)
|
18
|
+
end
|
19
|
+
|
20
|
+
def test_initialize_with_options
|
21
|
+
optioned = Axlsx::PageSetup.new(:fit_to_height => 1, :fit_to_width => 2, :orientation => :landscape, :paper_height => "297mm", :paper_width => "210mm", :scale => 50)
|
22
|
+
assert_equal(1, optioned.fit_to_height)
|
23
|
+
assert_equal(2, optioned.fit_to_width)
|
24
|
+
assert_equal(:landscape, optioned.orientation)
|
25
|
+
assert_equal("297mm", optioned.paper_height)
|
26
|
+
assert_equal("210mm", optioned.paper_width)
|
27
|
+
assert_equal(50, optioned.scale)
|
28
|
+
end
|
29
|
+
|
30
|
+
def test_set_all_values
|
31
|
+
@ps.set(:fit_to_height => 1, :fit_to_width => 2, :orientation => :landscape, :paper_height => "297mm", :paper_width => "210mm", :scale => 50)
|
32
|
+
assert_equal(1, @ps.fit_to_height)
|
33
|
+
assert_equal(2, @ps.fit_to_width)
|
34
|
+
assert_equal(:landscape, @ps.orientation)
|
35
|
+
assert_equal("297mm", @ps.paper_height)
|
36
|
+
assert_equal("210mm", @ps.paper_width)
|
37
|
+
assert_equal(50, @ps.scale)
|
38
|
+
end
|
39
|
+
|
40
|
+
def test_set_some_values
|
41
|
+
@ps.set(:fit_to_width => 2, :orientation => :portrait)
|
42
|
+
assert_equal(2, @ps.fit_to_width)
|
43
|
+
assert_equal(:portrait, @ps.orientation)
|
44
|
+
assert_equal(nil, @ps.fit_to_height)
|
45
|
+
assert_equal(nil, @ps.paper_height)
|
46
|
+
assert_equal(nil, @ps.paper_width)
|
47
|
+
assert_equal(nil, @ps.scale)
|
48
|
+
end
|
49
|
+
|
50
|
+
def test_to_xml_all_values
|
51
|
+
@ps.set(:fit_to_height => 1, :fit_to_width => 2, :orientation => :landscape, :paper_height => "297mm", :paper_width => "210mm", :scale => 50)
|
52
|
+
doc = Nokogiri::XML.parse(@ps.to_xml_string)
|
53
|
+
assert_equal(1, doc.xpath(".//pageSetup[@fitToHeight='1'][@fitToWidth='2'][@orientation='landscape'][@paperHeight='297mm'][@paperWidth='210mm'][@scale='50']").size)
|
54
|
+
end
|
55
|
+
|
56
|
+
def test_to_xml_some_values
|
57
|
+
@ps.set(:orientation => :portrait)
|
58
|
+
doc = Nokogiri::XML.parse(@ps.to_xml_string)
|
59
|
+
assert_equal(1, doc.xpath(".//pageSetup[@orientation='portrait']").size)
|
60
|
+
assert_equal(0, doc.xpath(".//pageSetup[@fitToHeight]").size)
|
61
|
+
assert_equal(0, doc.xpath(".//pageSetup[@fitToWidth]").size)
|
62
|
+
assert_equal(0, doc.xpath(".//pageSetup[@paperHeight]").size)
|
63
|
+
assert_equal(0, doc.xpath(".//pageSetup[@paperWidth]").size)
|
64
|
+
assert_equal(0, doc.xpath(".//pageSetup[@scale]").size)
|
65
|
+
end
|
66
|
+
|
67
|
+
def test_fit_to_height
|
68
|
+
assert_raise(ArgumentError) { @ps.fit_to_height = 1.5 }
|
69
|
+
assert_nothing_raised { @ps.fit_to_height = 2 }
|
70
|
+
assert_equal(2, @ps.fit_to_height)
|
71
|
+
end
|
72
|
+
|
73
|
+
def test_fit_to_width
|
74
|
+
assert_raise(ArgumentError) { @ps.fit_to_width = false }
|
75
|
+
assert_nothing_raised { @ps.fit_to_width = 1 }
|
76
|
+
assert_equal(1, @ps.fit_to_width)
|
77
|
+
end
|
78
|
+
|
79
|
+
def test_orientation
|
80
|
+
assert_raise(ArgumentError) { @ps.orientation = "" }
|
81
|
+
assert_nothing_raised { @ps.orientation = :default }
|
82
|
+
assert_equal(:default, @ps.orientation)
|
83
|
+
end
|
84
|
+
|
85
|
+
def test_paper_height
|
86
|
+
assert_raise(ArgumentError) { @ps.paper_height = 99 }
|
87
|
+
assert_nothing_raised { @ps.paper_height = "11in" }
|
88
|
+
assert_equal("11in", @ps.paper_height)
|
89
|
+
end
|
90
|
+
|
91
|
+
def test_paper_width
|
92
|
+
assert_raise(ArgumentError) { @ps.paper_width = "22" }
|
93
|
+
assert_nothing_raised { @ps.paper_width = "29.7cm" }
|
94
|
+
assert_equal("29.7cm", @ps.paper_width)
|
95
|
+
end
|
96
|
+
|
97
|
+
def test_scale
|
98
|
+
assert_raise(ArgumentError) { @ps.scale = 50.5 }
|
99
|
+
assert_nothing_raised { @ps.scale = 99 }
|
100
|
+
assert_equal(99, @ps.scale)
|
101
|
+
end
|
102
|
+
|
103
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
require 'tc_helper.rb'
|
2
|
+
|
3
|
+
class TestPrintOptions < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def setup
|
6
|
+
p = Axlsx::Package.new
|
7
|
+
ws = p.workbook.add_worksheet :name => "hmmm"
|
8
|
+
@po = ws.print_options
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_initialize
|
12
|
+
assert_equal(false, @po.grid_lines)
|
13
|
+
assert_equal(false, @po.headings)
|
14
|
+
assert_equal(false, @po.horizontal_centered)
|
15
|
+
assert_equal(false, @po.vertical_centered)
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_initialize_with_options
|
19
|
+
optioned = Axlsx::PrintOptions.new(:grid_lines => true, :headings => true, :horizontal_centered => true, :vertical_centered => true)
|
20
|
+
assert_equal(true, optioned.grid_lines)
|
21
|
+
assert_equal(true, optioned.headings)
|
22
|
+
assert_equal(true, optioned.horizontal_centered)
|
23
|
+
assert_equal(true, optioned.vertical_centered)
|
24
|
+
end
|
25
|
+
|
26
|
+
def test_set_all_values
|
27
|
+
@po.set(:grid_lines => true, :headings => true, :horizontal_centered => true, :vertical_centered => true)
|
28
|
+
assert_equal(true, @po.grid_lines)
|
29
|
+
assert_equal(true, @po.headings)
|
30
|
+
assert_equal(true, @po.horizontal_centered)
|
31
|
+
assert_equal(true, @po.vertical_centered)
|
32
|
+
end
|
33
|
+
|
34
|
+
def test_set_some_values
|
35
|
+
@po.set(:grid_lines => true, :headings => true)
|
36
|
+
assert_equal(true, @po.grid_lines)
|
37
|
+
assert_equal(true, @po.headings)
|
38
|
+
assert_equal(false, @po.horizontal_centered)
|
39
|
+
assert_equal(false, @po.vertical_centered)
|
40
|
+
end
|
41
|
+
|
42
|
+
def test_to_xml
|
43
|
+
@po.set(:grid_lines => true, :headings => true, :horizontal_centered => true, :vertical_centered => true)
|
44
|
+
doc = Nokogiri::XML.parse(@po.to_xml_string)
|
45
|
+
assert_equal(1, doc.xpath(".//printOptions[@gridLines='true'][@headings='true'][@horizontalCentered='true'][@verticalCentered='true']").size)
|
46
|
+
end
|
47
|
+
|
48
|
+
def test_grid_lines
|
49
|
+
assert_raise(ArgumentError) { @po.grid_lines = 99 }
|
50
|
+
assert_nothing_raised { @po.grid_lines = true }
|
51
|
+
assert_equal(@po.grid_lines, true)
|
52
|
+
end
|
53
|
+
|
54
|
+
def test_headings
|
55
|
+
assert_raise(ArgumentError) { @po.headings = 99 }
|
56
|
+
assert_nothing_raised { @po.headings = true }
|
57
|
+
assert_equal(@po.headings, true)
|
58
|
+
end
|
59
|
+
|
60
|
+
def test_horizontal_centered
|
61
|
+
assert_raise(ArgumentError) { @po.horizontal_centered = 99 }
|
62
|
+
assert_nothing_raised { @po.horizontal_centered = true }
|
63
|
+
assert_equal(@po.horizontal_centered, true)
|
64
|
+
end
|
65
|
+
|
66
|
+
def test_vertical_centered
|
67
|
+
assert_raise(ArgumentError) { @po.vertical_centered = 99 }
|
68
|
+
assert_nothing_raised { @po.vertical_centered = true }
|
69
|
+
assert_equal(@po.vertical_centered, true)
|
70
|
+
end
|
71
|
+
|
72
|
+
end
|
@@ -27,18 +27,6 @@ class TestRow < Test::Unit::TestCase
|
|
27
27
|
r.cells.each { |c| assert_equal(c.style,1) }
|
28
28
|
end
|
29
29
|
|
30
|
-
def test_nil_cells
|
31
|
-
row = @ws.add_row([nil,1,2,nil,4,5,nil])
|
32
|
-
r_s_xml = Nokogiri::XML(row.to_xml_string(0, ''))
|
33
|
-
assert_equal(r_s_xml.xpath(".//row/c").size, 4)
|
34
|
-
end
|
35
|
-
|
36
|
-
def test_nil_cell_r
|
37
|
-
row = @ws.add_row([nil,1,2,nil,4,5,nil])
|
38
|
-
r_s_xml = Nokogiri::XML(row.to_xml_string(0, ''))
|
39
|
-
assert_equal(r_s_xml.xpath(".//row/c").first['r'], 'B1')
|
40
|
-
assert_equal(r_s_xml.xpath(".//row/c").last['r'], 'F1')
|
41
|
-
end
|
42
30
|
|
43
31
|
def test_index
|
44
32
|
assert_equal(@row.index, @row.worksheet.rows.index(@row))
|
@@ -78,7 +66,25 @@ class TestRow < Test::Unit::TestCase
|
|
78
66
|
assert_equal(15, @row.height)
|
79
67
|
end
|
80
68
|
|
81
|
-
def
|
69
|
+
def test_hidden
|
70
|
+
assert_raise(ArgumentError) { @row.hidden = -3 }
|
71
|
+
assert_nothing_raised { @row.hidden = true }
|
72
|
+
assert_equal(true, @row.hidden)
|
73
|
+
end
|
74
|
+
|
75
|
+
def test_collapsed
|
76
|
+
assert_raise(ArgumentError) { @row.collapsed = -3 }
|
77
|
+
assert_nothing_raised { @row.collapsed = true }
|
78
|
+
assert_equal(true, @row.collapsed)
|
79
|
+
end
|
80
|
+
|
81
|
+
def test_outlineLevel
|
82
|
+
assert_raise(ArgumentError) { @row.outlineLevel = -3 }
|
83
|
+
assert_nothing_raised { @row.outlineLevel = 2 }
|
84
|
+
assert_equal(2, @row.outlineLevel)
|
85
|
+
end
|
86
|
+
|
87
|
+
def test_to_xml_without_custom_height
|
82
88
|
doc = Nokogiri::XML.parse(@row.to_xml_string(0))
|
83
89
|
assert_equal(0, doc.xpath(".//row[@ht]").size)
|
84
90
|
assert_equal(0, doc.xpath(".//row[@customHeight]").size)
|
@@ -25,6 +25,28 @@ class TestWorksheet < Test::Unit::TestCase
|
|
25
25
|
end
|
26
26
|
end
|
27
27
|
|
28
|
+
def test_page_setup
|
29
|
+
assert(@ws.page_setup.is_a? Axlsx::PageSetup)
|
30
|
+
end
|
31
|
+
|
32
|
+
def test_page_setup_yield
|
33
|
+
@ws.page_setup do |ps|
|
34
|
+
assert(ps.is_a? Axlsx::PageSetup)
|
35
|
+
assert(@ws.page_setup == ps)
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
def test_print_options
|
40
|
+
assert(@ws.print_options.is_a? Axlsx::PrintOptions)
|
41
|
+
end
|
42
|
+
|
43
|
+
def test_print_options_yield
|
44
|
+
@ws.print_options do |po|
|
45
|
+
assert(po.is_a? Axlsx::PrintOptions)
|
46
|
+
assert(@ws.print_options == po)
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
28
50
|
def test_no_autowidth
|
29
51
|
@ws.workbook.use_autowidth = false
|
30
52
|
@ws.add_row [1,2,3,4]
|
@@ -33,16 +55,22 @@ class TestWorksheet < Test::Unit::TestCase
|
|
33
55
|
|
34
56
|
def test_initialization_options
|
35
57
|
page_margins = {:left => 2, :right => 2, :bottom => 2, :top => 2, :header => 2, :footer => 2}
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
58
|
+
page_setup = {:fit_to_height => 1, :fit_to_width => 1, :orientation => :landscape, :paper_width => "210mm", :paper_height => "297mm", :scale => 80}
|
59
|
+
print_options = {:grid_lines => true, :headings => true, :horizontal_centered => true, :vertical_centered => true}
|
60
|
+
optioned = @ws.workbook.add_worksheet(:name => 'bob', :page_margins => page_margins, :page_setup => page_setup, :print_options => print_options, :selected => true, :show_gridlines => false)
|
61
|
+
page_margins.keys.each do |key|
|
62
|
+
assert_equal(page_margins[key], optioned.page_margins.send(key))
|
63
|
+
end
|
64
|
+
page_setup.keys.each do |key|
|
65
|
+
assert_equal(page_setup[key], optioned.page_setup.send(key))
|
66
|
+
end
|
67
|
+
print_options.keys.each do |key|
|
68
|
+
assert_equal(print_options[key], optioned.print_options.send(key))
|
69
|
+
end
|
43
70
|
assert_equal(optioned.name, 'bob')
|
44
71
|
assert_equal(optioned.selected, true)
|
45
72
|
assert_equal(optioned.show_gridlines, false)
|
73
|
+
|
46
74
|
end
|
47
75
|
|
48
76
|
|
@@ -222,6 +250,24 @@ class TestWorksheet < Test::Unit::TestCase
|
|
222
250
|
assert_equal(doc.xpath('//xmlns:worksheet/xmlns:pageMargins[@left="9"][@right="7"]').size, 1)
|
223
251
|
end
|
224
252
|
|
253
|
+
def test_to_xml_string_page_setup
|
254
|
+
@ws.page_setup do |ps|
|
255
|
+
ps.paper_width = "210mm"
|
256
|
+
ps.scale = 80
|
257
|
+
end
|
258
|
+
doc = Nokogiri::XML(@ws.to_xml_string)
|
259
|
+
assert_equal(doc.xpath('//xmlns:worksheet/xmlns:pageSetup[@paperWidth="210mm"][@scale="80"]').size, 1)
|
260
|
+
end
|
261
|
+
|
262
|
+
def test_to_xml_string_print_options
|
263
|
+
@ws.print_options do |po|
|
264
|
+
po.grid_lines = true
|
265
|
+
po.horizontal_centered = true
|
266
|
+
end
|
267
|
+
doc = Nokogiri::XML(@ws.to_xml_string)
|
268
|
+
assert_equal(doc.xpath('//xmlns:worksheet/xmlns:printOptions[@gridLines="true"][@horizontalCentered="true"]').size, 1)
|
269
|
+
end
|
270
|
+
|
225
271
|
def test_to_xml_string_drawing
|
226
272
|
c = @ws.add_chart Axlsx::Pie3DChart
|
227
273
|
doc = Nokogiri::XML(@ws.to_xml_string)
|
@@ -258,6 +304,8 @@ class TestWorksheet < Test::Unit::TestCase
|
|
258
304
|
# is generated in correct order.
|
259
305
|
def test_valid_with_optional_elements
|
260
306
|
@ws.page_margins.set :left => 9
|
307
|
+
@ws.page_setup.set :fit_to_width => 1
|
308
|
+
@ws.print_options.set :headings => true
|
261
309
|
@ws.auto_filter = "A1:C3"
|
262
310
|
@ws.merge_cells "A4:A5"
|
263
311
|
@ws.add_chart Axlsx::Pie3DChart
|
@@ -274,11 +322,16 @@ class TestWorksheet < Test::Unit::TestCase
|
|
274
322
|
end
|
275
323
|
|
276
324
|
def test_relationships
|
325
|
+
@ws.add_row [1,2,3]
|
277
326
|
assert(@ws.relationships.empty?, "No Drawing relationship until you add a chart")
|
278
327
|
c = @ws.add_chart Axlsx::Pie3DChart
|
279
328
|
assert_equal(@ws.relationships.size, 1, "adding a chart creates the relationship")
|
280
329
|
c = @ws.add_chart Axlsx::Pie3DChart
|
281
330
|
assert_equal(@ws.relationships.size, 1, "multiple charts still only result in one relationship")
|
331
|
+
c = @ws.add_comment :text => 'builder', :author => 'bob', :ref => @ws.rows.last.cells.last
|
332
|
+
assert_equal(@ws.relationships.size, 4, "adding a comment adds 3 relationships")
|
333
|
+
c = @ws.add_comment :text => 'not that is a comment!', :author => 'travis', :ref => "A1"
|
334
|
+
assert_equal(@ws.relationships.size, 4, "adding multiple comments in the same worksheet should not add any additional comment relationships")
|
282
335
|
end
|
283
336
|
|
284
337
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: axlsx
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
|
-
requirement: &
|
16
|
+
requirement: &2151818760 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 1.4.1
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2151818760
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rubyzip
|
27
|
-
requirement: &
|
27
|
+
requirement: &2151817980 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 0.9.5
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *2151817980
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &2151816780 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,18 @@ dependencies:
|
|
43
43
|
version: 0.8.7
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *2151816780
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: cover_me
|
49
|
+
requirement: &2151815800 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2151815800
|
47
58
|
description: ! ' xlsx generation with charts, images, automated column width, customizable
|
48
59
|
styles and full schema validation. Axlsx excels at helping you generate beautiful
|
49
60
|
Office Open XML Spreadsheet documents without having to understand the entire ECMA
|
@@ -105,6 +116,10 @@ files:
|
|
105
116
|
- lib/axlsx/drawing/two_cell_anchor.rb
|
106
117
|
- lib/axlsx/drawing/val_axis.rb
|
107
118
|
- lib/axlsx/drawing/view_3D.rb
|
119
|
+
- lib/axlsx/drawing/vml_drawing.rb
|
120
|
+
- lib/axlsx/drawing/vml_drawing.rb~
|
121
|
+
- lib/axlsx/drawing/vml_shape.rb
|
122
|
+
- lib/axlsx/drawing/vml_shape.rb~
|
108
123
|
- lib/axlsx/package.rb
|
109
124
|
- lib/axlsx/rels/relationship.rb
|
110
125
|
- lib/axlsx/rels/relationships.rb
|
@@ -150,6 +165,10 @@ files:
|
|
150
165
|
- lib/axlsx/workbook/worksheet/col.rb~
|
151
166
|
- lib/axlsx/workbook/worksheet/color_scale.rb
|
152
167
|
- lib/axlsx/workbook/worksheet/color_scale.rb~
|
168
|
+
- lib/axlsx/workbook/worksheet/comment.rb
|
169
|
+
- lib/axlsx/workbook/worksheet/comment.rb~
|
170
|
+
- lib/axlsx/workbook/worksheet/comments.rb
|
171
|
+
- lib/axlsx/workbook/worksheet/comments.rb~
|
153
172
|
- lib/axlsx/workbook/worksheet/conditional_formatting.rb
|
154
173
|
- lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb
|
155
174
|
- lib/axlsx/workbook/worksheet/data_bar.rb
|
@@ -158,6 +177,8 @@ files:
|
|
158
177
|
- lib/axlsx/workbook/worksheet/icon_set.rb
|
159
178
|
- lib/axlsx/workbook/worksheet/icon_set.rb~
|
160
179
|
- lib/axlsx/workbook/worksheet/page_margins.rb
|
180
|
+
- lib/axlsx/workbook/worksheet/page_setup.rb
|
181
|
+
- lib/axlsx/workbook/worksheet/print_options.rb
|
161
182
|
- lib/axlsx/workbook/worksheet/row.rb
|
162
183
|
- lib/axlsx/workbook/worksheet/shared_strings_table.rb~
|
163
184
|
- lib/axlsx/workbook/worksheet/table.rb
|
@@ -202,40 +223,37 @@ files:
|
|
202
223
|
- lib/schema/vml-wordprocessingDrawing.xsd
|
203
224
|
- lib/schema/wml.xsd
|
204
225
|
- lib/schema/xml.xsd
|
205
|
-
- examples/#extractive.csv#
|
206
|
-
- examples/#extractive.rb#
|
207
226
|
- examples/chart_colors.rb
|
208
|
-
- examples/chart_colors.rb~
|
209
227
|
- examples/chart_colors.xlsx
|
210
|
-
- examples/colored_series_data.xlsx
|
211
228
|
- examples/conditional_formatting/example_conditional_formatting.rb
|
212
229
|
- examples/conditional_formatting/getting_barred.rb
|
213
230
|
- examples/conditional_formatting/getting_barred.xlsx
|
214
231
|
- examples/conditional_formatting/hitting_the_high_notes.rb
|
215
232
|
- examples/conditional_formatting/scaled_colors.rb
|
216
233
|
- examples/conditional_formatting/stop_and_go.rb
|
217
|
-
- examples/
|
234
|
+
- examples/doc/_index.html
|
235
|
+
- examples/doc/class_list.html
|
236
|
+
- examples/doc/css/common.css
|
237
|
+
- examples/doc/css/full_list.css
|
238
|
+
- examples/doc/css/style.css
|
239
|
+
- examples/doc/file_list.html
|
240
|
+
- examples/doc/frames.html
|
241
|
+
- examples/doc/index.html
|
242
|
+
- examples/doc/js/app.js
|
243
|
+
- examples/doc/js/full_list.js
|
244
|
+
- examples/doc/js/jquery.js
|
245
|
+
- examples/doc/method_list.html
|
246
|
+
- examples/doc/top-level-namespace.html
|
218
247
|
- examples/example.rb
|
219
248
|
- examples/example.xlsx
|
220
249
|
- examples/example_streamed.xlsx
|
221
|
-
- examples/extractive.csv
|
222
|
-
- examples/extractive.csv~
|
223
250
|
- examples/extractive.rb
|
224
|
-
- examples/extractive.rb~
|
225
|
-
- examples/extractive.xlsx
|
226
251
|
- examples/image1.gif
|
227
252
|
- examples/image1.jpeg
|
228
253
|
- examples/image1.jpg
|
229
254
|
- examples/image1.png
|
230
|
-
- examples/no-use_autowidth.xlsx
|
231
255
|
- examples/sample.png
|
232
|
-
- examples/shared_strings_example.xlsx
|
233
256
|
- examples/skydrive/real_example.rb
|
234
|
-
- examples/stack.rb
|
235
|
-
- examples/stack.rb~
|
236
|
-
- examples/stack.xlsx
|
237
|
-
- examples/~$chart_colors.xlsx
|
238
|
-
- examples/~$extractive.xlsx
|
239
257
|
- LICENSE
|
240
258
|
- README.md
|
241
259
|
- Rakefile
|
@@ -285,6 +303,9 @@ files:
|
|
285
303
|
- test/drawing/tc_two_cell_anchor.rb
|
286
304
|
- test/drawing/tc_val_axis.rb
|
287
305
|
- test/drawing/tc_view_3D.rb
|
306
|
+
- test/drawing/tc_vml_drawing.rb
|
307
|
+
- test/drawing/tc_vml_drawing.rb~
|
308
|
+
- test/drawing/tc_vml_shape.rb
|
288
309
|
- test/profile.rb
|
289
310
|
- test/rels/tc_relationship.rb
|
290
311
|
- test/rels/tc_relationships.rb
|
@@ -322,6 +343,8 @@ files:
|
|
322
343
|
- test/workbook/worksheet/tc_col.rb~
|
323
344
|
- test/workbook/worksheet/tc_color_scale.rb
|
324
345
|
- test/workbook/worksheet/tc_color_scale.rb~
|
346
|
+
- test/workbook/worksheet/tc_comment.rb
|
347
|
+
- test/workbook/worksheet/tc_comments.rb
|
325
348
|
- test/workbook/worksheet/tc_conditional_formatting.rb
|
326
349
|
- test/workbook/worksheet/tc_data_bar.rb
|
327
350
|
- test/workbook/worksheet/tc_data_bar.rb~
|
@@ -329,6 +352,8 @@ files:
|
|
329
352
|
- test/workbook/worksheet/tc_icon_set.rb
|
330
353
|
- test/workbook/worksheet/tc_icon_set.rb~
|
331
354
|
- test/workbook/worksheet/tc_page_margins.rb
|
355
|
+
- test/workbook/worksheet/tc_page_setup.rb
|
356
|
+
- test/workbook/worksheet/tc_print_options.rb
|
332
357
|
- test/workbook/worksheet/tc_row.rb
|
333
358
|
- test/workbook/worksheet/tc_worksheet.rb
|
334
359
|
homepage: https://github.com/randym/axlsx
|
@@ -400,6 +425,9 @@ test_files:
|
|
400
425
|
- test/drawing/tc_two_cell_anchor.rb
|
401
426
|
- test/drawing/tc_val_axis.rb
|
402
427
|
- test/drawing/tc_view_3D.rb
|
428
|
+
- test/drawing/tc_vml_drawing.rb
|
429
|
+
- test/drawing/tc_vml_drawing.rb~
|
430
|
+
- test/drawing/tc_vml_shape.rb
|
403
431
|
- test/profile.rb
|
404
432
|
- test/rels/tc_relationship.rb
|
405
433
|
- test/rels/tc_relationships.rb
|
@@ -437,6 +465,8 @@ test_files:
|
|
437
465
|
- test/workbook/worksheet/tc_col.rb~
|
438
466
|
- test/workbook/worksheet/tc_color_scale.rb
|
439
467
|
- test/workbook/worksheet/tc_color_scale.rb~
|
468
|
+
- test/workbook/worksheet/tc_comment.rb
|
469
|
+
- test/workbook/worksheet/tc_comments.rb
|
440
470
|
- test/workbook/worksheet/tc_conditional_formatting.rb
|
441
471
|
- test/workbook/worksheet/tc_data_bar.rb
|
442
472
|
- test/workbook/worksheet/tc_data_bar.rb~
|
@@ -444,6 +474,8 @@ test_files:
|
|
444
474
|
- test/workbook/worksheet/tc_icon_set.rb
|
445
475
|
- test/workbook/worksheet/tc_icon_set.rb~
|
446
476
|
- test/workbook/worksheet/tc_page_margins.rb
|
477
|
+
- test/workbook/worksheet/tc_page_setup.rb
|
478
|
+
- test/workbook/worksheet/tc_print_options.rb
|
447
479
|
- test/workbook/worksheet/tc_row.rb
|
448
480
|
- test/workbook/worksheet/tc_worksheet.rb
|
449
481
|
has_rdoc: axlsx
|