xlsxrb 0.1.18 → 0.2.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.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +200 -0
  3. data/README.md +35 -12
  4. data/lib/ruby_lsp/xlsxrb/completion_listener.rb +410 -80
  5. data/lib/xlsxrb/chart_builder.rb +251 -386
  6. data/lib/xlsxrb/dsl_helpers.rb +169 -68
  7. data/lib/xlsxrb/elements/cell.rb +37 -157
  8. data/lib/xlsxrb/elements/column.rb +11 -19
  9. data/lib/xlsxrb/elements/coordinate_access.rb +15 -86
  10. data/lib/xlsxrb/elements/image.rb +5 -72
  11. data/lib/xlsxrb/elements/metadata.rb +463 -817
  12. data/lib/xlsxrb/elements/row.rb +27 -145
  13. data/lib/xlsxrb/elements/styles.rb +30 -88
  14. data/lib/xlsxrb/elements/types.rb +6 -99
  15. data/lib/xlsxrb/elements/workbook.rb +19 -126
  16. data/lib/xlsxrb/elements/worksheet.rb +45 -316
  17. data/lib/xlsxrb/ooxml/reader/listeners/core_listeners.rb +4 -1
  18. data/lib/xlsxrb/ooxml/reader/listeners/drawing_listeners.rb +7 -7
  19. data/lib/xlsxrb/ooxml/reader/listeners/feature_listeners.rb +32 -17
  20. data/lib/xlsxrb/ooxml/reader.rb +49 -51
  21. data/lib/xlsxrb/ooxml/styles_parser.rb +26 -2
  22. data/lib/xlsxrb/ooxml/utils.rb +15 -2
  23. data/lib/xlsxrb/ooxml/workbook_parser.rb +0 -1
  24. data/lib/xlsxrb/ooxml/workbook_writer.rb +184 -94
  25. data/lib/xlsxrb/ooxml/worksheet_parser.rb +61 -29
  26. data/lib/xlsxrb/ooxml/worksheet_writer.rb +353 -261
  27. data/lib/xlsxrb/ooxml/writer/drawing_xml.rb +28 -11
  28. data/lib/xlsxrb/ooxml/writer/features_xml.rb +62 -16
  29. data/lib/xlsxrb/ooxml/writer/styles_xml.rb +1 -1
  30. data/lib/xlsxrb/ooxml/writer.rb +106 -42
  31. data/lib/xlsxrb/ooxml/xml_builder.rb +18 -0
  32. data/lib/xlsxrb/ooxml/xml_parser.rb +78 -5
  33. data/lib/xlsxrb/ooxml/zip_reader.rb +65 -15
  34. data/lib/xlsxrb/ooxml/zip_writer.rb +119 -30
  35. data/lib/xlsxrb/stream_row.rb +14 -118
  36. data/lib/xlsxrb/stream_sheet.rb +14 -261
  37. data/lib/xlsxrb/stream_writer.rb +807 -1537
  38. data/lib/xlsxrb/style_builder.rb +715 -593
  39. data/lib/xlsxrb/version.rb +1 -1
  40. data/lib/xlsxrb/workbook_builder.rb +403 -286
  41. data/lib/xlsxrb/worksheet_builder.rb +1297 -1458
  42. data/lib/xlsxrb.rb +281 -1079
  43. data/sig/generated/xlsxrb/chart_builder.rbs +202 -205
  44. data/sig/generated/xlsxrb/dsl_helpers.rbs +92 -16
  45. data/sig/generated/xlsxrb/elements/cell.rbs +12 -76
  46. data/sig/generated/xlsxrb/elements/column.rbs +0 -7
  47. data/sig/generated/xlsxrb/elements/coordinate_access.rbs +5 -41
  48. data/sig/generated/xlsxrb/elements/image.rbs +3 -29
  49. data/sig/generated/xlsxrb/elements/metadata.rbs +138 -151
  50. data/sig/generated/xlsxrb/elements/row.rbs +10 -53
  51. data/sig/generated/xlsxrb/elements/styles.rbs +1 -39
  52. data/sig/generated/xlsxrb/elements/workbook.rbs +14 -78
  53. data/sig/generated/xlsxrb/elements/worksheet.rbs +5 -121
  54. data/sig/generated/xlsxrb/ooxml/reader/listeners/feature_listeners.rbs +0 -4
  55. data/sig/generated/xlsxrb/ooxml/reader.rbs +0 -3
  56. data/sig/generated/xlsxrb/ooxml/styles_parser.rbs +1 -1
  57. data/sig/generated/xlsxrb/ooxml/utils.rbs +13 -3
  58. data/sig/generated/xlsxrb/ooxml/workbook_writer.rbs +17 -0
  59. data/sig/generated/xlsxrb/ooxml/worksheet_parser.rbs +16 -0
  60. data/sig/generated/xlsxrb/ooxml/worksheet_writer.rbs +58 -3
  61. data/sig/generated/xlsxrb/ooxml/writer/features_xml.rbs +10 -0
  62. data/sig/generated/xlsxrb/ooxml/writer.rbs +20 -14
  63. data/sig/generated/xlsxrb/ooxml/xml_builder.rbs +12 -0
  64. data/sig/generated/xlsxrb/ooxml/xml_parser.rbs +70 -0
  65. data/sig/generated/xlsxrb/ooxml/zip_reader.rbs +22 -7
  66. data/sig/generated/xlsxrb/ooxml/zip_writer.rbs +26 -1
  67. data/sig/generated/xlsxrb/stream_row.rbs +9 -44
  68. data/sig/generated/xlsxrb/stream_sheet.rbs +1 -158
  69. data/sig/generated/xlsxrb/stream_writer.rbs +491 -974
  70. data/sig/generated/xlsxrb/style_builder.rbs +464 -239
  71. data/sig/generated/xlsxrb/workbook_builder.rbs +124 -139
  72. data/sig/generated/xlsxrb/worksheet_builder.rbs +922 -686
  73. data/sig/generated/xlsxrb.rbs +56 -188
  74. data/sig/rexml.rbs +8 -0
  75. metadata +3 -5
  76. data/lib/xlsxrb/utils.rb +0 -251
  77. data/sig/generated/xlsxrb/utils.rbs +0 -200
