write_xlsx 1.13.0 → 1.15.1
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 +4 -4
- data/.rubocop.yml +25 -4
- data/Changes +23 -0
- data/lib/write_xlsx/chart/area.rb +2 -2
- data/lib/write_xlsx/chart/axis.rb +55 -32
- data/lib/write_xlsx/chart/axis_writer.rb +528 -0
- data/lib/write_xlsx/chart/bar.rb +2 -2
- data/lib/write_xlsx/chart/caption.rb +16 -9
- data/lib/write_xlsx/chart/chart_area.rb +121 -0
- data/lib/write_xlsx/chart/column.rb +2 -2
- data/lib/write_xlsx/chart/d_pt_point_writer.rb +14 -0
- data/lib/write_xlsx/chart/doughnut.rb +0 -3
- data/lib/write_xlsx/chart/formatting_writer.rb +652 -0
- data/lib/write_xlsx/chart/initialization.rb +100 -0
- data/lib/write_xlsx/chart/line.rb +4 -3
- data/lib/write_xlsx/chart/pie.rb +6 -2
- data/lib/write_xlsx/chart/radar.rb +2 -2
- data/lib/write_xlsx/chart/scatter.rb +4 -3
- data/lib/write_xlsx/chart/series.rb +35 -15
- data/lib/write_xlsx/chart/series_data.rb +132 -0
- data/lib/write_xlsx/chart/series_writer.rb +318 -0
- data/lib/write_xlsx/chart/settings.rb +226 -0
- data/lib/write_xlsx/chart/stock.rb +2 -2
- data/lib/write_xlsx/chart/table.rb +50 -0
- data/lib/write_xlsx/chart/xml_writer.rb +305 -0
- data/lib/write_xlsx/chart.rb +286 -2477
- data/lib/write_xlsx/chartsheet.rb +31 -82
- data/lib/write_xlsx/constants.rb +11 -0
- data/lib/write_xlsx/drawing.rb +5 -3
- data/lib/write_xlsx/format/alignment_state.rb +39 -0
- data/lib/write_xlsx/format/alignment_style.rb +92 -0
- data/lib/write_xlsx/format/border_state.rb +47 -0
- data/lib/write_xlsx/format/border_style.rb +116 -0
- data/lib/write_xlsx/format/fill_state.rb +26 -0
- data/lib/write_xlsx/format/fill_style.rb +52 -0
- data/lib/write_xlsx/format/font_state.rb +74 -0
- data/lib/write_xlsx/format/font_style.rb +172 -0
- data/lib/write_xlsx/format/format_state.rb +65 -0
- data/lib/write_xlsx/format/number_format_state.rb +20 -0
- data/lib/write_xlsx/format/number_format_style.rb +28 -0
- data/lib/write_xlsx/format/protection_state.rb +20 -0
- data/lib/write_xlsx/format/protection_style.rb +28 -0
- data/lib/write_xlsx/format.rb +1093 -426
- data/lib/write_xlsx/formats.rb +0 -2
- data/lib/write_xlsx/image_property.rb +4 -1
- data/lib/write_xlsx/inserted_chart.rb +1 -1
- data/lib/write_xlsx/object_positioning.rb +15 -1
- data/lib/write_xlsx/package/app.rb +2 -2
- data/lib/write_xlsx/package/button.rb +6 -2
- data/lib/write_xlsx/package/comments.rb +11 -3
- data/lib/write_xlsx/package/conditional_format.rb +7 -3
- data/lib/write_xlsx/package/content_types.rb +2 -2
- data/lib/write_xlsx/package/core.rb +2 -2
- data/lib/write_xlsx/package/custom.rb +3 -2
- data/lib/write_xlsx/package/metadata.rb +2 -2
- data/lib/write_xlsx/package/packager.rb +0 -3
- data/lib/write_xlsx/package/relationships.rb +2 -2
- data/lib/write_xlsx/package/rich_value.rb +4 -2
- data/lib/write_xlsx/package/rich_value_rel.rb +2 -2
- data/lib/write_xlsx/package/rich_value_structure.rb +2 -2
- data/lib/write_xlsx/package/rich_value_types.rb +3 -3
- data/lib/write_xlsx/package/shared_strings.rb +2 -2
- data/lib/write_xlsx/package/styles.rb +13 -9
- data/lib/write_xlsx/package/table.rb +8 -2
- data/lib/write_xlsx/package/theme.rb +0 -3
- data/lib/write_xlsx/package/vml.rb +2 -2
- data/lib/write_xlsx/page_setup.rb +3 -1
- data/lib/write_xlsx/shape.rb +97 -100
- data/lib/write_xlsx/sheets.rb +6 -1
- data/lib/write_xlsx/sparkline.rb +2 -2
- data/lib/write_xlsx/utility/cell_reference.rb +124 -0
- data/lib/write_xlsx/utility/chart_formatting.rb +262 -0
- data/lib/write_xlsx/utility/common.rb +44 -0
- data/lib/write_xlsx/utility/date_time.rb +113 -0
- data/lib/write_xlsx/utility/dimensions.rb +40 -0
- data/lib/write_xlsx/utility/drawing.rb +136 -0
- data/lib/write_xlsx/utility/rich_text.rb +184 -0
- data/lib/write_xlsx/utility/sheetname_quoting.rb +73 -0
- data/lib/write_xlsx/utility/string_width.rb +45 -0
- data/lib/write_xlsx/utility/url.rb +27 -0
- data/lib/write_xlsx/utility/xml_primitives.rb +32 -0
- data/lib/write_xlsx/version.rb +1 -1
- data/lib/write_xlsx/workbook/chart_data.rb +188 -0
- data/lib/write_xlsx/workbook/format_preparation.rb +199 -0
- data/lib/write_xlsx/workbook/initialization.rb +223 -0
- data/lib/write_xlsx/workbook/package_preparation.rb +231 -0
- data/lib/write_xlsx/workbook/workbook_writer.rb +164 -0
- data/lib/write_xlsx/workbook.rb +143 -981
- data/lib/write_xlsx/worksheet/autofilter.rb +3 -1
- data/lib/write_xlsx/worksheet/cell_data.rb +5 -1
- data/lib/write_xlsx/worksheet/columns.rb +8 -3
- data/lib/write_xlsx/worksheet/data_validation.rb +9 -1
- data/lib/write_xlsx/worksheet/data_writing.rb +42 -15
- data/lib/write_xlsx/worksheet/drawing_preparation.rb +1 -1
- data/lib/write_xlsx/worksheet/formatting.rb +3 -1
- data/lib/write_xlsx/worksheet/hyperlink.rb +9 -1
- data/lib/write_xlsx/worksheet/row_col_sizing.rb +3 -1
- data/lib/write_xlsx/worksheet/xml_writer.rb +9 -4
- data/lib/write_xlsx/worksheet.rb +19 -2
- metadata +42 -3
- data/lib/write_xlsx/utility.rb +0 -1034
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'write_xlsx/constants'
|
|
4
|
+
|
|
3
5
|
module Writexlsx
|
|
4
6
|
class Worksheet
|
|
5
7
|
# Autofilter-related operations extracted from Worksheet to slim the main class.
|
|
6
8
|
module Autofilter
|
|
7
|
-
include
|
|
9
|
+
include Constants
|
|
8
10
|
|
|
9
11
|
#
|
|
10
12
|
# :call-seq:
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
+
require 'write_xlsx/utility/common'
|
|
5
|
+
require 'write_xlsx/utility/cell_reference'
|
|
6
|
+
|
|
4
7
|
module Writexlsx
|
|
5
8
|
class Worksheet
|
|
6
9
|
class CellData # :nodoc:
|
|
7
|
-
include Writexlsx::Utility
|
|
10
|
+
include Writexlsx::Utility::Common
|
|
11
|
+
include Writexlsx::Utility::CellReference
|
|
8
12
|
|
|
9
13
|
attr_reader :xf
|
|
10
14
|
|
|
@@ -95,9 +95,14 @@ module Writexlsx
|
|
|
95
95
|
# Simulate autofit based on the data, and datatypes in each column. We do this
|
|
96
96
|
# by estimating a pixel width for each cell data.
|
|
97
97
|
#
|
|
98
|
-
def autofit
|
|
98
|
+
def autofit(max_width = 255.0)
|
|
99
99
|
col_width = {}
|
|
100
100
|
|
|
101
|
+
# Convert the autofit maximum pixel width to a column/character width, but
|
|
102
|
+
# limit it to the Excel max limit.
|
|
103
|
+
max_width = pixels_to_width(max_width)
|
|
104
|
+
max_width = 255.0 if max_width > 255.0
|
|
105
|
+
|
|
101
106
|
# Iterate through all the data in the worksheet.
|
|
102
107
|
(@dim_rowmin..@dim_rowmax).each do |row_num|
|
|
103
108
|
# Skip row if it doesn't contain cell data.
|
|
@@ -181,8 +186,8 @@ module Writexlsx
|
|
|
181
186
|
# additional padding of 7 pixels, like Excel.
|
|
182
187
|
width = pixels_to_width(pixel_width + 7)
|
|
183
188
|
|
|
184
|
-
#
|
|
185
|
-
width =
|
|
189
|
+
# Limit the width to the maximum user or Excel value.
|
|
190
|
+
width = max_width if width > max_width
|
|
186
191
|
|
|
187
192
|
# Add the width to an existing col info structure or add a new one.
|
|
188
193
|
if @col_info[col_num]
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
+
require 'write_xlsx/utility/common'
|
|
5
|
+
require 'write_xlsx/utility/cell_reference'
|
|
6
|
+
require 'write_xlsx/utility/dimensions'
|
|
7
|
+
require 'write_xlsx/utility/date_time'
|
|
8
|
+
|
|
4
9
|
module Writexlsx
|
|
5
10
|
class Worksheet
|
|
6
11
|
class DataValidation # :nodoc:
|
|
7
|
-
include Writexlsx::Utility
|
|
12
|
+
include Writexlsx::Utility::Common
|
|
13
|
+
include Writexlsx::Utility::CellReference
|
|
14
|
+
include Writexlsx::Utility::Dimensions
|
|
15
|
+
include Writexlsx::Utility::DateTime
|
|
8
16
|
|
|
9
17
|
attr_reader :value, :source, :minimum, :maximum, :validate, :criteria
|
|
10
18
|
attr_reader :error_type, :cells, :other_cells
|
|
@@ -10,11 +10,14 @@
|
|
|
10
10
|
# Copyright 2000-2011, John McNamara, jmcnamara@cpan.org
|
|
11
11
|
# Convert to ruby by Hideo NAKAMURA, nakamura.hideo@gmail.com
|
|
12
12
|
#
|
|
13
|
+
require 'write_xlsx/constants'
|
|
14
|
+
require 'write_xlsx/utility/common'
|
|
13
15
|
|
|
14
16
|
module Writexlsx
|
|
15
17
|
class Worksheet
|
|
16
18
|
module DataWriting
|
|
17
|
-
include
|
|
19
|
+
include Constants
|
|
20
|
+
include Writexlsx::Utility::Common
|
|
18
21
|
|
|
19
22
|
#
|
|
20
23
|
# :call-seq:
|
|
@@ -53,15 +56,15 @@ module Writexlsx
|
|
|
53
56
|
write_number(_row, _col, _token, _format)
|
|
54
57
|
elsif _token.respond_to?(:=~) # String
|
|
55
58
|
# Match integer with leading zero(s)
|
|
56
|
-
if @leading_zeros && _token =~
|
|
59
|
+
if @leading_zeros && _token =~ /\A0\d*\Z/
|
|
57
60
|
write_string(_row, _col, _token, _format)
|
|
58
61
|
elsif _token =~ /\A([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?\Z/
|
|
59
62
|
write_number(_row, _col, _token, _format)
|
|
60
63
|
# Match formula
|
|
61
|
-
elsif _token =~
|
|
64
|
+
elsif _token =~ /\A=/
|
|
62
65
|
write_formula(_row, _col, _token, _format, _value1)
|
|
63
66
|
# Match array formula
|
|
64
|
-
elsif _token =~
|
|
67
|
+
elsif _token =~ /\A\{=.*\}\Z/
|
|
65
68
|
write_formula(_row, _col, _token, _format, _value1)
|
|
66
69
|
# Match blank
|
|
67
70
|
elsif _token == ''
|
|
@@ -309,7 +312,7 @@ module Writexlsx
|
|
|
309
312
|
return given_formula unless ptrue?(given_formula)
|
|
310
313
|
|
|
311
314
|
# Remove array formula braces and the leading =.
|
|
312
|
-
formula = given_formula.sub(
|
|
315
|
+
formula = given_formula.sub(/\A\{(.*)\}\Z/, '\1').sub(/\A=/, '')
|
|
313
316
|
|
|
314
317
|
# # Don't expand formulas that the user has already expanded.
|
|
315
318
|
return formula if formula =~ /_xlfn\./
|
|
@@ -509,7 +512,7 @@ module Writexlsx
|
|
|
509
512
|
end
|
|
510
513
|
|
|
511
514
|
# Hand off array formulas.
|
|
512
|
-
if _formula =~
|
|
515
|
+
if _formula =~ /\A\{=.*\}\Z/
|
|
513
516
|
write_array_formula(_row, _col, _row, _col, _formula, _format, _value)
|
|
514
517
|
else
|
|
515
518
|
check_dimensions(_row, _col)
|
|
@@ -639,7 +642,7 @@ module Writexlsx
|
|
|
639
642
|
def update_format_with_params(row, col, params = nil)
|
|
640
643
|
if (row_col_array = row_col_notation(row))
|
|
641
644
|
_row, _col = row_col_array
|
|
642
|
-
_params =
|
|
645
|
+
_params = col
|
|
643
646
|
else
|
|
644
647
|
_row = row
|
|
645
648
|
_col = col
|
|
@@ -934,25 +937,49 @@ module Writexlsx
|
|
|
934
937
|
#
|
|
935
938
|
# Update formatting of cells in range to the specified row and column (zero indexed).
|
|
936
939
|
#
|
|
940
|
+
# def update_range_format_with_params(row_first, col_first, row_last = nil, col_last = nil, params = nil)
|
|
941
|
+
# if (row_col_array = row_col_notation(row_first))
|
|
942
|
+
# _row_first, _col_first, _row_last, _col_last = row_col_array
|
|
943
|
+
# params = args[1..-1]
|
|
944
|
+
# else
|
|
945
|
+
# _row_first = row_first
|
|
946
|
+
# _col_first = col_first
|
|
947
|
+
# _row_last = row_last
|
|
948
|
+
# _col_last = col_last
|
|
949
|
+
# _params = params
|
|
950
|
+
# end
|
|
951
|
+
|
|
952
|
+
# raise WriteXLSXInsufficientArgumentError if [_row_first, _col_first, _row_last, _col_last, _params].include?(nil)
|
|
953
|
+
|
|
954
|
+
# # Swap last row/col with first row/col as necessary
|
|
955
|
+
# _row_first, _row_last = _row_last, _row_first if _row_first > _row_last
|
|
956
|
+
# _col_first, _col_last = _col_last, _col_first if _col_first > _col_last
|
|
957
|
+
|
|
958
|
+
# # Check that column number is valid and store the max value
|
|
959
|
+
# check_dimensions(_row_last, _col_last)
|
|
960
|
+
# store_row_col_max_min_values(_row_last, _col_last)
|
|
961
|
+
|
|
962
|
+
# (_row_first.._row_last).each do |row|
|
|
963
|
+
# (_col_first.._col_last).each do |col|
|
|
964
|
+
# update_format_with_params(row, col, _params)
|
|
965
|
+
# end
|
|
966
|
+
# end
|
|
967
|
+
# end
|
|
937
968
|
def update_range_format_with_params(row_first, col_first, row_last = nil, col_last = nil, params = nil)
|
|
938
969
|
if (row_col_array = row_col_notation(row_first))
|
|
939
970
|
_row_first, _col_first, _row_last, _col_last = row_col_array
|
|
940
|
-
|
|
971
|
+
_params = col_first
|
|
941
972
|
else
|
|
942
|
-
_row_first = row_first
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
_col_last = col_last
|
|
946
|
-
_params = params
|
|
973
|
+
_row_first, _col_first = row_first, col_first
|
|
974
|
+
_row_last, _col_last = row_last, col_last
|
|
975
|
+
_params = params
|
|
947
976
|
end
|
|
948
977
|
|
|
949
978
|
raise WriteXLSXInsufficientArgumentError if [_row_first, _col_first, _row_last, _col_last, _params].include?(nil)
|
|
950
979
|
|
|
951
|
-
# Swap last row/col with first row/col as necessary
|
|
952
980
|
_row_first, _row_last = _row_last, _row_first if _row_first > _row_last
|
|
953
981
|
_col_first, _col_last = _col_last, _col_first if _col_first > _col_last
|
|
954
982
|
|
|
955
|
-
# Check that column number is valid and store the max value
|
|
956
983
|
check_dimensions(_row_last, _col_last)
|
|
957
984
|
store_row_col_max_min_values(_row_last, _col_last)
|
|
958
985
|
|
|
@@ -159,7 +159,7 @@ module Writexlsx
|
|
|
159
159
|
end
|
|
160
160
|
|
|
161
161
|
if target.length > 255
|
|
162
|
-
raise <<
|
|
162
|
+
raise <<EOS
|
|
163
163
|
Ignoring URL #{target} where link or anchor > 255 characters since it exceeds Excel's limit for URLS. See LIMITATIONS section of the WriteXLSX documentation.
|
|
164
164
|
EOS
|
|
165
165
|
end
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
+
require 'write_xlsx/constants'
|
|
5
|
+
|
|
4
6
|
###############################################################################
|
|
5
7
|
#
|
|
6
8
|
# Formatting - A module for worksheet layout and print/appearance settings.
|
|
@@ -13,7 +15,7 @@
|
|
|
13
15
|
module Writexlsx
|
|
14
16
|
class Worksheet
|
|
15
17
|
module Formatting
|
|
16
|
-
include
|
|
18
|
+
include Constants
|
|
17
19
|
|
|
18
20
|
#
|
|
19
21
|
# Header/footer
|
|
@@ -1,10 +1,18 @@
|
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
+
require 'write_xlsx/utility/common'
|
|
5
|
+
require 'write_xlsx/utility/cell_reference'
|
|
6
|
+
require 'write_xlsx/utility/url'
|
|
7
|
+
require 'write_xlsx/utility/xml_primitives'
|
|
8
|
+
|
|
4
9
|
module Writexlsx
|
|
5
10
|
class Worksheet
|
|
6
11
|
class Hyperlink # :nodoc:
|
|
7
|
-
include Writexlsx::Utility
|
|
12
|
+
include Writexlsx::Utility::Common
|
|
13
|
+
include Writexlsx::Utility::CellReference
|
|
14
|
+
include Writexlsx::Utility::Url
|
|
15
|
+
include Writexlsx::Utility::XmlPrimitives
|
|
8
16
|
|
|
9
17
|
attr_reader :str, :tip
|
|
10
18
|
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
+
require 'write_xlsx/utility/string_width'
|
|
5
|
+
|
|
4
6
|
module Writexlsx
|
|
5
7
|
class Worksheet
|
|
6
8
|
module RowColSizing
|
|
7
|
-
include Utility
|
|
9
|
+
include Writexlsx::Utility::StringWidth
|
|
8
10
|
|
|
9
11
|
#
|
|
10
12
|
# Convert the width of a cell from user's units to pixels. Excel rounds
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
|
+
require 'write_xlsx/utility/string_width'
|
|
4
|
+
|
|
3
5
|
module Writexlsx
|
|
4
6
|
class Worksheet
|
|
5
7
|
module XmlWriter
|
|
6
|
-
include Utility
|
|
8
|
+
include Writexlsx::Utility::StringWidth
|
|
7
9
|
|
|
8
10
|
def assemble_xml_file # :nodoc:
|
|
9
11
|
write_xml_declaration do
|
|
@@ -440,13 +442,16 @@ module Writexlsx
|
|
|
440
442
|
xf_index = format ? format.get_xf_index : 0
|
|
441
443
|
|
|
442
444
|
attributes = [['r', r + 1]]
|
|
443
|
-
|
|
444
445
|
attributes << ['spans', spans] if spans
|
|
445
446
|
attributes << ['s', xf_index] if ptrue?(xf_index)
|
|
446
447
|
attributes << ['customFormat', 1] if ptrue?(format)
|
|
447
|
-
|
|
448
|
+
if height != @original_row_height || height != @default_row_height
|
|
449
|
+
attributes << ['ht', height]
|
|
450
|
+
end
|
|
448
451
|
attributes << ['hidden', 1] if ptrue?(hidden)
|
|
449
|
-
|
|
452
|
+
if height != @original_row_height || height != @default_row_height
|
|
453
|
+
attributes << ['customHeight', 1]
|
|
454
|
+
end
|
|
450
455
|
attributes << ['outlineLevel', level] if ptrue?(level)
|
|
451
456
|
attributes << ['collapsed', 1] if ptrue?(collapsed)
|
|
452
457
|
|
data/lib/write_xlsx/worksheet.rb
CHANGED
|
@@ -1,8 +1,26 @@
|
|
|
1
1
|
# -*- coding: utf-8 -*-
|
|
2
2
|
# frozen_string_literal: true
|
|
3
3
|
|
|
4
|
+
###############################################################################
|
|
5
|
+
#
|
|
6
|
+
# Workbook
|
|
7
|
+
#
|
|
8
|
+
# The Workbook class acts as a facade coordinating workbook state,
|
|
9
|
+
# package preparation and XML generation.
|
|
10
|
+
#
|
|
11
|
+
# Responsibilities are delegated to specialized modules:
|
|
12
|
+
#
|
|
13
|
+
# Initialization - workbook setup and default state
|
|
14
|
+
# WorkbookWriter - workbook XML generation
|
|
15
|
+
# PackagePreparation - package assembly and workbook preparation
|
|
16
|
+
# FormatPreparation - format, font, border and fill preparation
|
|
17
|
+
# ChartData - chart cache data extraction and defined name helpers
|
|
18
|
+
#
|
|
19
|
+
###############################################################################
|
|
20
|
+
|
|
4
21
|
require 'write_xlsx/colors'
|
|
5
22
|
require 'write_xlsx/compatibility'
|
|
23
|
+
require 'write_xlsx/constants'
|
|
6
24
|
require 'write_xlsx/drawing'
|
|
7
25
|
require 'write_xlsx/format'
|
|
8
26
|
require 'write_xlsx/image'
|
|
@@ -14,7 +32,6 @@ require 'write_xlsx/package/conditional_format'
|
|
|
14
32
|
require 'write_xlsx/package/xml_writer_simple'
|
|
15
33
|
require 'write_xlsx/page_setup'
|
|
16
34
|
require 'write_xlsx/sparkline'
|
|
17
|
-
require 'write_xlsx/utility'
|
|
18
35
|
require 'write_xlsx/worksheet/asset_manager'
|
|
19
36
|
require 'write_xlsx/worksheet/autofilter'
|
|
20
37
|
require 'write_xlsx/worksheet/cell_data'
|
|
@@ -48,7 +65,7 @@ module Writexlsx
|
|
|
48
65
|
class Worksheet
|
|
49
66
|
extend Forwardable
|
|
50
67
|
|
|
51
|
-
include
|
|
68
|
+
include Constants
|
|
52
69
|
|
|
53
70
|
# storage / initialization
|
|
54
71
|
include Initialization
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: write_xlsx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.15.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Hideo NAKAMURA
|
|
@@ -242,23 +242,47 @@ files:
|
|
|
242
242
|
- lib/write_xlsx/chart.rb
|
|
243
243
|
- lib/write_xlsx/chart/area.rb
|
|
244
244
|
- lib/write_xlsx/chart/axis.rb
|
|
245
|
+
- lib/write_xlsx/chart/axis_writer.rb
|
|
245
246
|
- lib/write_xlsx/chart/bar.rb
|
|
246
247
|
- lib/write_xlsx/chart/caption.rb
|
|
248
|
+
- lib/write_xlsx/chart/chart_area.rb
|
|
247
249
|
- lib/write_xlsx/chart/column.rb
|
|
250
|
+
- lib/write_xlsx/chart/d_pt_point_writer.rb
|
|
248
251
|
- lib/write_xlsx/chart/doughnut.rb
|
|
252
|
+
- lib/write_xlsx/chart/formatting_writer.rb
|
|
253
|
+
- lib/write_xlsx/chart/initialization.rb
|
|
249
254
|
- lib/write_xlsx/chart/legend.rb
|
|
250
255
|
- lib/write_xlsx/chart/line.rb
|
|
251
256
|
- lib/write_xlsx/chart/pie.rb
|
|
252
257
|
- lib/write_xlsx/chart/radar.rb
|
|
253
258
|
- lib/write_xlsx/chart/scatter.rb
|
|
254
259
|
- lib/write_xlsx/chart/series.rb
|
|
260
|
+
- lib/write_xlsx/chart/series_data.rb
|
|
261
|
+
- lib/write_xlsx/chart/series_writer.rb
|
|
262
|
+
- lib/write_xlsx/chart/settings.rb
|
|
255
263
|
- lib/write_xlsx/chart/stock.rb
|
|
264
|
+
- lib/write_xlsx/chart/table.rb
|
|
265
|
+
- lib/write_xlsx/chart/xml_writer.rb
|
|
256
266
|
- lib/write_xlsx/chartsheet.rb
|
|
257
267
|
- lib/write_xlsx/col_name.rb
|
|
258
268
|
- lib/write_xlsx/colors.rb
|
|
259
269
|
- lib/write_xlsx/compatibility.rb
|
|
270
|
+
- lib/write_xlsx/constants.rb
|
|
260
271
|
- lib/write_xlsx/drawing.rb
|
|
261
272
|
- lib/write_xlsx/format.rb
|
|
273
|
+
- lib/write_xlsx/format/alignment_state.rb
|
|
274
|
+
- lib/write_xlsx/format/alignment_style.rb
|
|
275
|
+
- lib/write_xlsx/format/border_state.rb
|
|
276
|
+
- lib/write_xlsx/format/border_style.rb
|
|
277
|
+
- lib/write_xlsx/format/fill_state.rb
|
|
278
|
+
- lib/write_xlsx/format/fill_style.rb
|
|
279
|
+
- lib/write_xlsx/format/font_state.rb
|
|
280
|
+
- lib/write_xlsx/format/font_style.rb
|
|
281
|
+
- lib/write_xlsx/format/format_state.rb
|
|
282
|
+
- lib/write_xlsx/format/number_format_state.rb
|
|
283
|
+
- lib/write_xlsx/format/number_format_style.rb
|
|
284
|
+
- lib/write_xlsx/format/protection_state.rb
|
|
285
|
+
- lib/write_xlsx/format/protection_style.rb
|
|
262
286
|
- lib/write_xlsx/formats.rb
|
|
263
287
|
- lib/write_xlsx/gradient.rb
|
|
264
288
|
- lib/write_xlsx/image.rb
|
|
@@ -289,9 +313,24 @@ files:
|
|
|
289
313
|
- lib/write_xlsx/shape.rb
|
|
290
314
|
- lib/write_xlsx/sheets.rb
|
|
291
315
|
- lib/write_xlsx/sparkline.rb
|
|
292
|
-
- lib/write_xlsx/utility.rb
|
|
316
|
+
- lib/write_xlsx/utility/cell_reference.rb
|
|
317
|
+
- lib/write_xlsx/utility/chart_formatting.rb
|
|
318
|
+
- lib/write_xlsx/utility/common.rb
|
|
319
|
+
- lib/write_xlsx/utility/date_time.rb
|
|
320
|
+
- lib/write_xlsx/utility/dimensions.rb
|
|
321
|
+
- lib/write_xlsx/utility/drawing.rb
|
|
322
|
+
- lib/write_xlsx/utility/rich_text.rb
|
|
323
|
+
- lib/write_xlsx/utility/sheetname_quoting.rb
|
|
324
|
+
- lib/write_xlsx/utility/string_width.rb
|
|
325
|
+
- lib/write_xlsx/utility/url.rb
|
|
326
|
+
- lib/write_xlsx/utility/xml_primitives.rb
|
|
293
327
|
- lib/write_xlsx/version.rb
|
|
294
328
|
- lib/write_xlsx/workbook.rb
|
|
329
|
+
- lib/write_xlsx/workbook/chart_data.rb
|
|
330
|
+
- lib/write_xlsx/workbook/format_preparation.rb
|
|
331
|
+
- lib/write_xlsx/workbook/initialization.rb
|
|
332
|
+
- lib/write_xlsx/workbook/package_preparation.rb
|
|
333
|
+
- lib/write_xlsx/workbook/workbook_writer.rb
|
|
295
334
|
- lib/write_xlsx/worksheet.rb
|
|
296
335
|
- lib/write_xlsx/worksheet/asset_manager.rb
|
|
297
336
|
- lib/write_xlsx/worksheet/autofilter.rb
|
|
@@ -338,7 +377,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
338
377
|
- !ruby/object:Gem::Version
|
|
339
378
|
version: '0'
|
|
340
379
|
requirements: []
|
|
341
|
-
rubygems_version: 4.0.
|
|
380
|
+
rubygems_version: 4.0.16
|
|
342
381
|
specification_version: 4
|
|
343
382
|
summary: write_xlsx is a gem to create a new file in the Excel 2007+ XLSX format.
|
|
344
383
|
test_files: []
|