rubyXL 3.4.37 → 3.4.39
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/Gemfile +5 -2
- data/README.rdoc +14 -3
- data/Rakefile +18 -13
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +2 -2
- data/lib/rubyXL/convenience_methods/cell.rb +15 -8
- data/lib/rubyXL/convenience_methods/workbook.rb +2 -2
- data/lib/rubyXL/convenience_methods/worksheet.rb +41 -30
- data/lib/rubyXL/objects/border.rb +13 -5
- data/lib/rubyXL/objects/cell_style.rb +2 -0
- data/lib/rubyXL/objects/color.rb +3 -1
- data/lib/rubyXL/objects/container_nodes.rb +2 -0
- data/lib/rubyXL/objects/fill.rb +2 -0
- data/lib/rubyXL/objects/font.rb +2 -0
- data/lib/rubyXL/objects/ooxml_object.rb +16 -16
- data/lib/rubyXL/objects/reference.rb +38 -33
- data/lib/rubyXL/objects/root.rb +8 -1
- data/lib/rubyXL/objects/sheet_data.rb +7 -2
- data/lib/rubyXL/objects/simple_types.rb +101 -98
- data/lib/rubyXL/objects/workbook.rb +5 -5
- data/lib/rubyXL/objects/worksheet.rb +23 -4
- data/lib/rubyXL/worksheet.rb +5 -17
- data/rdoc/README_rdoc.html +28 -9
- data/rdoc/RubyXL/AExtension.html +5 -5
- data/rdoc/RubyXL/AExtensionStorageArea.html +5 -5
- data/rdoc/RubyXL/ActiveX.html +5 -5
- data/rdoc/RubyXL/ActiveXBinary.html +5 -5
- data/rdoc/RubyXL/AdjustHandleList.html +5 -5
- data/rdoc/RubyXL/Alignment.html +5 -5
- data/rdoc/RubyXL/AlternateContent.html +5 -5
- data/rdoc/RubyXL/AlternateUrls.html +5 -5
- data/rdoc/RubyXL/Authors.html +5 -5
- data/rdoc/RubyXL/AutoFilter.html +5 -5
- data/rdoc/RubyXL/AutoFilterColumn.html +5 -5
- data/rdoc/RubyXL/BinaryImageFile.html +5 -5
- data/rdoc/RubyXL/BodyProperties.html +5 -5
- data/rdoc/RubyXL/BooleanNode.html +5 -5
- data/rdoc/RubyXL/BooleanValue.html +5 -5
- data/rdoc/RubyXL/Border.html +19 -13
- data/rdoc/RubyXL/BorderEdge.html +10 -10
- data/rdoc/RubyXL/Borders.html +6 -6
- data/rdoc/RubyXL/Break.html +5 -5
- data/rdoc/RubyXL/BreakList.html +5 -5
- data/rdoc/RubyXL/CT_AdjPoint2D.html +5 -5
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +5 -5
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +5 -5
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +5 -5
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +5 -5
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +5 -5
- data/rdoc/RubyXL/CT_Backdrop.html +5 -5
- data/rdoc/RubyXL/CT_Bevel.html +5 -5
- data/rdoc/RubyXL/CT_BiLevelEffect.html +5 -5
- data/rdoc/RubyXL/CT_BlendEffect.html +5 -5
- data/rdoc/RubyXL/CT_Blip.html +5 -5
- data/rdoc/RubyXL/CT_BlipFillProperties.html +5 -5
- data/rdoc/RubyXL/CT_BlurEffect.html +5 -5
- data/rdoc/RubyXL/CT_Camera.html +5 -5
- data/rdoc/RubyXL/CT_Color.html +5 -5
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +5 -5
- data/rdoc/RubyXL/CT_ColorMapping.html +5 -5
- data/rdoc/RubyXL/CT_ColorScheme.html +5 -5
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +5 -5
- data/rdoc/RubyXL/CT_ConnectionSite.html +5 -5
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +5 -5
- data/rdoc/RubyXL/CT_DashStop.html +5 -5
- data/rdoc/RubyXL/CT_DashStopList.html +5 -5
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +5 -5
- data/rdoc/RubyXL/CT_DuotoneEffect.html +5 -5
- data/rdoc/RubyXL/CT_EffectContainer.html +5 -5
- data/rdoc/RubyXL/CT_EffectList.html +5 -5
- data/rdoc/RubyXL/CT_EffectReference.html +5 -5
- data/rdoc/RubyXL/CT_EffectStyleItem.html +5 -5
- data/rdoc/RubyXL/CT_EffectStyleList.html +5 -5
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +5 -5
- data/rdoc/RubyXL/CT_FillEffect.html +5 -5
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +5 -5
- data/rdoc/RubyXL/CT_FillStyleList.html +5 -5
- data/rdoc/RubyXL/CT_FlatText.html +5 -5
- data/rdoc/RubyXL/CT_FontCollection.html +5 -5
- data/rdoc/RubyXL/CT_FontReference.html +5 -5
- data/rdoc/RubyXL/CT_GeomGuideList.html +5 -5
- data/rdoc/RubyXL/CT_GlowEffect.html +5 -5
- data/rdoc/RubyXL/CT_GradientFillProperties.html +5 -5
- data/rdoc/RubyXL/CT_GradientStop.html +5 -5
- data/rdoc/RubyXL/CT_GradientStopList.html +5 -5
- data/rdoc/RubyXL/CT_HSLEffect.html +5 -5
- data/rdoc/RubyXL/CT_HslColor.html +5 -5
- data/rdoc/RubyXL/CT_Hyperlink.html +5 -5
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +5 -5
- data/rdoc/RubyXL/CT_LightRig.html +5 -5
- data/rdoc/RubyXL/CT_LineEndProperties.html +5 -5
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +5 -5
- data/rdoc/RubyXL/CT_LineProperties.html +5 -5
- data/rdoc/RubyXL/CT_LineStyleList.html +5 -5
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +5 -5
- data/rdoc/RubyXL/CT_LuminanceEffect.html +5 -5
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +5 -5
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +5 -5
- data/rdoc/RubyXL/CT_Path2D.html +5 -5
- data/rdoc/RubyXL/CT_Path2DArcTo.html +5 -5
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +5 -5
- data/rdoc/RubyXL/CT_Path2DList.html +5 -5
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +5 -5
- data/rdoc/RubyXL/CT_Path2DTo.html +5 -5
- data/rdoc/RubyXL/CT_PathShadeProperties.html +5 -5
- data/rdoc/RubyXL/CT_PatternFillProperties.html +5 -5
- data/rdoc/RubyXL/CT_Point3D.html +5 -5
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +5 -5
- data/rdoc/RubyXL/CT_PresetColor.html +5 -5
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +5 -5
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +5 -5
- data/rdoc/RubyXL/CT_PresetTextShape.html +5 -5
- data/rdoc/RubyXL/CT_ReflectionEffect.html +5 -5
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +5 -5
- data/rdoc/RubyXL/CT_RelativeRect.html +5 -5
- data/rdoc/RubyXL/CT_SRgbColor.html +5 -5
- data/rdoc/RubyXL/CT_ScRgbColor.html +5 -5
- data/rdoc/RubyXL/CT_Scene3D.html +5 -5
- data/rdoc/RubyXL/CT_SchemeColor.html +5 -5
- data/rdoc/RubyXL/CT_Shape3D.html +5 -5
- data/rdoc/RubyXL/CT_ShapeStyle.html +5 -5
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +5 -5
- data/rdoc/RubyXL/CT_SphereCoords.html +5 -5
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +5 -5
- data/rdoc/RubyXL/CT_StyleMatrix.html +5 -5
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +5 -5
- data/rdoc/RubyXL/CT_SupplementalFont.html +5 -5
- data/rdoc/RubyXL/CT_SystemColor.html +5 -5
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +5 -5
- data/rdoc/RubyXL/CT_TextBlipBullet.html +5 -5
- data/rdoc/RubyXL/CT_TextCharBullet.html +5 -5
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +5 -5
- data/rdoc/RubyXL/CT_TextFont.html +5 -5
- data/rdoc/RubyXL/CT_TextListStyle.html +5 -5
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +5 -5
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +5 -5
- data/rdoc/RubyXL/CT_TextSpacing.html +5 -5
- data/rdoc/RubyXL/CT_TextTabStop.html +5 -5
- data/rdoc/RubyXL/CT_TextTabStopList.html +5 -5
- data/rdoc/RubyXL/CT_TileInfoProperties.html +5 -5
- data/rdoc/RubyXL/CT_TintEffect.html +5 -5
- data/rdoc/RubyXL/CT_Transform2D.html +5 -5
- data/rdoc/RubyXL/CT_TransformEffect.html +5 -5
- data/rdoc/RubyXL/CT_Vector3D.html +5 -5
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +5 -5
- data/rdoc/RubyXL/CalculationChain.html +5 -5
- data/rdoc/RubyXL/CalculationChainCell.html +5 -5
- data/rdoc/RubyXL/CalculationProperties.html +5 -5
- data/rdoc/RubyXL/Cell.html +6 -6
- data/rdoc/RubyXL/CellConvenienceMethods.html +72 -51
- data/rdoc/RubyXL/CellExt.html +5 -5
- data/rdoc/RubyXL/CellSmartTag.html +5 -5
- data/rdoc/RubyXL/CellSmartTagProperty.html +5 -5
- data/rdoc/RubyXL/CellSmartTags.html +5 -5
- data/rdoc/RubyXL/CellStyle.html +5 -5
- data/rdoc/RubyXL/CellStyleXFs.html +5 -5
- data/rdoc/RubyXL/CellStyles.html +5 -5
- data/rdoc/RubyXL/CellValue.html +5 -5
- data/rdoc/RubyXL/CellWatch.html +5 -5
- data/rdoc/RubyXL/CellWatches.html +5 -5
- data/rdoc/RubyXL/CellXFs.html +5 -5
- data/rdoc/RubyXL/ChartColorsFile.html +5 -5
- data/rdoc/RubyXL/ChartFile.html +5 -5
- data/rdoc/RubyXL/ChartStyleFile.html +5 -5
- data/rdoc/RubyXL/ChartUserShapesFile.html +5 -5
- data/rdoc/RubyXL/Chartsheet.html +5 -5
- data/rdoc/RubyXL/ChartsheetPageSetup.html +5 -5
- data/rdoc/RubyXL/ChartsheetProperties.html +5 -5
- data/rdoc/RubyXL/ChartsheetProtection.html +5 -5
- data/rdoc/RubyXL/ChartsheetView.html +5 -5
- data/rdoc/RubyXL/ChartsheetViews.html +5 -5
- data/rdoc/RubyXL/Color.html +7 -7
- data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +5 -5
- data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +5 -5
- data/rdoc/RubyXL/ColorConvenienceClasses.html +5 -5
- data/rdoc/RubyXL/ColorConvenienceMethods.html +5 -5
- data/rdoc/RubyXL/ColorFilter.html +5 -5
- data/rdoc/RubyXL/ColorScale.html +5 -5
- data/rdoc/RubyXL/ColorSet.html +5 -5
- data/rdoc/RubyXL/Colors.html +5 -5
- data/rdoc/RubyXL/ColumnRange.html +5 -5
- data/rdoc/RubyXL/ColumnRanges.html +5 -5
- data/rdoc/RubyXL/Comment.html +5 -5
- data/rdoc/RubyXL/CommentList.html +5 -5
- data/rdoc/RubyXL/CommentsFile.html +5 -5
- data/rdoc/RubyXL/ConditionalFormatValue.html +5 -5
- data/rdoc/RubyXL/ConditionalFormatting.html +5 -5
- data/rdoc/RubyXL/ConditionalFormattingRule.html +5 -5
- data/rdoc/RubyXL/Connection.html +5 -5
- data/rdoc/RubyXL/ConnectionTable.html +5 -5
- data/rdoc/RubyXL/ConnectionTables.html +5 -5
- data/rdoc/RubyXL/ConnectionTextField.html +5 -5
- data/rdoc/RubyXL/ConnectionTextFields.html +5 -5
- data/rdoc/RubyXL/Connections.html +5 -5
- data/rdoc/RubyXL/ContentTypeDefault.html +5 -5
- data/rdoc/RubyXL/ContentTypeOverride.html +5 -5
- data/rdoc/RubyXL/ContentTypes.html +5 -5
- data/rdoc/RubyXL/ControlPropertiesFile.html +5 -5
- data/rdoc/RubyXL/CorePropertiesFile.html +5 -5
- data/rdoc/RubyXL/CustomColor.html +5 -5
- data/rdoc/RubyXL/CustomColorList.html +5 -5
- data/rdoc/RubyXL/CustomFilter.html +5 -5
- data/rdoc/RubyXL/CustomFilters.html +5 -5
- data/rdoc/RubyXL/CustomGeometry.html +5 -5
- data/rdoc/RubyXL/CustomProperties.html +5 -5
- data/rdoc/RubyXL/CustomPropertiesFile.html +5 -5
- data/rdoc/RubyXL/CustomProperty.html +5 -5
- data/rdoc/RubyXL/CustomPropertyFile.html +5 -5
- data/rdoc/RubyXL/CustomSheetView.html +5 -5
- data/rdoc/RubyXL/CustomSheetViews.html +5 -5
- data/rdoc/RubyXL/CustomWorkbookView.html +5 -5
- data/rdoc/RubyXL/CustomWorkbookViews.html +5 -5
- data/rdoc/RubyXL/CustomXMLFile.html +5 -5
- data/rdoc/RubyXL/DXF.html +5 -5
- data/rdoc/RubyXL/DXFs.html +5 -5
- data/rdoc/RubyXL/DataBar.html +5 -5
- data/rdoc/RubyXL/DataConsolidate.html +5 -5
- data/rdoc/RubyXL/DataConsolidationReference.html +5 -5
- data/rdoc/RubyXL/DataConsolidationReferences.html +5 -5
- data/rdoc/RubyXL/DataType.html +5 -5
- data/rdoc/RubyXL/DataValidation.html +5 -5
- data/rdoc/RubyXL/DataValidations.html +5 -5
- data/rdoc/RubyXL/DateGroupItem.html +5 -5
- data/rdoc/RubyXL/DefinedName.html +5 -5
- data/rdoc/RubyXL/DefinedNameExt.html +5 -5
- data/rdoc/RubyXL/DefinedNames.html +5 -5
- data/rdoc/RubyXL/DefinedNamesExt.html +5 -5
- data/rdoc/RubyXL/DocumentPropertiesFile.html +5 -5
- data/rdoc/RubyXL/DrawingFile.html +5 -5
- data/rdoc/RubyXL/DynamicFilter.html +5 -5
- data/rdoc/RubyXL/EmbeddedControl.html +5 -5
- data/rdoc/RubyXL/EmbeddedControls.html +5 -5
- data/rdoc/RubyXL/Extension.html +5 -5
- data/rdoc/RubyXL/ExtensionStorageArea.html +5 -5
- data/rdoc/RubyXL/Extents.html +5 -5
- data/rdoc/RubyXL/ExternalBook.html +5 -5
- data/rdoc/RubyXL/ExternalLinksFile.html +5 -5
- data/rdoc/RubyXL/ExternalReference.html +5 -5
- data/rdoc/RubyXL/ExternalReferences.html +5 -5
- data/rdoc/RubyXL/ExtraColorSchemeList.html +5 -5
- data/rdoc/RubyXL/FieldItem.html +5 -5
- data/rdoc/RubyXL/FileRecoveryProperties.html +5 -5
- data/rdoc/RubyXL/FileSharing.html +5 -5
- data/rdoc/RubyXL/FileVersion.html +5 -5
- data/rdoc/RubyXL/Fill.html +6 -6
- data/rdoc/RubyXL/Fills.html +6 -6
- data/rdoc/RubyXL/FilterContainer.html +5 -5
- data/rdoc/RubyXL/FloatNode.html +5 -5
- data/rdoc/RubyXL/FloatValue.html +5 -5
- data/rdoc/RubyXL/Font.html +6 -6
- data/rdoc/RubyXL/FontConvenienceMethods.html +5 -5
- data/rdoc/RubyXL/FontScheme.html +5 -5
- data/rdoc/RubyXL/Fonts.html +6 -6
- data/rdoc/RubyXL/Formula.html +5 -5
- data/rdoc/RubyXL/FunctionGroup.html +5 -5
- data/rdoc/RubyXL/FunctionGroups.html +5 -5
- data/rdoc/RubyXL/GenericStorageObject.html +5 -5
- data/rdoc/RubyXL/GradientFill.html +5 -5
- data/rdoc/RubyXL/HeaderFooterSettings.html +5 -5
- data/rdoc/RubyXL/Hyperlink.html +5 -5
- data/rdoc/RubyXL/HyperlinkRelFile.html +5 -5
- data/rdoc/RubyXL/Hyperlinks.html +5 -5
- data/rdoc/RubyXL/IconFilter.html +5 -5
- data/rdoc/RubyXL/IconSet.html +5 -5
- data/rdoc/RubyXL/IgnoredError.html +5 -5
- data/rdoc/RubyXL/IgnoredErrors.html +5 -5
- data/rdoc/RubyXL/IndexedColors.html +5 -5
- data/rdoc/RubyXL/InputCells.html +5 -5
- data/rdoc/RubyXL/IntegerNode.html +5 -5
- data/rdoc/RubyXL/IntegerValue.html +5 -5
- data/rdoc/RubyXL/LegacyCell.html +5 -5
- data/rdoc/RubyXL/LegacyWorksheet.html +6 -140
- data/rdoc/RubyXL/MRUColors.html +5 -5
- data/rdoc/RubyXL/MacrosFile.html +5 -5
- data/rdoc/RubyXL/MergedCell.html +5 -5
- data/rdoc/RubyXL/MergedCells.html +5 -5
- data/rdoc/RubyXL/NumFmt.html +5 -5
- data/rdoc/RubyXL/NumberFormat.html +5 -5
- data/rdoc/RubyXL/NumberFormats.html +5 -5
- data/rdoc/RubyXL/OLEObject.html +5 -5
- data/rdoc/RubyXL/OLEObjectFile.html +5 -5
- data/rdoc/RubyXL/OLEObjects.html +5 -5
- data/rdoc/RubyXL/OLESize.html +5 -5
- data/rdoc/RubyXL/OOXMLContainerObject.html +13 -20
- data/rdoc/RubyXL/OOXMLIgnored.html +5 -5
- data/rdoc/RubyXL/OOXMLObject.html +5 -5
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +17 -13
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +16 -17
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +5 -5
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +6 -6
- data/rdoc/RubyXL/OdbcOleDbProperties.html +5 -5
- data/rdoc/RubyXL/Offset.html +5 -5
- data/rdoc/RubyXL/OlapProperties.html +5 -5
- data/rdoc/RubyXL/OleItem.html +5 -5
- data/rdoc/RubyXL/OleItems.html +5 -5
- data/rdoc/RubyXL/OleLink.html +5 -5
- data/rdoc/RubyXL/OutlineProperties.html +5 -5
- data/rdoc/RubyXL/PageMargins.html +5 -5
- data/rdoc/RubyXL/PageSetup.html +5 -5
- data/rdoc/RubyXL/PageSetupProperties.html +5 -5
- data/rdoc/RubyXL/Pane.html +5 -5
- data/rdoc/RubyXL/Parser.html +5 -5
- data/rdoc/RubyXL/PatternFill.html +5 -5
- data/rdoc/RubyXL/PersonMetadata.html +5 -5
- data/rdoc/RubyXL/PhoneticProperties.html +5 -5
- data/rdoc/RubyXL/PhoneticRun.html +5 -5
- data/rdoc/RubyXL/PivotArea.html +5 -5
- data/rdoc/RubyXL/PivotCache.html +5 -5
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +5 -5
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +5 -5
- data/rdoc/RubyXL/PivotCaches.html +5 -5
- data/rdoc/RubyXL/PivotReference.html +5 -5
- data/rdoc/RubyXL/PivotReferences.html +5 -5
- data/rdoc/RubyXL/{PivotTableSelection.html → PivotSelection.html} +12 -12
- data/rdoc/RubyXL/PivotTableFile.html +5 -5
- data/rdoc/RubyXL/PresetGeometry.html +5 -5
- data/rdoc/RubyXL/PrintOptions.html +5 -5
- data/rdoc/RubyXL/PrinterSettingsFile.html +5 -5
- data/rdoc/RubyXL/ProtectedRange.html +5 -5
- data/rdoc/RubyXL/ProtectedRanges.html +5 -5
- data/rdoc/RubyXL/Protection.html +5 -5
- data/rdoc/RubyXL/QueryParameter.html +5 -5
- data/rdoc/RubyXL/QueryParameters.html +5 -5
- data/rdoc/RubyXL/QueryTable.html +5 -5
- data/rdoc/RubyXL/QueryTableDeletedField.html +5 -5
- data/rdoc/RubyXL/QueryTableDeletedFields.html +5 -5
- data/rdoc/RubyXL/QueryTableField.html +5 -5
- data/rdoc/RubyXL/QueryTableFields.html +5 -5
- data/rdoc/RubyXL/QueryTableRefresh.html +5 -5
- data/rdoc/RubyXL/RID.html +5 -5
- data/rdoc/RubyXL/RawOOXML.html +5 -5
- data/rdoc/RubyXL/Reference.html +110 -154
- data/rdoc/RubyXL/Relationship.html +5 -5
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +5 -5
- data/rdoc/RubyXL/RelationshipSupport.html +5 -5
- data/rdoc/RubyXL/RevisionPointer.html +5 -5
- data/rdoc/RubyXL/RichText.html +5 -5
- data/rdoc/RubyXL/RichTextRun.html +5 -5
- data/rdoc/RubyXL/Row.html +14 -14
- data/rdoc/RubyXL/RowExt.html +5 -5
- data/rdoc/RubyXL/RunProperties.html +5 -5
- data/rdoc/RubyXL/Scenario.html +5 -5
- data/rdoc/RubyXL/Scenarios.html +5 -5
- data/rdoc/RubyXL/Selection.html +6 -6
- data/rdoc/RubyXL/ShapeGuide.html +5 -5
- data/rdoc/RubyXL/ShapeTextRectangle.html +5 -5
- data/rdoc/RubyXL/SharedStringsTable.html +5 -5
- data/rdoc/RubyXL/Sheet.html +5 -5
- data/rdoc/RubyXL/SheetCalculationProperties.html +5 -5
- data/rdoc/RubyXL/SheetData.html +7 -7
- data/rdoc/RubyXL/SheetDataExt.html +5 -5
- data/rdoc/RubyXL/SheetDataSet.html +5 -5
- data/rdoc/RubyXL/SheetMetadata.html +5 -5
- data/rdoc/RubyXL/SheetName.html +5 -5
- data/rdoc/RubyXL/SheetNames.html +5 -5
- data/rdoc/RubyXL/Sheets.html +5 -5
- data/rdoc/RubyXL/SlicerCacheFile.html +5 -5
- data/rdoc/RubyXL/SlicerFile.html +5 -5
- data/rdoc/RubyXL/SmartTagProperties.html +5 -5
- data/rdoc/RubyXL/SmartTagType.html +5 -5
- data/rdoc/RubyXL/SmartTagTypes.html +5 -5
- data/rdoc/RubyXL/SmartTags.html +5 -5
- data/rdoc/RubyXL/SortCondition.html +5 -5
- data/rdoc/RubyXL/SortState.html +5 -5
- data/rdoc/RubyXL/Sqref.html +7 -7
- data/rdoc/RubyXL/Stop.html +5 -5
- data/rdoc/RubyXL/StringNode.html +5 -5
- data/rdoc/RubyXL/StringNodeW3C.html +7 -7
- data/rdoc/RubyXL/StringValue.html +5 -5
- data/rdoc/RubyXL/Stylesheet.html +5 -5
- data/rdoc/RubyXL/TableFile.html +5 -5
- data/rdoc/RubyXL/TableParts.html +5 -5
- data/rdoc/RubyXL/TableStyle.html +5 -5
- data/rdoc/RubyXL/TableStyles.html +5 -5
- data/rdoc/RubyXL/Text.html +5 -5
- data/rdoc/RubyXL/TextImportSettings.html +5 -5
- data/rdoc/RubyXL/Theme.html +5 -5
- data/rdoc/RubyXL/ThemeElements.html +5 -5
- data/rdoc/RubyXL/ThumbnailFile.html +5 -5
- data/rdoc/RubyXL/Top10.html +5 -5
- data/rdoc/RubyXL/VMLDrawingFile.html +5 -5
- data/rdoc/RubyXL/Variant.html +5 -5
- data/rdoc/RubyXL/Vector.html +6 -6
- data/rdoc/RubyXL/VectorValue.html +5 -5
- data/rdoc/RubyXL/VisualProperties.html +5 -5
- data/rdoc/RubyXL/WebPublishObject.html +5 -5
- data/rdoc/RubyXL/WebPublishObjects.html +5 -5
- data/rdoc/RubyXL/WebPublishingItem.html +5 -5
- data/rdoc/RubyXL/WebPublishingItems.html +5 -5
- data/rdoc/RubyXL/WebPublishingProperties.html +5 -5
- data/rdoc/RubyXL/WebQueryProperties.html +5 -5
- data/rdoc/RubyXL/Workbook.html +8 -8
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +8 -8
- data/rdoc/RubyXL/WorkbookProperties.html +5 -5
- data/rdoc/RubyXL/WorkbookProtection.html +5 -5
- data/rdoc/RubyXL/WorkbookRoot.html +15 -8
- data/rdoc/RubyXL/WorkbookView.html +5 -5
- data/rdoc/RubyXL/WorkbookViews.html +5 -5
- data/rdoc/RubyXL/Worksheet.html +147 -13
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +111 -100
- data/rdoc/RubyXL/WorksheetDimensions.html +6 -6
- data/rdoc/RubyXL/WorksheetFormatProperties.html +5 -5
- data/rdoc/RubyXL/WorksheetProperties.html +5 -5
- data/rdoc/RubyXL/WorksheetProtection.html +5 -5
- data/rdoc/RubyXL/WorksheetView.html +5 -5
- data/rdoc/RubyXL/WorksheetViews.html +5 -5
- data/rdoc/RubyXL/XF.html +5 -5
- data/rdoc/RubyXL.html +13 -5
- data/rdoc/created.rid +21 -21
- data/rdoc/index.html +10 -10
- data/rdoc/js/search_data.js +1 -1
- data/rubyXL.gemspec +7 -4
- data/spec/lib/cell_spec.rb +45 -5
- data/spec/lib/color_spec.rb +2 -2
- data/spec/lib/reference_spec.rb +25 -0
- data/spec/lib/workbook_root_spec.rb +43 -0
- data/spec/lib/worksheet_spec.rb +65 -57
- metadata +32 -3
data/rubyXL.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: rubyXL 3.4.
|
|
5
|
+
# stub: rubyXL 3.4.39 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "rubyXL".freeze
|
|
9
|
-
s.version = "3.4.
|
|
9
|
+
s.version = "3.4.39".freeze
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib".freeze]
|
|
13
13
|
s.authors = ["Vivek Bhagwat".freeze, "Wesha".freeze]
|
|
14
|
-
s.date = "2026-
|
|
14
|
+
s.date = "2026-11-19"
|
|
15
15
|
s.description = "rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents".freeze
|
|
16
16
|
s.email = "bhagwat.vivek@gmail.com".freeze
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -363,8 +363,8 @@ Gem::Specification.new do |s|
|
|
|
363
363
|
"rdoc/RubyXL/PivotCaches.html",
|
|
364
364
|
"rdoc/RubyXL/PivotReference.html",
|
|
365
365
|
"rdoc/RubyXL/PivotReferences.html",
|
|
366
|
+
"rdoc/RubyXL/PivotSelection.html",
|
|
366
367
|
"rdoc/RubyXL/PivotTableFile.html",
|
|
367
|
-
"rdoc/RubyXL/PivotTableSelection.html",
|
|
368
368
|
"rdoc/RubyXL/PresetGeometry.html",
|
|
369
369
|
"rdoc/RubyXL/PrintOptions.html",
|
|
370
370
|
"rdoc/RubyXL/PrinterSettingsFile.html",
|
|
@@ -476,6 +476,7 @@ Gem::Specification.new do |s|
|
|
|
476
476
|
"spec/lib/rgb_color_spec.rb",
|
|
477
477
|
"spec/lib/stylesheet_spec.rb",
|
|
478
478
|
"spec/lib/text_spec.rb",
|
|
479
|
+
"spec/lib/workbook_root_spec.rb",
|
|
479
480
|
"spec/lib/workbook_spec.rb",
|
|
480
481
|
"spec/lib/worksheet_spec.rb",
|
|
481
482
|
"spec/spec_helper.rb",
|
|
@@ -496,8 +497,10 @@ Gem::Specification.new do |s|
|
|
|
496
497
|
s.add_development_dependency(%q<bundler>.freeze, [">= 0".freeze])
|
|
497
498
|
s.add_development_dependency(%q<rake>.freeze, [">= 0".freeze])
|
|
498
499
|
s.add_development_dependency(%q<juwelier>.freeze, [">= 0".freeze])
|
|
500
|
+
s.add_development_dependency(%q<git>.freeze, ["~> 4.1".freeze])
|
|
499
501
|
s.add_development_dependency(%q<rspec>.freeze, [">= 0".freeze])
|
|
500
502
|
s.add_development_dependency(%q<simplecov>.freeze, [">= 0".freeze])
|
|
503
|
+
s.add_development_dependency(%q<stackprof>.freeze, [">= 0".freeze])
|
|
501
504
|
s.add_development_dependency(%q<ruby-prof>.freeze, [">= 0".freeze])
|
|
502
505
|
s.add_development_dependency(%q<rspec_junit_formatter>.freeze, [">= 0".freeze])
|
|
503
506
|
s.add_development_dependency(%q<rubocop>.freeze, [">= 0".freeze])
|
data/spec/lib/cell_spec.rb
CHANGED
|
@@ -98,7 +98,7 @@ describe RubyXL::Cell do
|
|
|
98
98
|
it 'should cause an error if hex color code not passed' do
|
|
99
99
|
expect {
|
|
100
100
|
@cell.change_fill('G')
|
|
101
|
-
}.to raise_error(
|
|
101
|
+
}.to raise_error(ArgumentError)
|
|
102
102
|
end
|
|
103
103
|
|
|
104
104
|
it 'should make cell fill color equal to hex color code passed' do
|
|
@@ -109,7 +109,7 @@ describe RubyXL::Cell do
|
|
|
109
109
|
it 'should cause an error if hex color code includes # character' do
|
|
110
110
|
expect {
|
|
111
111
|
@cell.change_fill('#0f0f0f')
|
|
112
|
-
}.to raise_error(
|
|
112
|
+
}.to raise_error(ArgumentError)
|
|
113
113
|
end
|
|
114
114
|
end
|
|
115
115
|
|
|
@@ -129,7 +129,7 @@ describe RubyXL::Cell do
|
|
|
129
129
|
it 'should cause an error if a string passed' do
|
|
130
130
|
expect {
|
|
131
131
|
@cell.change_font_size('20')
|
|
132
|
-
}.to raise_error(
|
|
132
|
+
}.to raise_error(ArgumentError)
|
|
133
133
|
end
|
|
134
134
|
end
|
|
135
135
|
|
|
@@ -137,7 +137,7 @@ describe RubyXL::Cell do
|
|
|
137
137
|
it 'should cause an error if hex color code not passed' do
|
|
138
138
|
expect {
|
|
139
139
|
@cell.change_font_color('G')
|
|
140
|
-
}.to raise_error(
|
|
140
|
+
}.to raise_error(ArgumentError)
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
it 'should make cell font color equal to hex color code passed' do
|
|
@@ -148,7 +148,7 @@ describe RubyXL::Cell do
|
|
|
148
148
|
it 'should cause an error if hex color code includes # character' do
|
|
149
149
|
expect {
|
|
150
150
|
@cell.change_font_color('#0f0f0f')
|
|
151
|
-
}.to raise_error(
|
|
151
|
+
}.to raise_error(ArgumentError)
|
|
152
152
|
end
|
|
153
153
|
end
|
|
154
154
|
|
|
@@ -651,4 +651,44 @@ describe RubyXL::Cell do
|
|
|
651
651
|
end
|
|
652
652
|
end
|
|
653
653
|
|
|
654
|
+
describe '.remove_formula' do
|
|
655
|
+
it 'should removes formula and update calculation chain' do
|
|
656
|
+
cell = @worksheet.add_cell(0, 0, 10, 'A2+1')
|
|
657
|
+
@workbook.calculation_chain = RubyXL::CalculationChain.new({
|
|
658
|
+
cells: [
|
|
659
|
+
RubyXL::CalculationChainCell.new(ref: RubyXL::Reference.new(0, 0)),
|
|
660
|
+
RubyXL::CalculationChainCell.new(ref: RubyXL::Reference.new(1, 0))
|
|
661
|
+
]
|
|
662
|
+
})
|
|
663
|
+
|
|
664
|
+
expect(cell.formula).to_not be_nil
|
|
665
|
+
|
|
666
|
+
cell.remove_formula
|
|
667
|
+
|
|
668
|
+
expect(cell.formula).to be_nil
|
|
669
|
+
expect(@workbook.calculation_chain.cells.size).to eq(1)
|
|
670
|
+
expect(@workbook.calculation_chain.cells.first.ref.first_row).to eq(1)
|
|
671
|
+
end
|
|
672
|
+
end
|
|
673
|
+
|
|
674
|
+
describe '#write_xml' do
|
|
675
|
+
it 'properly serializes the Cell with value' do
|
|
676
|
+
cell = @worksheet.add_cell(101, 101, 123)
|
|
677
|
+
xml_str = cell.write_xml.split("\n").last
|
|
678
|
+
expect(xml_str).to eq('<c r="CX102" s="0"><v>123</v></c>')
|
|
679
|
+
end
|
|
680
|
+
|
|
681
|
+
it 'properly serializes the Cell with a Formula' do
|
|
682
|
+
cell = @worksheet.add_cell(102, 102, nil, 'SUM(A1:A10)')
|
|
683
|
+
xml_str = cell.write_xml.split("\n").last
|
|
684
|
+
expect(xml_str).to eq('<c r="CY103" s="0"><f>SUM(A1:A10)</f></c>')
|
|
685
|
+
end
|
|
686
|
+
|
|
687
|
+
it 'properly serializes the Cell with inline string' do
|
|
688
|
+
cell = @worksheet.add_cell(103, 103)
|
|
689
|
+
cell.is = RubyXL::RichText.new(t: RubyXL::Text.new(value: 'Inline text'))
|
|
690
|
+
xml_str = cell.write_xml.split("\n").last
|
|
691
|
+
expect(xml_str).to eq('<c r="CZ104" s="0" t="str"><is><t>Inline text</t></is></c>')
|
|
692
|
+
end
|
|
693
|
+
end
|
|
654
694
|
end
|
data/spec/lib/color_spec.rb
CHANGED
|
@@ -14,8 +14,8 @@ describe RubyXL::Color do
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
it 'should cause an error if an invalid hex color code or one with a # is passed' do
|
|
17
|
-
expect { RubyXL::Color.validate_color('#G') }.to raise_error(
|
|
18
|
-
expect { RubyXL::Color.validate_color('1234567') }.to raise_error(
|
|
17
|
+
expect { RubyXL::Color.validate_color('#G') }.to raise_error(ArgumentError)
|
|
18
|
+
expect { RubyXL::Color.validate_color('1234567') }.to raise_error(ArgumentError)
|
|
19
19
|
end
|
|
20
20
|
end
|
|
21
21
|
end
|
data/spec/lib/reference_spec.rb
CHANGED
|
@@ -94,4 +94,29 @@ describe RubyXL::Reference do
|
|
|
94
94
|
expect(RubyXL::Reference.new(row_from: 44, row_to: 33, col_from: 22, col_to: 11).to_s).to eq('W45:L34')
|
|
95
95
|
end
|
|
96
96
|
end
|
|
97
|
+
|
|
98
|
+
describe '.==' do
|
|
99
|
+
it 'compares references correctly' do
|
|
100
|
+
ref1_2__1 = RubyXL::Reference.new(1, 2)
|
|
101
|
+
ref1_2__2 = RubyXL::Reference.new(1, 2)
|
|
102
|
+
ref1_3 = RubyXL::Reference.new(1, 3)
|
|
103
|
+
|
|
104
|
+
expect(ref1_2__1).to eq(ref1_2__2)
|
|
105
|
+
expect(ref1_2__1).not_to eq(ref1_3)
|
|
106
|
+
expect(ref1_3).not_to eq(nil)
|
|
107
|
+
end
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
describe '#cover?' do
|
|
111
|
+
it 'checks if other reference is covered' do
|
|
112
|
+
ref_0_0_10_10 = RubyXL::Reference.new(0, 10, 0, 10)
|
|
113
|
+
ref_2_2_5_5 = RubyXL::Reference.new(2, 5, 2, 5)
|
|
114
|
+
ref_5_5_15_15 = RubyXL::Reference.new(5, 15, 5, 15)
|
|
115
|
+
|
|
116
|
+
expect(ref_0_0_10_10.cover?(ref_0_0_10_10)).to be true
|
|
117
|
+
expect(ref_0_0_10_10.cover?(ref_2_2_5_5)).to be true
|
|
118
|
+
expect(ref_0_0_10_10.cover?(ref_5_5_15_15)).to be false
|
|
119
|
+
expect(ref_0_0_10_10.cover?(nil)).to be false
|
|
120
|
+
end
|
|
121
|
+
end
|
|
97
122
|
end
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require 'spec_helper'
|
|
4
|
+
|
|
5
|
+
describe RubyXL::WorkbookRoot do
|
|
6
|
+
def workbook_with_shared_drawing
|
|
7
|
+
workbook = RubyXL::Workbook.new
|
|
8
|
+
workbook.add_worksheet('Sheet2')
|
|
9
|
+
|
|
10
|
+
workbook.worksheets.each { |sheet|
|
|
11
|
+
image = RubyXL::BinaryImageFile.new(Pathname.new('/xl/media/image1.png'), 'PNG')
|
|
12
|
+
drawing = RubyXL::DrawingFile.new(Pathname.new('/xl/drawings/drawing1.xml'), '<xdr:wsDr/>')
|
|
13
|
+
drawing.generic_storage = [ image ]
|
|
14
|
+
drawing.relationship_container =
|
|
15
|
+
RubyXL::OOXMLRelationshipsFile.new(:relationships => [
|
|
16
|
+
RubyXL::Relationship.new(:id => 'rId1', :type => image.class::REL_TYPE, :target => '../media/image1.png')
|
|
17
|
+
])
|
|
18
|
+
sheet.generic_storage = [ drawing ]
|
|
19
|
+
sheet.relationship_container =
|
|
20
|
+
RubyXL::OOXMLRelationshipsFile.new(:relationships => [
|
|
21
|
+
RubyXL::Relationship.new(:id => 'rId1', :type => drawing.class::REL_TYPE, :target => '../drawings/drawing1.xml')
|
|
22
|
+
])
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
workbook
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
describe '#stream' do
|
|
29
|
+
let(:binary_data) { workbook_with_shared_drawing.stream.read }
|
|
30
|
+
|
|
31
|
+
it 'should keep the shared parts reachable from every sheet' do
|
|
32
|
+
RubyXL::Parser.parse_buffer(binary_data).worksheets.each { |sheet|
|
|
33
|
+
drawing = sheet.generic_storage.first
|
|
34
|
+
expect(drawing).to be_an_instance_of(RubyXL::DrawingFile)
|
|
35
|
+
image = drawing.generic_storage.first
|
|
36
|
+
expect(image).to be_an_instance_of(RubyXL::BinaryImageFile)
|
|
37
|
+
|
|
38
|
+
expect(image.xlsx_path.to_s).to eq('/xl/media/image1.png')
|
|
39
|
+
expect(image.data).to eq('PNG')
|
|
40
|
+
}
|
|
41
|
+
end
|
|
42
|
+
end
|
|
43
|
+
end
|