@@ -13,35 +13,29 @@ module Xlsxrb
13
13
  # Maximum number of columns supported by Excel / OpenXML.
14
14
  MAX_COLUMN: ::Integer
15
15
 
16
- # @deprecated Use {MAX_COLUMN} instead. Will be removed in 0.2.0.
17
- MAX_COL: untyped
18
-
19
16
  # Maximum number of individual cell/range references allowed in a single data validation element by Excel.
20
17
  MAX_REFS_PER_VALIDATION: ::Integer
21
18
 
22
- # @api private
23
- module Deprecation
24
- def self.warn: (untyped message, ?uplevel: untyped) -> untyped
25
- end
19
+ # <workbookProtection> attributes and the Elements::WorkbookProtection members they load into.
20
+ WORKBOOK_PROTECTION_ATTRIBUTES: untyped
21
+
22
+ # ZIP deflate level used when no compression_level is given.
23
+ # See docs/adr/0009-default-zip-compression-level.md.
24
+ DEFAULT_COMPRESSION_LEVEL: ::Integer
26
25
 
27
26
  # Base class for all exceptions raised by Xlsxrb.
28
- # Predefined cell error constants are exposed on this class for convenience.
29
27
  class Error < StandardError
30
- DIV0: untyped
31
-
32
- NA: untyped
33
-
34
- NAME: untyped
35
-
36
- NULL: untyped
37
-
38
- NUM: untyped
39
-
40
- REF: untyped
28
+ end
41
29
 
42
- VALUE: untyped
30
+ # @api private
31
+ module Deprecation
32
+ LIB_DIR: untyped
43
33
 
44
- GETTING_DATA: untyped
34
+ # Warns that a feature is deprecated, at the location +uplevel+ frames above the caller,
35
+ # or, with +uplevel: nil+, at the first caller outside this library, for methods that
36
+ # are reached both directly and through another xlsxrb method.
37
+ # : (String message, ?uplevel: Integer?) -> void
38
+ def self.warn: (String message, ?uplevel: Integer?) -> void
45
39
  end
46
40
 
47
41
  # Raised when parsing malformed or invalid XML structures.
@@ -118,12 +112,10 @@ module Xlsxrb
118
112
  # @param type [Symbol, String, nil] Formula type (:shared, :array, etc.).
119
113
  # @param ref [String, nil] Target cell or range reference (e.g. "A1:C1").
120
114
  # @param shared_index [Integer, nil] Shared formula group index (0-based).
121
- # @param si [Integer, nil] Alias for shared_index.
122
115
  # @return [Elements::Formula]
123
116
  # @api public
124
- # rubocop:disable Naming/MethodParameterName
125
- # : (String expression, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?, ?si: Integer?) -> Elements::Formula
126
- def self.formula: (String expression, ?cached_value: String | Numeric | bool | Elements::CellError | nil, ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?, ?si: Integer?) -> Elements::Formula
117
+ # : (String expression, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?) -> Elements::Formula
118
+ def self.formula: (String expression, ?cached_value: String | Numeric | bool | Elements::CellError | nil, ?type: (Symbol | String)?, ?ref: String?, ?shared_index: Integer?) -> Elements::Formula
127
119
 
128
120
  # Creates a shared formula {Elements::Formula} object for master or follower cell.
129
121
  #
@@ -135,31 +127,28 @@ module Xlsxrb
135
127
  #
136
128
  # @param expression [String, nil] The formula expression (nil for follower cells).
137
129
  # @param shared_index [Integer, nil] Shared formula group index (0-based).
138
- # @param si [Integer, nil] Legacy alias for shared_index.
139
130
  # @param ref [String, nil] Target range for master cell (e.g. "B2:B10").
140
131
  # @param cached_value [Object, nil] Optional precomputed value.
141
132
  # @return [Elements::Formula]
142
133
  # @api public
143
- # : (?String? expression, ?shared_index: Integer?, ?si: Integer?, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil)) -> Elements::Formula
144
- def self.shared_formula: (?String? expression, ?shared_index: Integer?, ?si: Integer?, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil) -> Elements::Formula
134
+ # : (?String? expression, ?shared_index: Integer?, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil)) -> Elements::Formula
135
+ def self.shared_formula: (?String? expression, ?shared_index: Integer?, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil) -> Elements::Formula
145
136
 
146
137
  # Creates an array or dynamic array {Elements::Formula} object.
147
138
  #
148
139
  # @example Create a multi-cell array formula
149
- # formula = Xlsxrb.array_formula("SUM(B1:B10*C1:C10)", "A1:C1", cached_value: 0)
150
140
  # formula = Xlsxrb.array_formula("SUM(B1:B10*C1:C10)", ref: "A1:C1", cached_value: 0)
151
141
  #
152
142
  # @example Create a dynamic array formula
153
- # formula = Xlsxrb.array_formula("SORT(UNIQUE(A1:A10))", "D1")
143
+ # formula = Xlsxrb.array_formula("SORT(UNIQUE(A1:A10))", ref: "D1")
154
144
  #
155
145
  # @param expression [String] The formula expression without leading '='.
156
- # @param pos_ref [String, nil] Target cell or range reference (positional).
157
146
  # @param ref [String, nil] Target cell or range reference (keyword).
158
147
  # @param cached_value [Object, nil] Optional precomputed value.
159
148
  # @return [Elements::Formula]
160
149
  # @api public
161
- # : (String expression, ?String? pos_ref, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), **untyped attrs) -> Elements::Formula
162
- def self.array_formula: (String expression, ?String? pos_ref, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil, **untyped attrs) -> Elements::Formula
150
+ # : (String expression, ?ref: String?, ?cached_value: (String | Numeric | bool | Elements::CellError | nil), **untyped attrs) -> Elements::Formula
151
+ def self.array_formula: (String expression, ?ref: String?, ?cached_value: String | Numeric | bool | Elements::CellError | nil, **untyped attrs) -> Elements::Formula
163
152
 
164
153
  # Creates an {Elements::Hyperlink} object for use in cell hyperlinks.
165
154
  #
