ironcalc 0.8.3.0-aarch64-linux → 0.9.1.0-aarch64-linux

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c99edc1bc91a41d2ffe5d5431ad406a75808f77436d2d39eb5a9395a61ca999c
4
- data.tar.gz: f96aec422f0a7dd632ac578b5dad160bce4e6815844e73382bc523f6f9dd7205
3
+ metadata.gz: 65e591f0a828bec6bb9ff83e500cfebcc9771293dddbbe4afbca34188dcc9e3e
4
+ data.tar.gz: 65ad2b05090d5a1f17c80c2a7390333f0ce8c0474794e2f98525a50509d3e290
5
5
  SHA512:
6
- metadata.gz: 555cd3ec58561785011ff91274c7cf7b9f6f35069293812a11257ac602f2aed1b8b7f7798f2ee9250140fb7cff817903b59c36f6ce72e963409d07cf5f6034e4
7
- data.tar.gz: d897ffc076438cadb3adac934bf1365ca1031a5084daefcc705e785bb8a983eb1caa843d9758f77f6becea08ce976b9f436e0ec4ec39f19c6350826085044366
6
+ metadata.gz: 0cada2c57f156a871074a3ba2d8c34f0cef1c54906a8afa8967035c2301860919623de44a424126e8545943fbd8dc70da3b78765f6cbdcbba228a2cc3d7b9340
7
+ data.tar.gz: 9a6e7a835b0e35f97ee86ae2517772ada90472de9195a8a55d448abef7da96801cbb27395cb46aaeb829294d5f57de746925bf7496ce124f42c13a2985ccfbdb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## 0.9.1.0
2
+
3
+ - update the IronCalc engine to 0.9.1
4
+ - merged cells on `Model` and `UserModel`: `merge_cells`, `merge_cells_across`,
5
+ `merge_cells_center`, `merge_cells_down`, `unmerge_cells` and
6
+ `get_merged_cells`, plus `get_merge_structure` on `Model`, which returns a
7
+ Hash tagged by `:type` (`{type: "Anchor", width:, height:}`)
8
+
9
+ ## 0.9.0.0
10
+
11
+ - update the IronCalc engine to 0.9.0
12
+
1
13
  ## 0.8.3.0
2
14
 
3
15
  - update the IronCalc engine to 0.8.3
data/README.md CHANGED
@@ -263,18 +263,19 @@ corners.
263
263
  ### Coverage compared to the Python bindings
264
264
 
265
265
  Both bindings wrap the same engine, so anything both expose behaves the same.
266
- They do not expose the same amount of it. Counted against **IronCalc 0.8.3**,
266
+ They do not expose the same amount of it. Counted against **IronCalc 0.9.0**,
267
267
  the version this gem tracks, and accurate at the time of writing:
268
268
 
269
269
  | | Python | Ruby |
270
270
  |---|---|---|
271
- | `Model` | 69 | 62 |
272
- | `UserModel` | 102 | 52 |
271
+ | `Model` | 81 | 62 |
272
+ | `UserModel` | 119 | 52 |
273
273
 
274
274
  Most of the difference is deliberate. Selection, scrolling, clipboard and
275
275
  keyboard state belong to a UI rather than to a library, and are not exposed
276
- here. Conditional formatting, named styles and themes are a known backlog,
277
- listed explicitly in `rake parity`'s `ENGINE_DEFERRED` so they stay visible.
276
+ here. Conditional formatting, named styles, themes, merged cells and
277
+ hyperlinks are a known backlog, listed explicitly in `rake parity`'s
278
+ `ENGINE_DEFERRED` so they stay visible.
278
279
 
279
280
  What Ruby adds is mostly layering rather than extra engine coverage: Hash-based
280
281
  styles, `batch`, and xlsx in memory (`to_xlsx_bytes` / `load_from_xlsx_bytes`).
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -629,6 +629,70 @@ module IronCalc
629
629
  # @return [void]
630
630
  # @raise [IronCalc::Error]
631
631
 
