rubyXL 3.3.10 → 3.3.11
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/VERSION +1 -1
- data/lib/rubyXL/convenience_methods.rb +61 -0
- data/lib/rubyXL/objects/text.rb +1 -1
- data/lib/rubyXL/worksheet.rb +0 -59
- data/rdoc/README_rdoc.html +1 -1
- data/rdoc/RubyXL.html +1 -1
- data/rdoc/RubyXL/AExtension.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/AdjustHandleList.html +1 -1
- data/rdoc/RubyXL/Alignment.html +1 -1
- data/rdoc/RubyXL/AlternateContent.html +1 -1
- data/rdoc/RubyXL/Authors.html +1 -1
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/BinaryImageFile.html +1 -1
- data/rdoc/RubyXL/BodyProperties.html +1 -1
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +1 -1
- data/rdoc/RubyXL/BorderEdge.html +1 -1
- data/rdoc/RubyXL/Borders.html +1 -1
- data/rdoc/RubyXL/Break.html +1 -1
- data/rdoc/RubyXL/BreakList.html +1 -1
- data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
- data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
- data/rdoc/RubyXL/CT_Backdrop.html +1 -1
- data/rdoc/RubyXL/CT_Bevel.html +1 -1
- data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
- data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
- data/rdoc/RubyXL/CT_Blip.html +1 -1
- data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
- data/rdoc/RubyXL/CT_Camera.html +1 -1
- data/rdoc/RubyXL/CT_Color.html +1 -1
- data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
- data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
- data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
- data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
- data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
- data/rdoc/RubyXL/CT_DashStop.html +1 -1
- data/rdoc/RubyXL/CT_DashStopList.html +1 -1
- data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
- data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
- data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
- data/rdoc/RubyXL/CT_EffectList.html +1 -1
- data/rdoc/RubyXL/CT_EffectReference.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
- data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
- data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
- data/rdoc/RubyXL/CT_FillEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
- data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
- data/rdoc/RubyXL/CT_FlatText.html +1 -1
- data/rdoc/RubyXL/CT_FontCollection.html +1 -1
- data/rdoc/RubyXL/CT_FontReference.html +1 -1
- data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
- data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
- data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_GradientStop.html +1 -1
- data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
- data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
- data/rdoc/RubyXL/CT_HslColor.html +1 -1
- data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
- data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_LightRig.html +1 -1
- data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineProperties.html +1 -1
- data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
- data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
- data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
- data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_Path2D.html +1 -1
- data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DList.html +1 -1
- data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
- data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
- data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
- data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
- data/rdoc/RubyXL/CT_Point3D.html +1 -1
- data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CT_PresetColor.html +1 -1
- data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
- data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
- data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
- data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
- data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
- data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
- data/rdoc/RubyXL/CT_Scene3D.html +1 -1
- data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
- data/rdoc/RubyXL/CT_Shape3D.html +1 -1
- data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
- data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
- data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
- data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
- data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
- data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
- data/rdoc/RubyXL/CT_SystemColor.html +1 -1
- data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
- data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextFont.html +1 -1
- data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
- data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
- data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
- data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
- data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
- data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
- data/rdoc/RubyXL/CT_TintEffect.html +1 -1
- data/rdoc/RubyXL/CT_Transform2D.html +1 -1
- data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
- data/rdoc/RubyXL/CT_Vector3D.html +1 -1
- data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
- data/rdoc/RubyXL/CalculationChain.html +1 -1
- data/rdoc/RubyXL/CalculationChainCell.html +1 -1
- data/rdoc/RubyXL/CalculationProperties.html +1 -1
- data/rdoc/RubyXL/Cell.html +1 -1
- data/rdoc/RubyXL/CellConvenienceMethods.html +19 -19
- data/rdoc/RubyXL/CellExt.html +1 -1
- data/rdoc/RubyXL/CellSmartTag.html +1 -1
- data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
- data/rdoc/RubyXL/CellSmartTags.html +1 -1
- data/rdoc/RubyXL/CellStyle.html +1 -1
- data/rdoc/RubyXL/CellStyleXFs.html +1 -1
- data/rdoc/RubyXL/CellStyles.html +1 -1
- data/rdoc/RubyXL/CellValue.html +1 -1
- data/rdoc/RubyXL/CellWatch.html +1 -1
- data/rdoc/RubyXL/CellWatches.html +1 -1
- data/rdoc/RubyXL/CellXFs.html +1 -1
- data/rdoc/RubyXL/ChartColorsFile.html +1 -1
- data/rdoc/RubyXL/ChartFile.html +1 -1
- data/rdoc/RubyXL/ChartStyleFile.html +1 -1
- data/rdoc/RubyXL/ChartUserShapesFile.html +1 -1
- data/rdoc/RubyXL/Chartsheet.html +1 -1
- data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
- data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
- data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
- data/rdoc/RubyXL/ChartsheetView.html +1 -1
- data/rdoc/RubyXL/ChartsheetViews.html +1 -1
- data/rdoc/RubyXL/Color.html +1 -1
- data/rdoc/RubyXL/ColorFilter.html +1 -1
- data/rdoc/RubyXL/ColorScale.html +1 -1
- data/rdoc/RubyXL/ColorSet.html +1 -1
- data/rdoc/RubyXL/Colors.html +1 -1
- data/rdoc/RubyXL/ColumnRange.html +1 -1
- data/rdoc/RubyXL/ColumnRanges.html +1 -1
- data/rdoc/RubyXL/Comment.html +1 -1
- data/rdoc/RubyXL/CommentList.html +1 -1
- data/rdoc/RubyXL/CommentsFile.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
- data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
- data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
- data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
- data/rdoc/RubyXL/ContentTypes.html +1 -1
- data/rdoc/RubyXL/ControlPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CorePropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomColor.html +1 -1
- data/rdoc/RubyXL/CustomColorList.html +1 -1
- data/rdoc/RubyXL/CustomFilter.html +1 -1
- data/rdoc/RubyXL/CustomFilters.html +1 -1
- data/rdoc/RubyXL/CustomGeometry.html +1 -1
- data/rdoc/RubyXL/CustomProperties.html +1 -1
- data/rdoc/RubyXL/CustomPropertiesFile.html +1 -1
- data/rdoc/RubyXL/CustomProperty.html +1 -1
- data/rdoc/RubyXL/CustomSheetView.html +1 -1
- data/rdoc/RubyXL/CustomSheetViews.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
- data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
- data/rdoc/RubyXL/CustomXMLFile.html +1 -1
- data/rdoc/RubyXL/DXF.html +1 -1
- data/rdoc/RubyXL/DXFs.html +1 -1
- data/rdoc/RubyXL/DataBar.html +1 -1
- data/rdoc/RubyXL/DataConsolidate.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
- data/rdoc/RubyXL/DataType.html +1 -1
- data/rdoc/RubyXL/DataValidation.html +1 -1
- data/rdoc/RubyXL/DataValidations.html +1 -1
- data/rdoc/RubyXL/DateGroupItem.html +1 -1
- data/rdoc/RubyXL/DefinedName.html +1 -1
- data/rdoc/RubyXL/DefinedNameExt.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DefinedNamesExt.html +1 -1
- data/rdoc/RubyXL/DocumentPropertiesFile.html +1 -1
- data/rdoc/RubyXL/DrawingFile.html +1 -1
- data/rdoc/RubyXL/DynamicFilter.html +1 -1
- data/rdoc/RubyXL/EmbeddedControl.html +1 -1
- data/rdoc/RubyXL/EmbeddedControls.html +1 -1
- data/rdoc/RubyXL/Extension.html +1 -1
- data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Extents.html +1 -1
- data/rdoc/RubyXL/ExternalBook.html +1 -1
- data/rdoc/RubyXL/ExternalLinksFile.html +1 -1
- data/rdoc/RubyXL/ExternalReference.html +1 -1
- data/rdoc/RubyXL/ExternalReferences.html +1 -1
- data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
- data/rdoc/RubyXL/FieldItem.html +1 -1
- data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
- data/rdoc/RubyXL/FileSharing.html +1 -1
- data/rdoc/RubyXL/FileVersion.html +1 -1
- data/rdoc/RubyXL/Fill.html +1 -1
- data/rdoc/RubyXL/Fills.html +1 -1
- data/rdoc/RubyXL/FilterContainer.html +1 -1
- data/rdoc/RubyXL/FloatNode.html +1 -1
- data/rdoc/RubyXL/FloatValue.html +1 -1
- data/rdoc/RubyXL/Font.html +1 -1
- data/rdoc/RubyXL/FontScheme.html +1 -1
- data/rdoc/RubyXL/Fonts.html +1 -1
- data/rdoc/RubyXL/Formula.html +1 -1
- data/rdoc/RubyXL/FunctionGroup.html +1 -1
- data/rdoc/RubyXL/FunctionGroups.html +1 -1
- data/rdoc/RubyXL/GenericStorageObject.html +1 -1
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/HyperlinkRelFile.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +1 -1
- data/rdoc/RubyXL/IconFilter.html +1 -1
- data/rdoc/RubyXL/IconSet.html +1 -1
- data/rdoc/RubyXL/IgnoredError.html +1 -1
- data/rdoc/RubyXL/IgnoredErrors.html +1 -1
- data/rdoc/RubyXL/IndexedColors.html +1 -1
- data/rdoc/RubyXL/InputCells.html +1 -1
- data/rdoc/RubyXL/IntegerNode.html +1 -1
- data/rdoc/RubyXL/IntegerValue.html +1 -1
- data/rdoc/RubyXL/LegacyCell.html +1 -1
- data/rdoc/RubyXL/LegacyWorksheet.html +11 -132
- data/rdoc/RubyXL/MRUColors.html +1 -1
- data/rdoc/RubyXL/MacrosFile.html +1 -1
- data/rdoc/RubyXL/MergedCell.html +1 -1
- data/rdoc/RubyXL/MergedCells.html +1 -1
- data/rdoc/RubyXL/NumFmt.html +1 -1
- data/rdoc/RubyXL/NumberFormat.html +1 -1
- data/rdoc/RubyXL/NumberFormats.html +1 -1
- data/rdoc/RubyXL/OLEObject.html +1 -1
- data/rdoc/RubyXL/OLEObjectFile.html +1 -1
- data/rdoc/RubyXL/OLEObjects.html +1 -1
- data/rdoc/RubyXL/OLESize.html +1 -1
- data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObject.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
- data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/Offset.html +1 -1
- data/rdoc/RubyXL/OutlineProperties.html +1 -1
- data/rdoc/RubyXL/PageMargins.html +1 -1
- data/rdoc/RubyXL/PageSetup.html +1 -1
- data/rdoc/RubyXL/PageSetupProperties.html +1 -1
- data/rdoc/RubyXL/Pane.html +1 -1
- data/rdoc/RubyXL/Parser.html +1 -1
- data/rdoc/RubyXL/PatternFill.html +1 -1
- data/rdoc/RubyXL/PhoneticProperties.html +1 -1
- data/rdoc/RubyXL/PhoneticRun.html +1 -1
- data/rdoc/RubyXL/PivotArea.html +1 -1
- data/rdoc/RubyXL/PivotCache.html +1 -1
- data/rdoc/RubyXL/PivotCacheDefinitionFile.html +1 -1
- data/rdoc/RubyXL/PivotCacheRecordsFile.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.html +1 -1
- data/rdoc/RubyXL/PivotTableFile.html +1 -1
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PresetGeometry.html +1 -1
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/PrinterSettingsFile.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +1 -1
- data/rdoc/RubyXL/ProtectedRanges.html +1 -1
- data/rdoc/RubyXL/Protection.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +1 -1
- data/rdoc/RubyXL/Reference.html +1 -1
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport.html +1 -1
- data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +1 -1
- data/rdoc/RubyXL/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/Row.html +1 -1
- data/rdoc/RubyXL/RowExt.html +1 -1
- data/rdoc/RubyXL/RunProperties.html +1 -1
- data/rdoc/RubyXL/Scenario.html +1 -1
- data/rdoc/RubyXL/Scenarios.html +1 -1
- data/rdoc/RubyXL/Selection.html +1 -1
- data/rdoc/RubyXL/ShapeGuide.html +1 -1
- data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
- data/rdoc/RubyXL/SharedStringsTable.html +1 -1
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +1 -1
- data/rdoc/RubyXL/SheetDataExt.html +1 -1
- data/rdoc/RubyXL/SheetDataSet.html +1 -1
- data/rdoc/RubyXL/SheetName.html +1 -1
- data/rdoc/RubyXL/SheetNames.html +1 -1
- data/rdoc/RubyXL/Sheets.html +1 -1
- data/rdoc/RubyXL/SlicerCacheFile.html +1 -1
- data/rdoc/RubyXL/SlicerFile.html +1 -1
- data/rdoc/RubyXL/SmartTagProperties.html +1 -1
- data/rdoc/RubyXL/SmartTagType.html +1 -1
- data/rdoc/RubyXL/SmartTagTypes.html +1 -1
- data/rdoc/RubyXL/SmartTags.html +1 -1
- data/rdoc/RubyXL/SortCondition.html +1 -1
- data/rdoc/RubyXL/SortState.html +1 -1
- data/rdoc/RubyXL/Sqref.html +1 -1
- data/rdoc/RubyXL/Stop.html +1 -1
- data/rdoc/RubyXL/StringNode.html +1 -1
- data/rdoc/RubyXL/StringNodeW3C.html +1 -1
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +1 -1
- data/rdoc/RubyXL/TableFile.html +1 -1
- data/rdoc/RubyXL/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +1 -1
- data/rdoc/RubyXL/Text.html +2 -2
- data/rdoc/RubyXL/Theme.html +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/ThumbnailFile.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/VMLDrawingFile.html +1 -1
- data/rdoc/RubyXL/Variant.html +1 -1
- data/rdoc/RubyXL/Vector.html +1 -1
- data/rdoc/RubyXL/VectorValue.html +1 -1
- data/rdoc/RubyXL/VisualProperties.html +1 -1
- data/rdoc/RubyXL/WebPublishObject.html +1 -1
- data/rdoc/RubyXL/WebPublishObjects.html +1 -1
- data/rdoc/RubyXL/WebPublishingItem.html +1 -1
- data/rdoc/RubyXL/WebPublishingItems.html +1 -1
- data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
- data/rdoc/RubyXL/Workbook.html +1 -1
- data/rdoc/RubyXL/WorkbookConvenienceMethods.html +1 -1
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRoot.html +1 -1
- data/rdoc/RubyXL/WorkbookView.html +1 -1
- data/rdoc/RubyXL/WorkbookViews.html +1 -1
- data/rdoc/RubyXL/Worksheet.html +1 -1
- data/rdoc/RubyXL/WorksheetConvenienceMethods.html +124 -1
- data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
- data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProtection.html +1 -1
- data/rdoc/RubyXL/WorksheetView.html +1 -1
- data/rdoc/RubyXL/WorksheetViews.html +1 -1
- data/rdoc/RubyXL/XF.html +1 -1
- data/rdoc/created.rid +4 -4
- data/rdoc/index.html +2 -2
- data/rdoc/js/navigation.js.gz +0 -0
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/js/search_index.js.gz +0 -0
- data/rdoc/js/searcher.js.gz +0 -0
- data/rdoc/table_of_contents.html +171 -171
- data/rubyXL.gemspec +4 -3
- data/spec/lib/cell_spec.rb +5 -5
- data/spec/lib/color_spec.rb +1 -1
- data/spec/lib/parser_spec.rb +1 -1
- data/spec/lib/text_spec.rb +21 -0
- data/spec/lib/worksheet_spec.rb +60 -60
- metadata +3 -2
data/rubyXL.gemspec
CHANGED
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: rubyXL 3.3.
|
|
5
|
+
# stub: rubyXL 3.3.11 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "rubyXL"
|
|
9
|
-
s.version = "3.3.
|
|
9
|
+
s.version = "3.3.11"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Vivek Bhagwat", "Wesha"]
|
|
14
|
-
s.date = "2015-07
|
|
14
|
+
s.date = "2015-08-07"
|
|
15
15
|
s.description = "rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents"
|
|
16
16
|
s.email = "bhagwat.vivek@gmail.com"
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -463,6 +463,7 @@ Gem::Specification.new do |s|
|
|
|
463
463
|
"spec/lib/parser_spec.rb",
|
|
464
464
|
"spec/lib/reference_spec.rb",
|
|
465
465
|
"spec/lib/stylesheet_spec.rb",
|
|
466
|
+
"spec/lib/text_spec.rb",
|
|
466
467
|
"spec/lib/workbook_spec.rb",
|
|
467
468
|
"spec/lib/worksheet_spec.rb",
|
|
468
469
|
"test/input/.gitkeep",
|
data/spec/lib/cell_spec.rb
CHANGED
|
@@ -34,7 +34,7 @@ describe RubyXL::Cell do
|
|
|
34
34
|
it 'should cause an error if hex color code not passed' do
|
|
35
35
|
expect {
|
|
36
36
|
@cell.change_fill('G')
|
|
37
|
-
}.to raise_error
|
|
37
|
+
}.to raise_error(RuntimeError)
|
|
38
38
|
end
|
|
39
39
|
|
|
40
40
|
it 'should make cell fill color equal to hex color code passed' do
|
|
@@ -45,7 +45,7 @@ describe RubyXL::Cell do
|
|
|
45
45
|
it 'should cause an error if hex color code includes # character' do
|
|
46
46
|
expect {
|
|
47
47
|
@cell.change_fill('#0f0f0f')
|
|
48
|
-
}.to raise_error
|
|
48
|
+
}.to raise_error(RuntimeError)
|
|
49
49
|
end
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -65,7 +65,7 @@ describe RubyXL::Cell do
|
|
|
65
65
|
it 'should cause an error if a string passed' do
|
|
66
66
|
expect {
|
|
67
67
|
@cell.change_font_size('20')
|
|
68
|
-
}.to raise_error
|
|
68
|
+
}.to raise_error(RuntimeError)
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
@@ -73,7 +73,7 @@ describe RubyXL::Cell do
|
|
|
73
73
|
it 'should cause an error if hex color code not passed' do
|
|
74
74
|
expect {
|
|
75
75
|
@cell.change_font_color('G')
|
|
76
|
-
}.to raise_error
|
|
76
|
+
}.to raise_error(RuntimeError)
|
|
77
77
|
end
|
|
78
78
|
|
|
79
79
|
it 'should make cell font color equal to hex color code passed' do
|
|
@@ -84,7 +84,7 @@ describe RubyXL::Cell do
|
|
|
84
84
|
it 'should cause an error if hex color code includes # character' do
|
|
85
85
|
expect {
|
|
86
86
|
@cell.change_font_color('#0f0f0f')
|
|
87
|
-
}.to raise_error
|
|
87
|
+
}.to raise_error(RuntimeError)
|
|
88
88
|
end
|
|
89
89
|
end
|
|
90
90
|
|
data/spec/lib/color_spec.rb
CHANGED
|
@@ -8,7 +8,7 @@ describe RubyXL::Color do
|
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
it 'should cause an error if an invalid hex color code or one with a # is passed' do
|
|
11
|
-
expect {RubyXL::Color.validate_color('#G')}.to raise_error
|
|
11
|
+
expect {RubyXL::Color.validate_color('#G')}.to raise_error(RuntimeError)
|
|
12
12
|
end
|
|
13
13
|
end
|
|
14
14
|
end
|
data/spec/lib/parser_spec.rb
CHANGED
|
@@ -55,7 +55,7 @@ describe RubyXL::Parser do
|
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
it 'should cause an error if an xlsx or xlsm workbook is not passed' do
|
|
58
|
-
expect {@workbook2 = RubyXL::Parser.parse("nonexistent_file.tmp")}.to raise_error
|
|
58
|
+
expect {@workbook2 = RubyXL::Parser.parse("nonexistent_file.tmp")}.to raise_error(Zip::Error)
|
|
59
59
|
end
|
|
60
60
|
|
|
61
61
|
=begin
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
require 'rubyXL'
|
|
2
|
+
|
|
3
|
+
describe RubyXL::Text do
|
|
4
|
+
|
|
5
|
+
describe '.to_s' do
|
|
6
|
+
|
|
7
|
+
it 'should not crash processing UNICODE data' do
|
|
8
|
+
bytes = [ 114, 39, 95, 120, 48, 48, 56, 48, 95, 226, 132, 162, 115,
|
|
9
|
+
32, 103, 105, 114, 108, 102, 114, 105, 101, 110, 100,
|
|
10
|
+
39, 95, 120, 48, 48, 56, 48, 95, 226, 132, 162, 115, 32, 104, 111]
|
|
11
|
+
|
|
12
|
+
t = RubyXL::Text.new(:value => bytes.pack("c*").force_encoding('UTF-8'))
|
|
13
|
+
|
|
14
|
+
str = t.to_s
|
|
15
|
+
|
|
16
|
+
expect(str).to be
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
end
|
data/spec/lib/worksheet_spec.rb
CHANGED
|
@@ -50,13 +50,13 @@ describe RubyXL::Worksheet do
|
|
|
50
50
|
it 'should raise error if hex color code not passed' do
|
|
51
51
|
expect {
|
|
52
52
|
@worksheet.change_row_fill(0, 'G')
|
|
53
|
-
}.to raise_error
|
|
53
|
+
}.to raise_error(RuntimeError)
|
|
54
54
|
end
|
|
55
55
|
|
|
56
56
|
it 'should raise error if hex color code includes # character' do
|
|
57
57
|
expect {
|
|
58
58
|
@worksheet.change_row_fill(3,'#FFF000')
|
|
59
|
-
}.to raise_error
|
|
59
|
+
}.to raise_error(RuntimeError)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
62
|
it 'should make row and cell fill colors equal hex color code passed' do
|
|
@@ -68,7 +68,7 @@ describe RubyXL::Worksheet do
|
|
|
68
68
|
it 'should cause error if a negative argument is passed in' do
|
|
69
69
|
expect {
|
|
70
70
|
@worksheet.change_row_fill(-1,'111111')
|
|
71
|
-
}.to raise_error
|
|
71
|
+
}.to raise_error(RuntimeError)
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
it 'should create a new row if it did not exist before' do
|
|
@@ -89,7 +89,7 @@ describe RubyXL::Worksheet do
|
|
|
89
89
|
it 'should cause error if a negative argument is passed in' do
|
|
90
90
|
expect {
|
|
91
91
|
@worksheet.change_row_font_name(-1,'Arial')
|
|
92
|
-
}.to raise_error
|
|
92
|
+
}.to raise_error(RuntimeError)
|
|
93
93
|
end
|
|
94
94
|
|
|
95
95
|
it 'should create a new row if it did not exist before' do
|
|
@@ -110,13 +110,13 @@ describe RubyXL::Worksheet do
|
|
|
110
110
|
it 'should cause an error if a string passed' do
|
|
111
111
|
expect {
|
|
112
112
|
@worksheet.change_row_font_size(0, '20')
|
|
113
|
-
}.to raise_error
|
|
113
|
+
}.to raise_error(RuntimeError)
|
|
114
114
|
end
|
|
115
115
|
|
|
116
116
|
it 'should cause error if a negative argument is passed in' do
|
|
117
117
|
expect {
|
|
118
118
|
@worksheet.change_row_font_size(-1,20)
|
|
119
|
-
}.to raise_error
|
|
119
|
+
}.to raise_error(RuntimeError)
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
it 'should create a new row if it did not exist before' do
|
|
@@ -137,19 +137,19 @@ describe RubyXL::Worksheet do
|
|
|
137
137
|
it 'should raise error if hex color code not passed' do
|
|
138
138
|
expect {
|
|
139
139
|
@worksheet.change_row_font_color(0, 'G')
|
|
140
|
-
}.to raise_error
|
|
140
|
+
}.to raise_error(RuntimeError)
|
|
141
141
|
end
|
|
142
142
|
|
|
143
143
|
it 'should raise error if hex color code includes # character' do
|
|
144
144
|
expect {
|
|
145
145
|
@worksheet.change_row_font_color(3,'#FFF000')
|
|
146
|
-
}.to raise_error
|
|
146
|
+
}.to raise_error(RuntimeError)
|
|
147
147
|
end
|
|
148
148
|
|
|
149
149
|
it 'should cause error if a negative argument is passed in' do
|
|
150
150
|
expect {
|
|
151
151
|
@worksheet.change_row_font_color(-1,'0f0f0f')
|
|
152
|
-
}.to raise_error
|
|
152
|
+
}.to raise_error(RuntimeError)
|
|
153
153
|
end
|
|
154
154
|
|
|
155
155
|
it 'should create a new row if it did not exist before' do
|
|
@@ -170,7 +170,7 @@ describe RubyXL::Worksheet do
|
|
|
170
170
|
it 'should cause error if a negative argument is passed in' do
|
|
171
171
|
expect {
|
|
172
172
|
@worksheet.change_row_italics(-1, false)
|
|
173
|
-
}.to raise_error
|
|
173
|
+
}.to raise_error(RuntimeError)
|
|
174
174
|
end
|
|
175
175
|
|
|
176
176
|
it 'should create a new row if it did not exist before' do
|
|
@@ -191,7 +191,7 @@ describe RubyXL::Worksheet do
|
|
|
191
191
|
it 'should cause error if a negative argument is passed in' do
|
|
192
192
|
expect {
|
|
193
193
|
@worksheet.change_row_bold(-1, false)
|
|
194
|
-
}.to raise_error
|
|
194
|
+
}.to raise_error(RuntimeError)
|
|
195
195
|
end
|
|
196
196
|
|
|
197
197
|
it 'should create a new row if it did not exist before' do
|
|
@@ -212,7 +212,7 @@ describe RubyXL::Worksheet do
|
|
|
212
212
|
it 'should cause error if a negative argument is passed in' do
|
|
213
213
|
expect {
|
|
214
214
|
@worksheet.change_row_underline(-1, false)
|
|
215
|
-
}.to raise_error
|
|
215
|
+
}.to raise_error(RuntimeError)
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
it 'should create a new row if it did not exist before' do
|
|
@@ -233,7 +233,7 @@ describe RubyXL::Worksheet do
|
|
|
233
233
|
it 'should cause error if a negative argument is passed in' do
|
|
234
234
|
expect {
|
|
235
235
|
@worksheet.change_row_strikethrough(-1, false)
|
|
236
|
-
}.to raise_error
|
|
236
|
+
}.to raise_error(RuntimeError)
|
|
237
237
|
end
|
|
238
238
|
|
|
239
239
|
it 'should create a new row if it did not exist before' do
|
|
@@ -258,7 +258,7 @@ describe RubyXL::Worksheet do
|
|
|
258
258
|
it 'should cause error if a negative argument is passed in' do
|
|
259
259
|
expect {
|
|
260
260
|
@worksheet.change_row_height(-1, 30)
|
|
261
|
-
}.to raise_error
|
|
261
|
+
}.to raise_error(RuntimeError)
|
|
262
262
|
end
|
|
263
263
|
|
|
264
264
|
it 'should create a new row if it did not exist before' do
|
|
@@ -279,7 +279,7 @@ describe RubyXL::Worksheet do
|
|
|
279
279
|
it 'should cause error if a negative argument is passed in' do
|
|
280
280
|
expect {
|
|
281
281
|
@worksheet.change_row_horizontal_alignment(-1,'center')
|
|
282
|
-
}.to raise_error
|
|
282
|
+
}.to raise_error(RuntimeError)
|
|
283
283
|
end
|
|
284
284
|
|
|
285
285
|
it 'should create a new row if it did not exist before' do
|
|
@@ -300,7 +300,7 @@ describe RubyXL::Worksheet do
|
|
|
300
300
|
it 'should cause error if a negative argument is passed in' do
|
|
301
301
|
expect {
|
|
302
302
|
@worksheet.change_row_vertical_alignment(-1,'center')
|
|
303
|
-
}.to raise_error
|
|
303
|
+
}.to raise_error(RuntimeError)
|
|
304
304
|
end
|
|
305
305
|
|
|
306
306
|
it 'should create a new row if it did not exist before' do
|
|
@@ -316,7 +316,7 @@ describe RubyXL::Worksheet do
|
|
|
316
316
|
it 'should cause error if a negative argument is passed in' do
|
|
317
317
|
expect {
|
|
318
318
|
@worksheet.change_row_border(-1, :left, 'thin')
|
|
319
|
-
}.to raise_error
|
|
319
|
+
}.to raise_error(RuntimeError)
|
|
320
320
|
end
|
|
321
321
|
|
|
322
322
|
it 'should create a new row if it did not exist before' do
|
|
@@ -367,7 +367,7 @@ describe RubyXL::Worksheet do
|
|
|
367
367
|
it 'should cause error if a negative argument is passed in' do
|
|
368
368
|
expect {
|
|
369
369
|
@worksheet.change_column_font_name(-1, 'Arial')
|
|
370
|
-
}.to raise_error
|
|
370
|
+
}.to raise_error(RuntimeError)
|
|
371
371
|
end
|
|
372
372
|
end
|
|
373
373
|
|
|
@@ -381,13 +381,13 @@ describe RubyXL::Worksheet do
|
|
|
381
381
|
it 'should cause an error if a string passed' do
|
|
382
382
|
expect {
|
|
383
383
|
@worksheet.change_column_font_size(0, '20')
|
|
384
|
-
}.to raise_error
|
|
384
|
+
}.to raise_error(RuntimeError)
|
|
385
385
|
end
|
|
386
386
|
|
|
387
387
|
it 'should cause error if a negative argument is passed in' do
|
|
388
388
|
expect {
|
|
389
389
|
@worksheet.change_column_font_size(-1, 20)
|
|
390
|
-
}.to raise_error
|
|
390
|
+
}.to raise_error(RuntimeError)
|
|
391
391
|
end
|
|
392
392
|
end
|
|
393
393
|
|
|
@@ -401,19 +401,19 @@ describe RubyXL::Worksheet do
|
|
|
401
401
|
it 'should raise error if hex color code not passed' do
|
|
402
402
|
expect {
|
|
403
403
|
@worksheet.change_column_font_color(0, 'G')
|
|
404
|
-
}.to raise_error
|
|
404
|
+
}.to raise_error(RuntimeError)
|
|
405
405
|
end
|
|
406
406
|
|
|
407
407
|
it 'should raise error if hex color code includes # character' do
|
|
408
408
|
expect {
|
|
409
409
|
@worksheet.change_column_font_color(0,'#FFF000')
|
|
410
|
-
}.to raise_error
|
|
410
|
+
}.to raise_error(RuntimeError)
|
|
411
411
|
end
|
|
412
412
|
|
|
413
413
|
it 'should cause error if a negative argument is passed in' do
|
|
414
414
|
expect {
|
|
415
415
|
@worksheet.change_column_font_color(-1,'0f0f0f')
|
|
416
|
-
}.to raise_error
|
|
416
|
+
}.to raise_error(RuntimeError)
|
|
417
417
|
end
|
|
418
418
|
end
|
|
419
419
|
|
|
@@ -426,8 +426,8 @@ describe RubyXL::Worksheet do
|
|
|
426
426
|
|
|
427
427
|
it 'should cause error if a negative argument is passed in' do
|
|
428
428
|
expect {
|
|
429
|
-
@worksheet.
|
|
430
|
-
}.to raise_error
|
|
429
|
+
@worksheet.change_column_italics(-1, false)
|
|
430
|
+
}.to raise_error(RuntimeError)
|
|
431
431
|
end
|
|
432
432
|
end
|
|
433
433
|
|
|
@@ -441,7 +441,7 @@ describe RubyXL::Worksheet do
|
|
|
441
441
|
it 'should cause error if a negative argument is passed in' do
|
|
442
442
|
expect {
|
|
443
443
|
@worksheet.change_column_bold(-1, false)
|
|
444
|
-
}.to raise_error
|
|
444
|
+
}.to raise_error(RuntimeError)
|
|
445
445
|
end
|
|
446
446
|
end
|
|
447
447
|
|
|
@@ -455,7 +455,7 @@ describe RubyXL::Worksheet do
|
|
|
455
455
|
it 'should cause error if a negative argument is passed in' do
|
|
456
456
|
expect {
|
|
457
457
|
@worksheet.change_column_underline(-1, false)
|
|
458
|
-
}.to raise_error
|
|
458
|
+
}.to raise_error(RuntimeError)
|
|
459
459
|
end
|
|
460
460
|
end
|
|
461
461
|
|
|
@@ -469,7 +469,7 @@ describe RubyXL::Worksheet do
|
|
|
469
469
|
it 'should cause error if a negative argument is passed in' do
|
|
470
470
|
expect {
|
|
471
471
|
@worksheet.change_column_strikethrough(-1, false)
|
|
472
|
-
}.to raise_error
|
|
472
|
+
}.to raise_error(RuntimeError)
|
|
473
473
|
end
|
|
474
474
|
end
|
|
475
475
|
|
|
@@ -482,7 +482,7 @@ describe RubyXL::Worksheet do
|
|
|
482
482
|
it 'should cause error if a negative argument is passed in' do
|
|
483
483
|
expect {
|
|
484
484
|
@worksheet.change_column_width_raw(-1, 10)
|
|
485
|
-
}.to raise_error
|
|
485
|
+
}.to raise_error(RuntimeError)
|
|
486
486
|
end
|
|
487
487
|
end
|
|
488
488
|
|
|
@@ -490,13 +490,13 @@ describe RubyXL::Worksheet do
|
|
|
490
490
|
it 'should raise error if hex color code not passed' do
|
|
491
491
|
expect {
|
|
492
492
|
@worksheet.change_column_fill(0, 'G')
|
|
493
|
-
}.to raise_error
|
|
493
|
+
}.to raise_error(RuntimeError)
|
|
494
494
|
end
|
|
495
495
|
|
|
496
496
|
it 'should raise error if hex color code includes # character' do
|
|
497
497
|
expect {
|
|
498
498
|
@worksheet.change_column_fill(3,'#FFF000')
|
|
499
|
-
}.to raise_error
|
|
499
|
+
}.to raise_error(RuntimeError)
|
|
500
500
|
end
|
|
501
501
|
|
|
502
502
|
it 'should make column and cell fill colors equal hex color code passed' do
|
|
@@ -508,7 +508,7 @@ describe RubyXL::Worksheet do
|
|
|
508
508
|
it 'should cause error if a negative argument is passed in' do
|
|
509
509
|
expect {
|
|
510
510
|
@worksheet.change_column_fill(-1,'111111')
|
|
511
|
-
}.to raise_error
|
|
511
|
+
}.to raise_error(RuntimeError)
|
|
512
512
|
end
|
|
513
513
|
end
|
|
514
514
|
|
|
@@ -522,7 +522,7 @@ describe RubyXL::Worksheet do
|
|
|
522
522
|
it 'should cause error if a negative argument is passed in' do
|
|
523
523
|
expect {
|
|
524
524
|
@worksheet.change_column_horizontal_alignment(-1,'center')
|
|
525
|
-
}.to raise_error
|
|
525
|
+
}.to raise_error(RuntimeError)
|
|
526
526
|
end
|
|
527
527
|
end
|
|
528
528
|
|
|
@@ -536,7 +536,7 @@ describe RubyXL::Worksheet do
|
|
|
536
536
|
it 'should cause error if a negative argument is passed in' do
|
|
537
537
|
expect {
|
|
538
538
|
@worksheet.change_column_vertical_alignment(-1, 'center')
|
|
539
|
-
}.to raise_error
|
|
539
|
+
}.to raise_error(RuntimeError)
|
|
540
540
|
end
|
|
541
541
|
|
|
542
542
|
it 'should set column width if column alignment is changed' do
|
|
@@ -555,7 +555,7 @@ describe RubyXL::Worksheet do
|
|
|
555
555
|
it 'should cause error if a negative argument is passed in' do
|
|
556
556
|
expect {
|
|
557
557
|
@worksheet.change_column_border(-1, :top, 'thin')
|
|
558
|
-
}.to raise_error
|
|
558
|
+
}.to raise_error(RuntimeError)
|
|
559
559
|
end
|
|
560
560
|
|
|
561
561
|
it 'should cause column and cells within to have border at top of specified weight' do
|
|
@@ -632,7 +632,7 @@ describe RubyXL::Worksheet do
|
|
|
632
632
|
it 'should cause error if a negative argument is passed in' do
|
|
633
633
|
expect {
|
|
634
634
|
@worksheet.add_cell(-1,-1,'')
|
|
635
|
-
}.to raise_error
|
|
635
|
+
}.to raise_error(RuntimeError)
|
|
636
636
|
end
|
|
637
637
|
end
|
|
638
638
|
|
|
@@ -660,7 +660,7 @@ describe RubyXL::Worksheet do
|
|
|
660
660
|
it 'should cause error if a negative argument is passed in' do
|
|
661
661
|
expect {
|
|
662
662
|
@worksheet.delete_row(-1)
|
|
663
|
-
}.to raise_error
|
|
663
|
+
}.to raise_error(RuntimeError)
|
|
664
664
|
end
|
|
665
665
|
end
|
|
666
666
|
|
|
@@ -697,7 +697,7 @@ describe RubyXL::Worksheet do
|
|
|
697
697
|
it 'should cause error if a negative argument is passed in' do
|
|
698
698
|
expect {
|
|
699
699
|
@worksheet.insert_row(-1)
|
|
700
|
-
}.to raise_error
|
|
700
|
+
}.to raise_error(RuntimeError)
|
|
701
701
|
end
|
|
702
702
|
|
|
703
703
|
it 'should expand matrix to fit argument if nonnegative' do
|
|
@@ -737,7 +737,7 @@ describe RubyXL::Worksheet do
|
|
|
737
737
|
it 'should cause error if negative argument is passed in' do
|
|
738
738
|
expect {
|
|
739
739
|
@worksheet.delete_column(-1)
|
|
740
|
-
}.to raise_error
|
|
740
|
+
}.to raise_error(RuntimeError)
|
|
741
741
|
end
|
|
742
742
|
end
|
|
743
743
|
|
|
@@ -778,7 +778,7 @@ describe RubyXL::Worksheet do
|
|
|
778
778
|
it 'should cause error if a negative argument is passed in' do
|
|
779
779
|
expect {
|
|
780
780
|
@worksheet.insert_column(-1)
|
|
781
|
-
}.to raise_error
|
|
781
|
+
}.to raise_error(RuntimeError)
|
|
782
782
|
end
|
|
783
783
|
end
|
|
784
784
|
|
|
@@ -814,13 +814,13 @@ describe RubyXL::Worksheet do
|
|
|
814
814
|
it 'should cause error if shift argument is specified whcih is not :right or :down' do
|
|
815
815
|
expect {
|
|
816
816
|
@worksheet.insert_cell(0,0,'test',nil,:up)
|
|
817
|
-
}.to raise_error
|
|
817
|
+
}.to raise_error(RuntimeError)
|
|
818
818
|
end
|
|
819
819
|
|
|
820
820
|
it 'should cause error if a negative argument is passed in' do
|
|
821
821
|
expect {
|
|
822
822
|
@worksheet.insert_cell(-1,-1)
|
|
823
|
-
}.to raise_error
|
|
823
|
+
}.to raise_error(RuntimeError)
|
|
824
824
|
end
|
|
825
825
|
end
|
|
826
826
|
|
|
@@ -838,7 +838,7 @@ describe RubyXL::Worksheet do
|
|
|
838
838
|
it 'should cause error if a negative argument is passed in' do
|
|
839
839
|
expect {
|
|
840
840
|
@worksheet.delete_cell(-1,-1)
|
|
841
|
-
}.to raise_error
|
|
841
|
+
}.to raise_error(RuntimeError)
|
|
842
842
|
end
|
|
843
843
|
|
|
844
844
|
it 'should shift cells to the right of the deleted cell left if :left is specified' do
|
|
@@ -861,7 +861,7 @@ describe RubyXL::Worksheet do
|
|
|
861
861
|
it 'should cause en error if an argument other than :left, :up, or nil is specified for shift' do
|
|
862
862
|
expect {
|
|
863
863
|
@worksheet.delete_cell(0,0,:down)
|
|
864
|
-
}.to raise_error
|
|
864
|
+
}.to raise_error(RuntimeError)
|
|
865
865
|
end
|
|
866
866
|
end
|
|
867
867
|
|
|
@@ -974,7 +974,7 @@ describe RubyXL::Worksheet do
|
|
|
974
974
|
it 'should cause error if a negative argument is passed in' do
|
|
975
975
|
expect {
|
|
976
976
|
@worksheet.get_row_height(-1)
|
|
977
|
-
}.to raise_error
|
|
977
|
+
}.to raise_error(RuntimeError)
|
|
978
978
|
end
|
|
979
979
|
end
|
|
980
980
|
|
|
@@ -982,7 +982,7 @@ describe RubyXL::Worksheet do
|
|
|
982
982
|
it 'should cause error if a negative argument is passed in' do
|
|
983
983
|
expect {
|
|
984
984
|
@worksheet.get_row_alignment(-1, true)
|
|
985
|
-
}.to raise_error
|
|
985
|
+
}.to raise_error(RuntimeError)
|
|
986
986
|
end
|
|
987
987
|
|
|
988
988
|
it 'should return nil if no horizontal alignment specified for row' do
|
|
@@ -1025,7 +1025,7 @@ describe RubyXL::Worksheet do
|
|
|
1025
1025
|
it 'should cause error if a negative argument is passed in' do
|
|
1026
1026
|
expect {
|
|
1027
1027
|
@worksheet.get_row_border(-1, :top)
|
|
1028
|
-
}.to raise_error
|
|
1028
|
+
}.to raise_error(RuntimeError)
|
|
1029
1029
|
end
|
|
1030
1030
|
|
|
1031
1031
|
it 'should return nil if a row which does not exist is passed in' do
|
|
@@ -1042,7 +1042,7 @@ describe RubyXL::Worksheet do
|
|
|
1042
1042
|
it 'should cause error if a negative argument is passed in' do
|
|
1043
1043
|
expect {
|
|
1044
1044
|
@worksheet.get_column_font_name(-1)
|
|
1045
|
-
}.to raise_error
|
|
1045
|
+
}.to raise_error(RuntimeError)
|
|
1046
1046
|
end
|
|
1047
1047
|
|
|
1048
1048
|
it 'should return default font if a (nonnegative) column which does not exist is passed in' do
|
|
@@ -1059,7 +1059,7 @@ describe RubyXL::Worksheet do
|
|
|
1059
1059
|
it 'should cause error if a negative argument is passed in' do
|
|
1060
1060
|
expect {
|
|
1061
1061
|
@worksheet.get_column_font_size(-1)
|
|
1062
|
-
}.to raise_error
|
|
1062
|
+
}.to raise_error(RuntimeError)
|
|
1063
1063
|
end
|
|
1064
1064
|
|
|
1065
1065
|
it 'should return default font size if a column which does not exist is passed in' do
|
|
@@ -1076,7 +1076,7 @@ describe RubyXL::Worksheet do
|
|
|
1076
1076
|
it 'should cause error if a negative argument is passed in' do
|
|
1077
1077
|
expect {
|
|
1078
1078
|
@worksheet.get_column_font_color(-1)
|
|
1079
|
-
}.to raise_error
|
|
1079
|
+
}.to raise_error(RuntimeError)
|
|
1080
1080
|
end
|
|
1081
1081
|
|
|
1082
1082
|
it 'should return default color (000000) if a (nonnegative) column which does not exist is passed in' do
|
|
@@ -1097,7 +1097,7 @@ describe RubyXL::Worksheet do
|
|
|
1097
1097
|
it 'should cause error if a negative argument is passed in' do
|
|
1098
1098
|
expect {
|
|
1099
1099
|
@worksheet.is_column_italicized(-1)
|
|
1100
|
-
}.to raise_error
|
|
1100
|
+
}.to raise_error(RuntimeError)
|
|
1101
1101
|
end
|
|
1102
1102
|
|
|
1103
1103
|
it 'should return nil if a (nonnegative) column which does not exist is passed in' do
|
|
@@ -1114,7 +1114,7 @@ describe RubyXL::Worksheet do
|
|
|
1114
1114
|
it 'should cause error if a negative argument is passed in' do
|
|
1115
1115
|
expect {
|
|
1116
1116
|
@worksheet.is_column_bolded(-1)
|
|
1117
|
-
}.to raise_error
|
|
1117
|
+
}.to raise_error(RuntimeError)
|
|
1118
1118
|
end
|
|
1119
1119
|
|
|
1120
1120
|
it 'should return nil if a (nonnegative) column which does not exist is passed in' do
|
|
@@ -1131,7 +1131,7 @@ describe RubyXL::Worksheet do
|
|
|
1131
1131
|
it 'should cause error if a negative argument is passed in' do
|
|
1132
1132
|
expect {
|
|
1133
1133
|
@worksheet.is_column_underlined(-1)
|
|
1134
|
-
}.to raise_error
|
|
1134
|
+
}.to raise_error(RuntimeError)
|
|
1135
1135
|
end
|
|
1136
1136
|
|
|
1137
1137
|
it 'should return nil if a (nonnegative) column which does not exist is passed in' do
|
|
@@ -1148,7 +1148,7 @@ describe RubyXL::Worksheet do
|
|
|
1148
1148
|
it 'should cause error if a negative argument is passed in' do
|
|
1149
1149
|
expect {
|
|
1150
1150
|
@worksheet.is_column_struckthrough(-1)
|
|
1151
|
-
}.to raise_error
|
|
1151
|
+
}.to raise_error(RuntimeError)
|
|
1152
1152
|
end
|
|
1153
1153
|
|
|
1154
1154
|
it 'should return nil if a (nonnegative) column which does not exist is passed in' do
|
|
@@ -1173,7 +1173,7 @@ describe RubyXL::Worksheet do
|
|
|
1173
1173
|
it 'should cause error if a negative argument is passed in' do
|
|
1174
1174
|
expect {
|
|
1175
1175
|
@worksheet.get_column_width_raw(-1)
|
|
1176
|
-
}.to raise_error
|
|
1176
|
+
}.to raise_error(RuntimeError)
|
|
1177
1177
|
end
|
|
1178
1178
|
end
|
|
1179
1179
|
|
|
@@ -1194,7 +1194,7 @@ describe RubyXL::Worksheet do
|
|
|
1194
1194
|
it 'should cause error if a negative argument is passed in' do
|
|
1195
1195
|
expect {
|
|
1196
1196
|
@worksheet.get_column_width(-1)
|
|
1197
|
-
}.to raise_error
|
|
1197
|
+
}.to raise_error(RuntimeError)
|
|
1198
1198
|
end
|
|
1199
1199
|
end
|
|
1200
1200
|
|
|
@@ -1215,7 +1215,7 @@ describe RubyXL::Worksheet do
|
|
|
1215
1215
|
it 'should cause error if a negative argument is passed in' do
|
|
1216
1216
|
expect {
|
|
1217
1217
|
@worksheet.get_column_fill(-1)
|
|
1218
|
-
}.to raise_error
|
|
1218
|
+
}.to raise_error(RuntimeError)
|
|
1219
1219
|
end
|
|
1220
1220
|
end
|
|
1221
1221
|
|
|
@@ -1231,7 +1231,7 @@ describe RubyXL::Worksheet do
|
|
|
1231
1231
|
it 'should cause error if a negative argument is passed in' do
|
|
1232
1232
|
expect {
|
|
1233
1233
|
@worksheet.get_column_alignment(-1, :horizontal)
|
|
1234
|
-
}.to raise_error
|
|
1234
|
+
}.to raise_error(RuntimeError)
|
|
1235
1235
|
end
|
|
1236
1236
|
|
|
1237
1237
|
it 'should return correct horizontal alignment if it is set for that column' do
|
|
@@ -1252,7 +1252,7 @@ describe RubyXL::Worksheet do
|
|
|
1252
1252
|
it 'should cause error if a negative argument is passed in' do
|
|
1253
1253
|
expect {
|
|
1254
1254
|
@worksheet.get_column_alignment(-1, :vertical)
|
|
1255
|
-
}.to raise_error
|
|
1255
|
+
}.to raise_error(RuntimeError)
|
|
1256
1256
|
end
|
|
1257
1257
|
|
|
1258
1258
|
it 'should return correct vertical alignment if it is set for that column' do
|
|
@@ -1274,7 +1274,7 @@ describe RubyXL::Worksheet do
|
|
|
1274
1274
|
it 'should cause error if a negative argument is passed in' do
|
|
1275
1275
|
expect {
|
|
1276
1276
|
@worksheet.get_column_border(-1, :diagonal)
|
|
1277
|
-
}.to raise_error
|
|
1277
|
+
}.to raise_error(RuntimeError)
|
|
1278
1278
|
end
|
|
1279
1279
|
|
|
1280
1280
|
it 'should return nil if a column which does not exist is passed in' do
|