@@ -214,10 +203,6 @@ module Xlsxrb
214
203
  # : (untyped value, ?String? format_code, ?date1904: bool) -> String
215
204
  def self.format_value: (untyped value, ?String? format_code, ?date1904: bool) -> String
216
205
 
217
- # @deprecated Use {.format_value} instead. Will be removed in 0.2.0.
218
- # : (untyped value, ?String? format_code, ?date1904: bool) -> String
219
- def self.format: (untyped value, ?String? format_code, ?date1904: bool) -> String
220
-
221
206
  # Converts a Date or Time to an Excel numeric serial number (1900 or 1904 system).
222
207
  #
223
208
  # @example
@@ -267,10 +252,6 @@ module Xlsxrb
267
252
  # : (Time | Date time, ?date1904: bool) -> Float
268
253
  def self.time_to_serial: (Time | Date time, ?date1904: bool) -> Float
269
254
 
270
- # @deprecated Use {.time_to_serial} instead. Will be removed in 0.2.0.
271
- # : (Time | Date time, ?date1904: bool) -> Float
272
- def self.datetime_to_serial: (Time | Date time, ?date1904: bool) -> Float
273
-
274
255
  # Converts an Excel serial number to a Time (UTC).
275
256
  #
276
257
  # @example
@@ -283,10 +264,6 @@ module Xlsxrb
283
264
  # : (Numeric serial, ?date1904: bool) -> Time
284
265
  def self.serial_to_time: (Numeric serial, ?date1904: bool) -> Time
285
266
 
286
- # @deprecated Use {.serial_to_time} instead. Will be removed in 0.2.0.
287
- # : (Numeric serial, ?date1904: bool) -> Time
288
- def self.serial_to_datetime: (Numeric serial, ?date1904: bool) -> Time
289
-
290
267
  # Converts a cell reference string (e.g. "A1", "BC100") to 0-based [row, col] coordinates.
291
268
  #
292
269
  # @example
@@ -383,24 +360,21 @@ module Xlsxrb
383
360
  # Expands a formula by shifting relative cell references from a master cell to a target cell or by offset amounts.
384
361
  #
385
362
  # @example Shift formula down one row
386
- # Xlsxrb.expand_formula("A2*2", 1, 0) #=> "A3*2"
363
+ # Xlsxrb.expand_formula("A2*2", row_delta: 1, column_delta: 0) #=> "A3*2"
387
364
  # Xlsxrb.expand_formula("A2*2", from_ref: "B2", to_ref: "B3") #=> "A3*2"
388
365
  #
389
366
  # @example Shift formula with absolute references
390
- # Xlsxrb.expand_formula("$A$1+A2", 2, 0) #=> "$A$1+A4"
367
+ # Xlsxrb.expand_formula("$A$1+A2", row_delta: 2, column_delta: 0) #=> "$A$1+A4"
391
368
  #
392
369
  # @param formula [String, nil] Formula expression to expand.
393
- # @param offset_row [Integer, nil] Optional row shift amount (positive = down, negative = up).
394
- # @param offset_col [Integer, nil] Optional column shift amount (positive = right, negative = left).
395
370
  # @param from_ref [String, nil] Master cell reference (e.g. "B2").
396
371
  # @param to_ref [String, nil] Target cell reference (e.g. "B3").
397
372
  # @param row_delta [Integer, nil] Row shift amount (positive = down, negative = up).
398
373
  # @param column_delta [Integer, nil] Column shift amount (positive = right, negative = left).
399
- # @param col_delta [Integer, nil] Deprecated alias for column_delta.
400
374
  # @return [String, nil] Expanded formula expression.
401
375
  # @api public
402
- # : (String? formula, ?Integer? offset_row, ?Integer? offset_col, ?from_ref: String?, ?to_ref: String?, ?row_delta: Integer?, ?column_delta: Integer?, ?col_delta: Integer?) -> String?
403
- def self.expand_formula: (String? formula, ?Integer? offset_row, ?Integer? offset_col, ?from_ref: String?, ?to_ref: String?, ?row_delta: Integer?, ?column_delta: Integer?, ?col_delta: Integer?) -> String?
376
+ # : (String? formula, ?from_ref: String?, ?to_ref: String?, ?row_delta: Integer?, ?column_delta: Integer?) -> String?
377
+ def self.expand_formula: (String? formula, ?from_ref: String?, ?to_ref: String?, ?row_delta: Integer?, ?column_delta: Integer?) -> String?
404
378
 
405
379
  # Resolves an ECMA-376 indexed color palette index (0..63) to an RRGGBB hex string (or AARRGGBB if alpha: true).
406
380
  #
@@ -430,10 +404,6 @@ module Xlsxrb
430
404
  # : (Integer | String | Symbol | nil color, ?alpha: bool) -> String?
431
405
  def self.to_hex_color: (Integer | String | Symbol | nil color, ?alpha: bool) -> String?
432
406
 
433
- # @deprecated Use {.to_hex_color} instead. Will be removed in 0.2.0.
434
- # : (Integer | String | Symbol | nil color, ?alpha: bool) -> String?
435
- def self.color_to_hex: (Integer | String | Symbol | nil color, ?alpha: bool) -> String?
436
-
437
407
  # Sanitizes a worksheet name to ensure it conforms to Excel constraints within 31 characters.
438
408
  # Replaces forbidden characters (\ / ? * [ ] : and control characters),
439
409
  # replaces leading/trailing apostrophes, and replaces reserved 'History' with 'History_'.
@@ -449,35 +419,11 @@ module Xlsxrb
449
419
  # : (untyped name, ?replace_char: String) -> String
450
420
  def self.sanitize_sheet_name: (untyped name, ?replace_char: String) -> String
451
421
 
452
- # @deprecated Use {.sanitize_sheet_name} instead. Will be removed in 0.2.0.
453
- # : (untyped name, ?replace_char: String) -> String
454
- def self.sheet_name: (untyped name, ?replace_char: String) -> String
455
-
456
422
  # Reads an XLSX file (streaming and lazy-loaded by default) from a file path, IO stream, or binary String.
457
423
  #