632
+ # @!method merge_cells(range)
633
+ # Merges a range into one cell anchored at its top-left cell.
634
+ # @param range [Hash] the engine's +Area+: +{sheet:, row:, column:, width:,
635
+ # height:}+
636
+ # @return [void]
637
+ # @raise [IronCalc::Error] if the range is a single cell, out of bounds,
638
+ # intersects a merged cell or an array formula, or has more than one cell
639
+ # with content; nothing changes
640
+
641
+ # @!method merge_cells_across(range)
642
+ # {#merge_cells} on each row of the range; all rows or none.
643
+ # @param range [Hash] the engine's +Area+
644
+ # @return [void]
645
+ # @raise [IronCalc::Error] as {#merge_cells}, for any row
646
+
647
+ # @!method merge_cells_center(range)
648
+ # {#merge_cells}, then centers the merged cell horizontally.
649
+ # @param range [Hash] the engine's +Area+
650
+ # @return [void]
651
+ # @raise [IronCalc::Error] as {#merge_cells}
652
+
653
+ # @!method merge_cells_down(range)
654
+ # {#merge_cells} on each column of the range; all columns or none.
655
+ # @param range [Hash] the engine's +Area+
656
+ # @return [void]
657
+ # @raise [IronCalc::Error] as {#merge_cells}, for any column
658
+
659
+ # @!method unmerge_cells(range)
660
+ # Removes every merged cell that intersects the range.
661
+ # @param range [Hash] the engine's +Area+
662
+ # @return [void]
663
+ # @raise [IronCalc::Error] if the range is invalid (a +row+, +column+,
664
+ # +width+ or +height+ below 1) or the sheet doesn't exist, not if it
665
+ # holds no merged cells
666
+
667
+ # @!method get_merged_cells(sheet)
668
+ # The sheet's merged cells as +{row:, column:, width:, height:}+ Hashes,
669
+ # +row+ and +column+ being the anchor.
670
+ # @param sheet [Integer]
671
+ # @return [Array<Hash>]
672
+ # @raise [IronCalc::Error]
673
+
674
+ # @!method get_merge_structure(sheet, row, column)
675
+ # Where a cell stands relative to the sheet's merged cells, as a Hash
676
+ # tagged by the engine's +MergeStructure+ variant: +{type: "None"}+,
677
+ # +{type: "Anchor", width:, height:}+ or
678
+ # +{type: "Covered", anchor_row:, anchor_column:}+.
679
+ # @example The +Area+ displayed as one cell at a position
680
+ # def displayed_area(model, sheet, row, column)
681
+ # case model.get_merge_structure(sheet, row, column)
682
+ # in {type: "None"}
683
+ # {sheet: sheet, row: row, column: column, width: 1, height: 1}
684
+ # in {type: "Anchor", width:, height:}
685
+ # {sheet: sheet, row: row, column: column, width: width, height: height}
686
+ # in {type: "Covered", anchor_row:, anchor_column:}
687
+ # displayed_area(model, sheet, anchor_row, anchor_column)
688
+ # end
689
+ # end
690
+ # @param sheet [Integer]
691
+ # @param row [Integer]
692
+ # @param column [Integer]
693
+ # @return [Hash]
694
+ # @raise [IronCalc::Error]
695
+
632
696
  # (yardoc bug lsegal/yard#1207). Doc-only file, never loaded at runtime.
633
697
  # @!visibility private
634
698
  def __yard_anchor__
@@ -973,6 +1037,45 @@ module IronCalc
973
1037
  # +evaluate+ afterwards to bring the workbook up to date.
974
1038
  # @return [void]
975
1039
 
1040
+ # @!method merge_cells(range)
1041
+ # {Model#merge_cells}, as one undo step.
1042
+ # @param range [Hash] the engine's +Area+: +{sheet:, row:, column:, width:,
1043
+ # height:}+
1044
+ # @return [void]
1045
+ # @raise [IronCalc::Error] as {Model#merge_cells}
1046
+
1047
+ # @!method merge_cells_across(range)
1048
+ # {Model#merge_cells_across}, as one undo step.
1049
+ # @param range [Hash] the engine's +Area+
1050
+ # @return [void]
1051
+ # @raise [IronCalc::Error] as {Model#merge_cells}, for any row
1052
+
1053
+ # @!method merge_cells_center(range)
1054
+ # {Model#merge_cells_center}, as one undo step.
1055
+ # @param range [Hash] the engine's +Area+
1056
+ # @return [void]
1057
+ # @raise [IronCalc::Error] as {Model#merge_cells}
1058
+
1059
+ # @!method merge_cells_down(range)
1060
+ # {Model#merge_cells_down}, as one undo step.
1061
+ # @param range [Hash] the engine's +Area+
1062
+ # @return [void]
1063
+ # @raise [IronCalc::Error] as {Model#merge_cells}, for any column
1064
+
1065
+ # @!method unmerge_cells(range)
1066
+ # {Model#unmerge_cells}, as one undo step (none if no merged cell intersects
1067
+ # the range).
1068
+ # @param range [Hash] the engine's +Area+
1069
+ # @return [void]
1070
+ # @raise [IronCalc::Error] as {Model#unmerge_cells}
1071
+
1072
+ # @!method get_merged_cells(sheet)
1073
+ # The sheet's merged cells as +{row:, column:, width:, height:}+ Hashes,
1074
+ # +row+ and +column+ being the anchor.
1075
+ # @param sheet [Integer]
1076
+ # @return [Array<Hash>]
1077
+ # @raise [IronCalc::Error]
1078
+
976
1079
  # Anchors the @!method stubs above — see {Model}.
977
1080
  # @!visibility private
978
1081
  def __yard_anchor__
@@ -1,3 +1,3 @@
1
1
  module IronCalc
2
- VERSION = "0.8.3.0"
2
+ VERSION = "0.9.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ironcalc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.3.0
4
+ version: 0.9.1.0
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - jvdp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-15 00:00:00.000000000 Z
11
+ date: 2026-11-03 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |
14
14
  Ruby bindings for the IronCalc spreadsheet engine. Create, read and
@@ -42,7 +42,7 @@ metadata:
42
42
  source_code_uri: https://github.com/jvdp/IronCalc-Ruby
43
43
  bug_tracker_uri: https://github.com/jvdp/IronCalc-Ruby/issues
44
44
  changelog_uri: https://github.com/jvdp/IronCalc-Ruby/blob/main/CHANGELOG.md
45
- documentation_uri: https://jvdp.github.io/IronCalc-Ruby/0.8.3/
45
+ documentation_uri: https://jvdp.github.io/IronCalc-Ruby/0.9.1/
46
46
  rubygems_mfa_required: 'true'
47
47
  post_install_message:
48
48
  rdoc_options: []