458
424
  # Sheets and rows are streamed lazily with O(1) constant memory. If a block is given,
459
- # yields each {StreamSheet} sequentially. Call {#load} on the returned Workbook or Sheet
460
- # to convert to an in-memory representation for coordinate random access (`sheet["A1"]`).
461
- #
462
- # @overload read(source, password: nil, trim_empty_rows: false, pad_empty_rows: false, pad_empty_cells: false, &block)
463
- # Yields each {StreamSheet} sequentially in streaming mode.
464
- # @param source [String, IO, StringIO] File path, binary content string, or readable IO stream.
465
- # @param password [String, nil] Optional password to decrypt password-protected XLSX files.
466
- # @param trim_empty_rows [Boolean] Whether to omit trailing empty rows during sheet iteration.
467
- # @param pad_empty_rows [Boolean] Whether to yield empty rows for skipped row numbers.
468
- # @param pad_empty_cells [Boolean] Whether to pad missing cells within rows.
469
- # @yield [sheet]
470
- # @yieldparam sheet [StreamSheet] The streaming worksheet object.
471
- # @return [void]
472
- #
473
- # @overload read(source, password: nil, trim_empty_rows: false, pad_empty_rows: false, pad_empty_cells: false)
474
- # Returns a lazy {Elements::Workbook} object.
475
- # @param source [String, IO, StringIO] File path, binary content string, or readable IO stream.
476
- # @param password [String, nil] Optional password to decrypt password-protected XLSX files.
477
- # @param trim_empty_rows [Boolean] Whether to omit trailing empty rows during sheet iteration.
478
- # @param pad_empty_rows [Boolean] Whether to yield empty rows for skipped row numbers.
479
- # @param pad_empty_cells [Boolean] Whether to pad missing cells within rows.
480
- # @return [Elements::Workbook]
425
+ # yields each {StreamSheet} sequentially. Call {StreamSheet#load} to convert a sheet to
426
+ # an in-memory representation for coordinate random access (`sheet["A1"]`).
481
427
  #
482
428
  # @example Streaming read across sheets and rows (O(1) constant memory)
483
429
  # Xlsxrb.read("large.xlsx") do |sheet|
@@ -487,27 +433,24 @@ module Xlsxrb
487
433
  # end
488
434
  # end
489
435
  #
490
- # @example Explicit in-memory loading for coordinate random access
491
- # wb = Xlsxrb.read("data.xlsx")
492
- # sheet = wb.sheets.first
493
- # doc_sheet = sheet.load # explicitly load into memory
494
- # puts doc_sheet["A1"].value # coordinate random access
495
- #
496
- # Reads an XLSX file or IO stream. When called with a block, yields each {StreamSheet}
497
- # for low-memory streaming iteration. When called without a block, returns an {Elements::Workbook}
498
- # containing {StreamSheet} instances.
499
- #
500
- # @deprecated Calling {Xlsxrb.read} without a block is deprecated; use {Xlsxrb.load} for in-memory random access. Will be removed in 0.2.0.
436
+ # @param source [String, IO, StringIO] File path, binary content string, or readable IO stream.
437
+ # @param password [String, nil] Optional password to decrypt password-protected XLSX files.
438
+ # @param trim_empty_rows [Boolean] Whether to omit trailing empty rows during sheet iteration.
439
+ # @param pad_empty_rows [Boolean] Whether to yield empty rows for skipped row numbers.
440
+ # @param pad_empty_cells [Boolean] Whether to pad missing cells within rows.
501
441
  # @param max_uncompressed_size [Integer, nil] Maximum allowed uncompressed size in bytes per entry (ZIP bomb defense).
442
+ # @yield [sheet]
443
+ # @yieldparam sheet [StreamSheet] The streaming worksheet object.
444
+ # @return [Enumerator<StreamSheet>, void]
502
445
  # @raise [ZipBombError] If an uncompressed entry exceeds max_uncompressed_size.
503
446
  # @raise [EncryptedFileError] If the file is encrypted and no password was supplied.
504
447
  # @raise [InvalidPasswordError] If the supplied password is incorrect.
505
448
  # @raise [ParseError] If the spreadsheet XML structure is invalid.
506
449
  # @api public
507
450
  # : (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) { (StreamSheet) -> void } -> void
508
- # : (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) -> Elements::Workbook
451
+ # : (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) -> Enumerator[StreamSheet, void]
509
452
  def self.read: (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) { (StreamSheet) -> void } -> void
510
- | (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) -> Elements::Workbook
453
+ | (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) -> Enumerator[StreamSheet, void]
511
454
 
512
455
  # Loads all sheets into memory, returning an {Elements::Workbook} where every
513
456
  # worksheet is a fully-parsed {Elements::Worksheet} supporting coordinate random access.
@@ -528,15 +471,6 @@ module Xlsxrb
528
471
  # : (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) -> Elements::Workbook
529
472
  def self.load: (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) -> Elements::Workbook
530
473
 
531
- # Internal reader helper returning a Workbook with StreamSheet instances without deprecation warning.
532
- # @api private
533
- # : (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) -> Elements::Workbook
534
- def self._read_workbook: (untyped source, ?password: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?max_uncompressed_size: Integer?) -> Elements::Workbook
535
-
536
- # @deprecated Use {.read} instead. Will be removed in 0.2.0.
537
- # : (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
538
- def self.stream: (*untyped, **untyped) ?{ (*untyped) -> untyped } -> untyped
539
-
540
474
  # Writes an XLSX file or IO stream (streaming or in-memory), or returns a binary string.
541
475
  #
542
476
  # @overload write(?target, password: nil, encryption_mode: :standard, strict_excel_mode: true, &block)
@@ -588,64 +522,11 @@ module Xlsxrb
588
522
  # When set to `false`, strings are emitted directly as inline strings (`<c t="inlineStr">`), providing flat
589
523
  # $O(1)$ constant memory during streaming write. Disabling shared strings is recommended when streaming
590
524
  # large datasets where cells contain unique text (e.g. log exports, transaction details).
591
- # @param compression_level [Integer, nil] ZIP deflate compression level (0..9, or Zlib::DEFAULT_COMPRESSION).
592
- # Level 6 is standard. Level 4 accelerates compression by 20-40% with an ~10% size tradeoff,
593
- # recommended for high-throughput streaming exports. Level 0 disables compression (store only).
594
- # : (?untyped target_or_workbook, ?Elements::Workbook | untyped workbook_or_nil, ?password: String?, ?encryption_mode: Symbol, ?strict_excel_mode: bool, ?escape_formulas: bool, ?default_font: untyped?, ?shared_strings: bool, ?compression_level: Integer | nil) ?{ (StreamWriter) -> void } -> untyped
595
- def self.write: (?untyped target_or_workbook, ?Elements::Workbook | untyped workbook_or_nil, ?password: String?, ?encryption_mode: Symbol, ?strict_excel_mode: bool, ?escape_formulas: bool, ?default_font: untyped?, ?shared_strings: bool, ?compression_level: Integer | nil) ?{ (StreamWriter) -> void } -> untyped
596
-
597
- # Serializes an in-memory workbook to a destination target (path or IO).
598
- #
599
- # @deprecated Use {.write} instead. Will be removed in 0.2.0.
600
- # @param target [String, IO, StringIO] Target destination.
601
- # @param workbook [Elements::Workbook] The workbook instance to write.
602
- # @param shared_strings [Boolean] Whether to intern strings into sharedStrings.xml.
603
- # @param compression_level [Integer, nil] ZIP deflate compression level (0..9).
604
- # @param password [String, nil] Optional encryption password.
605
- # @param encryption_mode [Symbol] Encryption algorithm (:standard or :agile).
606
- # @return [void]
607
- # @api public
608
- # : (String | IO | StringIO target, Elements::Workbook workbook, ?shared_strings: bool, ?compression_level: Integer?, ?password: String?, ?encryption_mode: Symbol) -> void
609
- def self.write_workbook: (String | IO | StringIO target, Elements::Workbook workbook, ?shared_strings: bool, ?compression_level: Integer?, ?password: String?, ?encryption_mode: Symbol) -> void
610
-
611
- # Serializes an in-memory workbook to a binary XLSX data string.
612
- #
613
- # @deprecated Use {.write} instead. Will be removed in 0.2.0.
614
- # @param workbook [Elements::Workbook] The workbook instance to serialize.
615
- # @param shared_strings [Boolean] Whether to intern strings into sharedStrings.xml.
616
- # @param compression_level [Integer, nil] ZIP deflate compression level (0..9).
617
- # @param password [String, nil] Optional encryption password.
618
- # @param encryption_mode [Symbol] Encryption algorithm (:standard or :agile).
619
- # @return [String] Binary XLSX data.
620
- # @api public
621
- # : (Elements::Workbook workbook, ?shared_strings: bool, ?compression_level: Integer?, ?password: String?, ?encryption_mode: Symbol) -> String
622
- def self.workbook_to_data: (Elements::Workbook workbook, ?shared_strings: bool, ?compression_level: Integer?, ?password: String?, ?encryption_mode: Symbol) -> String
623
-
624
- # Modifies an existing XLSX file in-memory using an immutable transformation block.
625
- #
626
- # Reads the workbook, passes it to the block, and writes the resulting workbook.
627
- # If no target is specified, the source file is overwritten in-place.
628
- #
629
- # @example Modify a template and save to new file
630
- # Xlsxrb.modify("template.xlsx", "output.xlsx") do |workbook|
631
- # workbook.update_sheet("Sheet1") do |sheet|
632
- # sheet.update_cell("B1", value: "Updated Title")
633
- # .update_cell("B2", value: 100)
634
- # end
635
- # end
636
- #
637
- # @param source [String, IO, StringIO] The source file path or IO object.
638
- # @param target [String, IO, StringIO, nil] Target file path or IO object (overwrites source if nil).
639
- # @param password [String, nil] Optional password for decrypting encrypted source files.
640
- # @deprecated Use {Xlsxrb.read} + {Xlsxrb.write} for streaming transformations or {Xlsxrb.write} DSL for report generation. Will be removed in 0.2.0.
641
- # @param new_password [String, nil] Optional password for encrypting the output file (defaults to password).
642
- # @yield [workbook]
643
- # @yieldparam workbook [Elements::Workbook] The loaded workbook.
644
- # @yieldreturn [Elements::Workbook] The modified workbook.
645
- # @return [Elements::Workbook] The modified workbook returned by the block.
646
- # @api public
647
- # : (untyped source, ?untyped target, ?password: String?, ?new_password: String?, **untyped opts) ?{ (Elements::Workbook) -> untyped } -> untyped
648
- def self.modify: (untyped source, ?untyped target, ?password: String?, ?new_password: String?, **untyped opts) ?{ (Elements::Workbook) -> untyped } -> untyped
525
+ # @param compression_level [Integer, nil] ZIP deflate compression level (0..9, or Zlib::DEFAULT_COMPRESSION
526
+ # for zlib's level 6). Defaults to {DEFAULT_COMPRESSION_LEVEL}. Higher levels write smaller files more slowly;
527
+ # level 0 stores entries without compression. See docs/adr/0009-default-zip-compression-level.md.
528
+ # : (?untyped target_or_workbook, ?Elements::Workbook | untyped workbook_or_nil, ?password: String?, ?encryption_mode: Symbol, ?strict_excel_mode: bool, ?default_font: untyped?, ?shared_strings: bool, ?compression_level: Integer | nil) ?{ (StreamWriter) -> void } -> untyped
529
+ def self.write: (?untyped target_or_workbook, ?Elements::Workbook | untyped workbook_or_nil, ?password: String?, ?encryption_mode: Symbol, ?strict_excel_mode: bool, ?default_font: untyped?, ?shared_strings: bool, ?compression_level: Integer | nil) ?{ (StreamWriter) -> void } -> untyped
649
530
 
650
531
  # Builds an in-memory {Elements::Workbook} using a declarative DSL.
651
532
  #
@@ -657,15 +538,18 @@ module Xlsxrb
657
538
  # end
658
539
  # end
659
540
  #
541
+ # @note Planned for version 0.3.0: Cell#format_code of the built cells will be the
542
+ # number format of each cell's resolved style, as in a loaded workbook; cells styled
543
+ # :default or :none will have style index 0; and a style index given in cell_styles
544
+ # will be kept only in Cell#style_index.
660
545
  # @param strict_excel_mode [Boolean] Whether to enforce Microsoft Excel specification limits.
661
- # @param escape_formulas [Boolean] Whether to treat strings starting with formula prefixes as plain text.
662
546
  # @param default_font [Hash, nil] Optional default font options.
663
547
  # @yield [builder]
664
548
  # @yieldparam builder [Xlsxrb::WorkbookBuilder]
665
549
  # @return [Elements::Workbook] The compiled in-memory workbook.
666
550
  # @api public
667
- # : (?strict_excel_mode: bool, ?escape_formulas: bool, ?default_font: untyped?) ?{ (WorkbookBuilder) -> void } -> Elements::Workbook
668
- def self.build: (?strict_excel_mode: bool, ?escape_formulas: bool, ?default_font: untyped?) ?{ (WorkbookBuilder) -> void } -> Elements::Workbook
551
+ # : (?strict_excel_mode: bool, ?default_font: untyped?) ?{ (WorkbookBuilder) -> void } -> Elements::Workbook
552
+ def self.build: (?strict_excel_mode: bool, ?default_font: untyped?) ?{ (WorkbookBuilder) -> void } -> Elements::Workbook
669
553
 
670
554
  private def self.resolve_workbook_entry: (untyped zip_reader) -> untyped
671
555
 
@@ -679,8 +563,8 @@ module Xlsxrb
679
563
 
680
564
  private def self.resolve_part_entry: (untyped zip_reader, untyped rels, untyped rel_type_sub, untyped fallback_name, untyped wb_dir) -> untyped
681
565
 
682
- # : (String name, String? sheet_xml, Array[String] shared_strings, untyped styles, ?state: Symbol, ?zip_reader: Ooxml::ZipReader?, ?entry_name: String?, ?hyperlinks: Hash[String, untyped]?, ?comments: Array[Hash[Symbol, untyped]]?, ?images: Array[Elements::Image]?, ?date1904: bool, ?dimension: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?merged_cells: Array[String]?, ?auto_filter: String?, ?tables: Array[Hash[Symbol, untyped]]?, ?shapes: Array[Hash[Symbol, untyped]]?, ?freeze_pane: Hash[Symbol, untyped]?, ?page_setup: Hash[Symbol, untyped]?, ?page_margins: Hash[Symbol, untyped]?, ?header_footer: Hash[Symbol, untyped]?, ?print_options: Hash[Symbol, untyped]?, ?sheet_protection: Hash[Symbol, untyped]?, ?sheet_view: Hash[Symbol, untyped]?, ?sheet_properties: Hash[Symbol, untyped]?, ?sheet_format: Hash[Symbol, untyped]?, ?row_breaks: Array[untyped]?, ?column_breaks: Array[untyped]?, ?col_breaks: Array[untyped]?, ?protected_ranges: Array[Hash[Symbol, untyped]]?, ?cell_watches: Array[String]?, ?ignored_errors: Array[Hash[Symbol, untyped]]?, ?phonetic_properties: Hash[Symbol, untyped]?, ?selection: (Hash[Symbol, untyped] | Array[Hash[Symbol, untyped]])?, ?sheet_calc_properties: Hash[Symbol, untyped]?, ?sheet_calc_pr: Hash[Symbol, untyped]?, ?background_image: Hash[Symbol, untyped]?, ?threaded_comments: Array[Hash[Symbol, untyped]]?, ?columns: Array[Elements::Column]?, ?pivot_tables: Array[Hash[Symbol, untyped]]?, ?split_pane: Hash[Symbol, untyped]?, ?filter_columns: Hash[Integer, Hash[Symbol, untyped]]?, ?sort_state: Hash[Symbol, untyped]?, ?header_footer_images: (Array[Elements::HeaderFooterImage] | Array[Hash[Symbol, untyped]])?, ?charts: (Array[Elements::Chart] | Array[Hash[Symbol, untyped]])?, ?sparkline_groups: (Array[Elements::SparklineGroup] | Array[Hash[Symbol, untyped]])?, ?print_area: String?, ?print_titles: (Elements::PrintTitles | Hash[Symbol, untyped])?) -> Elements::Worksheet
683
- private def self.build_worksheet: (String name, String? sheet_xml, Array[String] shared_strings, untyped styles, ?state: Symbol, ?zip_reader: Ooxml::ZipReader?, ?entry_name: String?, ?hyperlinks: Hash[String, untyped]?, ?comments: Array[Hash[Symbol, untyped]]?, ?images: Array[Elements::Image]?, ?date1904: bool, ?dimension: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?merged_cells: Array[String]?, ?auto_filter: String?, ?tables: Array[Hash[Symbol, untyped]]?, ?shapes: Array[Hash[Symbol, untyped]]?, ?freeze_pane: Hash[Symbol, untyped]?, ?page_setup: Hash[Symbol, untyped]?, ?page_margins: Hash[Symbol, untyped]?, ?header_footer: Hash[Symbol, untyped]?, ?print_options: Hash[Symbol, untyped]?, ?sheet_protection: Hash[Symbol, untyped]?, ?sheet_view: Hash[Symbol, untyped]?, ?sheet_properties: Hash[Symbol, untyped]?, ?sheet_format: Hash[Symbol, untyped]?, ?row_breaks: Array[untyped]?, ?column_breaks: Array[untyped]?, ?col_breaks: Array[untyped]?, ?protected_ranges: Array[Hash[Symbol, untyped]]?, ?cell_watches: Array[String]?, ?ignored_errors: Array[Hash[Symbol, untyped]]?, ?phonetic_properties: Hash[Symbol, untyped]?, ?selection: (Hash[Symbol, untyped] | Array[Hash[Symbol, untyped]])?, ?sheet_calc_properties: Hash[Symbol, untyped]?, ?sheet_calc_pr: Hash[Symbol, untyped]?, ?background_image: Hash[Symbol, untyped]?, ?threaded_comments: Array[Hash[Symbol, untyped]]?, ?columns: Array[Elements::Column]?, ?pivot_tables: Array[Hash[Symbol, untyped]]?, ?split_pane: Hash[Symbol, untyped]?, ?filter_columns: Hash[Integer, Hash[Symbol, untyped]]?, ?sort_state: Hash[Symbol, untyped]?, ?header_footer_images: (Array[Elements::HeaderFooterImage] | Array[Hash[Symbol, untyped]])?, ?charts: (Array[Elements::Chart] | Array[Hash[Symbol, untyped]])?, ?sparkline_groups: (Array[Elements::SparklineGroup] | Array[Hash[Symbol, untyped]])?, ?print_area: String?, ?print_titles: (Elements::PrintTitles | Hash[Symbol, untyped])?) -> Elements::Worksheet
566
+ # : (String name, String? sheet_xml, Array[String] shared_strings, untyped styles, ?state: Symbol, ?zip_reader: Ooxml::ZipReader?, ?entry_name: String?, ?hyperlinks: Hash[String, untyped]?, ?comments: Array[Hash[Symbol, untyped]]?, ?images: Array[Elements::Image]?, ?date1904: bool, ?dimension: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?merged_cells: Array[String]?, ?auto_filter: String?, ?tables: Array[Hash[Symbol, untyped]]?, ?shapes: Array[Hash[Symbol, untyped]]?, ?freeze_pane: Hash[Symbol, untyped]?, ?page_setup: Hash[Symbol, untyped]?, ?page_margins: Hash[Symbol, untyped]?, ?header_footer: Hash[Symbol, untyped]?, ?print_options: Hash[Symbol, untyped]?, ?sheet_protection: Hash[Symbol, untyped]?, ?sheet_view: Hash[Symbol, untyped]?, ?sheet_properties: Hash[Symbol, untyped]?, ?sheet_format: Hash[Symbol, untyped]?, ?row_breaks: Array[untyped]?, ?column_breaks: Array[untyped]?, ?col_breaks: Array[untyped]?, ?protected_ranges: Array[Hash[Symbol, untyped]]?, ?cell_watches: Array[String]?, ?ignored_errors: Array[Hash[Symbol, untyped]]?, ?phonetic_properties: Hash[Symbol, untyped]?, ?selection: (Hash[Symbol, untyped] | Array[Hash[Symbol, untyped]])?, ?sheet_calc_properties: Hash[Symbol, untyped]?, ?background_image: Hash[Symbol, untyped]?, ?threaded_comments: Array[Hash[Symbol, untyped]]?, ?columns: Array[Elements::Column]?, ?pivot_tables: Array[Hash[Symbol, untyped]]?, ?split_pane: Hash[Symbol, untyped]?, ?filter_columns: Hash[Integer, Hash[Symbol, untyped]]?, ?sort_state: Hash[Symbol, untyped]?, ?header_footer_images: (Array[Elements::HeaderFooterImage] | Array[Hash[Symbol, untyped]])?, ?charts: (Array[Elements::Chart] | Array[Hash[Symbol, untyped]])?, ?sparkline_groups: (Array[Elements::SparklineGroup] | Array[Hash[Symbol, untyped]])?, ?print_area: String?, ?print_titles: (Elements::PrintTitles | Hash[Symbol, untyped])?) -> Elements::Worksheet
567
+ private def self.build_worksheet: (String name, String? sheet_xml, Array[String] shared_strings, untyped styles, ?state: Symbol, ?zip_reader: Ooxml::ZipReader?, ?entry_name: String?, ?hyperlinks: Hash[String, untyped]?, ?comments: Array[Hash[Symbol, untyped]]?, ?images: Array[Elements::Image]?, ?date1904: bool, ?dimension: String?, ?trim_empty_rows: bool, ?pad_empty_rows: bool, ?pad_empty_cells: bool, ?merged_cells: Array[String]?, ?auto_filter: String?, ?tables: Array[Hash[Symbol, untyped]]?, ?shapes: Array[Hash[Symbol, untyped]]?, ?freeze_pane: Hash[Symbol, untyped]?, ?page_setup: Hash[Symbol, untyped]?, ?page_margins: Hash[Symbol, untyped]?, ?header_footer: Hash[Symbol, untyped]?, ?print_options: Hash[Symbol, untyped]?, ?sheet_protection: Hash[Symbol, untyped]?, ?sheet_view: Hash[Symbol, untyped]?, ?sheet_properties: Hash[Symbol, untyped]?, ?sheet_format: Hash[Symbol, untyped]?, ?row_breaks: Array[untyped]?, ?column_breaks: Array[untyped]?, ?col_breaks: Array[untyped]?, ?protected_ranges: Array[Hash[Symbol, untyped]]?, ?cell_watches: Array[String]?, ?ignored_errors: Array[Hash[Symbol, untyped]]?, ?phonetic_properties: Hash[Symbol, untyped]?, ?selection: (Hash[Symbol, untyped] | Array[Hash[Symbol, untyped]])?, ?sheet_calc_properties: Hash[Symbol, untyped]?, ?background_image: Hash[Symbol, untyped]?, ?threaded_comments: Array[Hash[Symbol, untyped]]?, ?columns: Array[Elements::Column]?, ?pivot_tables: Array[Hash[Symbol, untyped]]?, ?split_pane: Hash[Symbol, untyped]?, ?filter_columns: Hash[Integer, Hash[Symbol, untyped]]?, ?sort_state: Hash[Symbol, untyped]?, ?header_footer_images: (Array[Elements::HeaderFooterImage] | Array[Hash[Symbol, untyped]])?, ?charts: (Array[Elements::Chart] | Array[Hash[Symbol, untyped]])?, ?sparkline_groups: (Array[Elements::SparklineGroup] | Array[Hash[Symbol, untyped]])?, ?print_area: String?, ?print_titles: (Elements::PrintTitles | Hash[Symbol, untyped])?) -> Elements::Worksheet
684
568
 
685
569
  # : (String? sheet_xml, ?zip_reader: Ooxml::ZipReader?, ?entry_name: String?, ?rels_xml: String?) -> Hash[String, Hash[Symbol, untyped]]
686
570
  private def self.resolve_hyperlinks: (String? sheet_xml, ?zip_reader: Ooxml::ZipReader?, ?entry_name: String?, ?rels_xml: String?) -> Hash[String, Hash[Symbol, untyped]]
@@ -691,6 +575,11 @@ module Xlsxrb
691
575
  # : (?zip_reader: Ooxml::ZipReader?, ?entry_name: String?) -> Array[Hash[Symbol, untyped]]
692
576
  private def self.resolve_comments: (?zip_reader: Ooxml::ZipReader?, ?entry_name: String?) -> Array[Hash[Symbol, untyped]]
693
577
 
578
+ # Reads the comment notes of the sheet's legacy VML drawing, keyed by cell reference:
579
+ # whether each is shown permanently (<x:Visible/>) and its <x:Anchor> box position.
580
+ # : (Ooxml::ZipReader zip_reader, Array[Hash[Symbol, untyped]] relationships, String base_dir) -> Hash[String, Hash[Symbol, untyped]]
581
+ private def self.vml_notes: (Ooxml::ZipReader zip_reader, Array[Hash[Symbol, untyped]] relationships, String base_dir) -> Hash[String, Hash[Symbol, untyped]]
582
+
694
583
  # : (?zip_reader: Ooxml::ZipReader?, ?entry_name: String?) -> Array[Hash[Symbol, untyped]]
695
584
  private def self.resolve_threaded_comments: (?zip_reader: Ooxml::ZipReader?, ?entry_name: String?) -> Array[Hash[Symbol, untyped]]
696
585
 
@@ -735,25 +624,4 @@ module Xlsxrb
735
624
 
736
625
  # : (untyped source, String? password) -> untyped
737
626
  private def self.prepare_source_io: (untyped source, String? password) -> untyped
738
-
739
- # : (untyped dest, Ooxml::ZipReader zip_reader, Hash[String, String] replaced_entries, ?password: String?) -> void
740
- private def self.perform_modify_write: (untyped dest, Ooxml::ZipReader zip_reader, Hash[String, String] replaced_entries, ?password: String?) -> void
741
-
742
- # : (String sst_xml, Array[untyped] new_strings) -> String
743
- private def self.append_to_shared_strings_xml: (String sst_xml, Array[untyped] new_strings) -> String
744
-
745
- # : (String sheet_xml, String new_sheet_data_xml) -> String
746
- private def self.replace_sheet_data: (String sheet_xml, String new_sheet_data_xml) -> String
747
-
748
- # : (String sheet_xml, Array[Elements::Row] rows) -> String
749
- private def self.update_dimension: (String sheet_xml, Array[Elements::Row] rows) -> String
750
-
751
- # : (String sheet_xml, String? orig_rels_xml, Hash[String, untyped] new_hyperlinks) -> [String, String?]
752
- private def self.update_sheet_hyperlinks: (String sheet_xml, String? orig_rels_xml, Hash[String, untyped] new_hyperlinks) -> [ String, String? ]
753
-
754
- # : (String sheet_xml, String _rels_path, String? orig_rels_xml, Array[Hash[Symbol, untyped]] new_comments, Ooxml::ZipReader zip_reader, Integer sheet_idx, String entry_name, Hash[String, String] replaced_entries) -> [String, String?]
755
- private def self.update_sheet_comments: (String sheet_xml, String _rels_path, String? orig_rels_xml, Array[Hash[Symbol, untyped]] new_comments, Ooxml::ZipReader zip_reader, Integer sheet_idx, String entry_name, Hash[String, String] replaced_entries) -> [ String, String? ]
756
-
757
- # : (Array[Elements::Row] rows, Array[untyped] shared_strings, Hash[untyped, Integer] sst_index, ?use_sst: bool, ?date1904: bool) -> String
758
- private def self.serialize_sheet_data_xml: (Array[Elements::Row] rows, Array[untyped] shared_strings, Hash[untyped, Integer] sst_index, ?use_sst: bool, ?date1904: bool) -> String
759
627
  end
data/sig/rexml.rbs CHANGED
@@ -1,4 +1,12 @@
1
1
  module REXML
2
2
  module SAX2Listener
3
3
  end
4
+
5
+ module Parsers
6
+ class SAX2Parser
7
+ def initialize: (untyped source) -> void
8
+ def listen: (*untyped args) ?{ (*untyped) -> untyped } -> untyped
9
+ def parse: () -> untyped
10
+ end
11
+ end
4
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlsxrb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - niku
@@ -99,7 +99,6 @@ files:
99
99
  - lib/xlsxrb/stream_sheet.rb
100
100
  - lib/xlsxrb/stream_writer.rb
101
101
  - lib/xlsxrb/style_builder.rb
102
- - lib/xlsxrb/utils.rb
103
102
  - lib/xlsxrb/version.rb
104
103
  - lib/xlsxrb/workbook_builder.rb
105
104
  - lib/xlsxrb/worksheet_builder.rb
@@ -150,7 +149,6 @@ files:
150
149
  - sig/generated/xlsxrb/stream_sheet.rbs
151
150
  - sig/generated/xlsxrb/stream_writer.rbs
152
151
  - sig/generated/xlsxrb/style_builder.rbs
153
- - sig/generated/xlsxrb/utils.rbs
154
152
  - sig/generated/xlsxrb/version.rbs
155
153
  - sig/generated/xlsxrb/workbook_builder.rbs
156
154
  - sig/generated/xlsxrb/worksheet_builder.rbs
@@ -171,14 +169,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
171
169
  requirements:
172
170
  - - ">="
173
171
  - !ruby/object:Gem::Version
174
- version: 4.0.0
172
+ version: 3.4.0
175
173
  required_rubygems_version: !ruby/object:Gem::Requirement
176
174
  requirements:
177
175
  - - ">="
178
176
  - !ruby/object:Gem::Version
179
177
  version: '0'
180
178
  requirements: []
181
- rubygems_version: 4.0.10
179
+ rubygems_version: 4.0.20
182
180
  specification_version: 4
183
181
  summary: A streaming-capable, fast, low-memory XLSX reader/writer.
184
182
  test_files: []