rubyXL 2.5.2 → 2.5.3
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 +1 -0
- data/Gemfile.lock +13 -11
- data/README.rdoc +3 -0
- data/VERSION +1 -1
- data/lib/rubyXL/cell.rb +29 -26
- data/lib/rubyXL/objects/data_validation.rb +0 -1
- data/lib/rubyXL/objects/workbook.rb +2 -1
- data/lib/rubyXL/objects/worksheet.rb +1 -1
- data/lib/rubyXL/worksheet.rb +3 -7
- data/rdoc/README_rdoc.html +6 -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/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.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/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/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/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/CoreProperties.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/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/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/DefinedNames.html +1 -1
- data/rdoc/RubyXL/DocumentProperties.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/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/GenericStorage.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/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 +61 -56
- data/rdoc/RubyXL/LegacyWorkbook.html +1 -1
- data/rdoc/RubyXL/LegacyWorksheet.html +82 -131
- data/rdoc/RubyXL/MRUColors.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/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/PivotCaches.html +1 -1
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/PivotReferences.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/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/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/RootRelationships.html +1 -1
- data/rdoc/RubyXL/Row.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/Sheets.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/TableParts.html +1 -1
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +1 -1
- data/rdoc/RubyXL/Text.html +1 -1
- data/rdoc/RubyXL/Theme.html +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/Top10.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/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRelationships.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/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 +7 -7
- data/rdoc/index.html +2 -2
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/table_of_contents.html +3 -2
- data/rubyXL.gemspec +5 -2
- data/spec/lib/cell_spec.rb +1 -1
- data/spec/lib/parser_spec.rb +9 -0
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a6a9361899bbb99bf07a40430e935fec0bd5d184
|
|
4
|
+
data.tar.gz: 5d7f2b2e4462798506e4f0555ed57cd0856ac511
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 746a8de512c5cf6226430ea9d33c435b00311129a880159c6b48b833496667384ccdd38f02111843e1cdd38533cbdf5fb0b4e0e2f71be42b88f07a13a0c9d859
|
|
7
|
+
data.tar.gz: 3683e09f2856e21adf0615f7723188e3b4b4ba08aa8eca8d7e448219cb0465543503abeb522f9d947234226644adf8b215090932acbaa4ae95bff7bbe1154a83
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: http://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
activesupport (4.
|
|
4
|
+
activesupport (4.1.1)
|
|
5
5
|
i18n (~> 0.6, >= 0.6.9)
|
|
6
|
-
|
|
7
|
-
|
|
6
|
+
json (~> 1.7, >= 1.7.7)
|
|
7
|
+
minitest (~> 5.1)
|
|
8
8
|
thread_safe (~> 0.1)
|
|
9
|
-
tzinfo (~>
|
|
9
|
+
tzinfo (~> 1.1)
|
|
10
10
|
addressable (2.3.6)
|
|
11
11
|
builder (3.2.2)
|
|
12
12
|
descendants_tracker (0.0.4)
|
|
@@ -24,7 +24,7 @@ GEM
|
|
|
24
24
|
multi_json (>= 1.7.5, < 2.0)
|
|
25
25
|
nokogiri (~> 1.6.0)
|
|
26
26
|
oauth2
|
|
27
|
-
hashie (2.1.
|
|
27
|
+
hashie (2.1.1)
|
|
28
28
|
highline (1.6.21)
|
|
29
29
|
i18n (0.6.9)
|
|
30
30
|
jeweler (2.0.1)
|
|
@@ -40,8 +40,8 @@ GEM
|
|
|
40
40
|
jwt (0.1.11)
|
|
41
41
|
multi_json (>= 1.5)
|
|
42
42
|
mini_portile (0.5.3)
|
|
43
|
-
minitest (
|
|
44
|
-
multi_json (1.
|
|
43
|
+
minitest (5.3.3)
|
|
44
|
+
multi_json (1.10.0)
|
|
45
45
|
multi_xml (0.5.5)
|
|
46
46
|
multipart-post (2.0.0)
|
|
47
47
|
nokogiri (1.6.1)
|
|
@@ -53,7 +53,7 @@ GEM
|
|
|
53
53
|
multi_xml (~> 0.5)
|
|
54
54
|
rack (~> 1.2)
|
|
55
55
|
rack (1.5.2)
|
|
56
|
-
rake (10.
|
|
56
|
+
rake (10.3.1)
|
|
57
57
|
rdoc (4.1.1)
|
|
58
58
|
json (~> 1.4)
|
|
59
59
|
rspec (2.14.1)
|
|
@@ -69,15 +69,16 @@ GEM
|
|
|
69
69
|
shoulda-context (~> 1.0, >= 1.0.1)
|
|
70
70
|
shoulda-matchers (>= 1.4.1, < 3.0)
|
|
71
71
|
shoulda-context (1.2.1)
|
|
72
|
-
shoulda-matchers (2.
|
|
72
|
+
shoulda-matchers (2.6.1)
|
|
73
73
|
activesupport (>= 3.0.0)
|
|
74
74
|
simplecov (0.8.2)
|
|
75
75
|
docile (~> 1.1.0)
|
|
76
76
|
multi_json
|
|
77
77
|
simplecov-html (~> 0.8.0)
|
|
78
78
|
simplecov-html (0.8.0)
|
|
79
|
-
thread_safe (0.3.
|
|
80
|
-
tzinfo (
|
|
79
|
+
thread_safe (0.3.3)
|
|
80
|
+
tzinfo (1.1.0)
|
|
81
|
+
thread_safe (~> 0.1)
|
|
81
82
|
|
|
82
83
|
PLATFORMS
|
|
83
84
|
ruby
|
|
@@ -86,6 +87,7 @@ DEPENDENCIES
|
|
|
86
87
|
bundler
|
|
87
88
|
jeweler
|
|
88
89
|
nokogiri (>= 1.4.4)
|
|
90
|
+
rake
|
|
89
91
|
rspec (>= 1.3.4)
|
|
90
92
|
rubyzip (>= 1.0.0)
|
|
91
93
|
shoulda
|
data/README.rdoc
CHANGED
|
@@ -90,6 +90,9 @@ Please note: these methods are being phased out in favor of the OOXML object mod
|
|
|
90
90
|
==== Adding Worksheets
|
|
91
91
|
worksheet = workbook.add_worksheet('Sheet2')
|
|
92
92
|
|
|
93
|
+
==== Renaming Worksheets
|
|
94
|
+
worksheet.sheet_name = 'Cool New Name'
|
|
95
|
+
|
|
93
96
|
==== Adding Cells
|
|
94
97
|
worksheet.add_cell(0, 0, 'A1') # Sets cell A1 to string "A1"
|
|
95
98
|
worksheet.add_cell(0, 1, '', 'A1') # Sets formula in the cell B1 to '=A1'
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.5.
|
|
1
|
+
2.5.3
|
data/lib/rubyXL/cell.rb
CHANGED
|
@@ -35,7 +35,7 @@ module RubyXL
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
# Changes font size of cell
|
|
38
|
-
def change_font_size(font_size=10)
|
|
38
|
+
def change_font_size(font_size = 10)
|
|
39
39
|
validate_worksheet
|
|
40
40
|
raise 'Argument must be a number' unless font_size.is_a?(Integer) || font_size.is_a?(Float)
|
|
41
41
|
|
|
@@ -45,7 +45,7 @@ module RubyXL
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
# Changes font color of cell
|
|
48
|
-
def change_font_color(font_color='000000')
|
|
48
|
+
def change_font_color(font_color = '000000')
|
|
49
49
|
validate_worksheet
|
|
50
50
|
Color.validate_color(font_color)
|
|
51
51
|
|
|
@@ -55,7 +55,7 @@ module RubyXL
|
|
|
55
55
|
end
|
|
56
56
|
|
|
57
57
|
# Changes font italics settings of cell
|
|
58
|
-
def change_font_italics(italicized=false)
|
|
58
|
+
def change_font_italics(italicized = false)
|
|
59
59
|
validate_worksheet
|
|
60
60
|
|
|
61
61
|
font = get_cell_font.dup
|
|
@@ -64,7 +64,7 @@ module RubyXL
|
|
|
64
64
|
end
|
|
65
65
|
|
|
66
66
|
# Changes font bold settings of cell
|
|
67
|
-
def change_font_bold(bolded=false)
|
|
67
|
+
def change_font_bold(bolded = false)
|
|
68
68
|
validate_worksheet
|
|
69
69
|
|
|
70
70
|
font = get_cell_font.dup
|
|
@@ -73,7 +73,7 @@ module RubyXL
|
|
|
73
73
|
end
|
|
74
74
|
|
|
75
75
|
# Changes font underline settings of cell
|
|
76
|
-
def change_font_underline(underlined=false)
|
|
76
|
+
def change_font_underline(underlined = false)
|
|
77
77
|
validate_worksheet
|
|
78
78
|
|
|
79
79
|
font = get_cell_font.dup
|
|
@@ -81,7 +81,7 @@ module RubyXL
|
|
|
81
81
|
update_font_references(font)
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
def change_font_strikethrough(struckthrough=false)
|
|
84
|
+
def change_font_strikethrough(struckthrough = false)
|
|
85
85
|
validate_worksheet
|
|
86
86
|
|
|
87
87
|
font = get_cell_font.dup
|
|
@@ -97,60 +97,64 @@ module RubyXL
|
|
|
97
97
|
private :update_font_references
|
|
98
98
|
|
|
99
99
|
# changes horizontal alignment of cell
|
|
100
|
-
def change_horizontal_alignment(alignment='center')
|
|
100
|
+
def change_horizontal_alignment(alignment = 'center')
|
|
101
101
|
validate_worksheet
|
|
102
102
|
self.style_index = workbook.modify_alignment(self.style_index, true, alignment)
|
|
103
103
|
end
|
|
104
104
|
|
|
105
105
|
# changes vertical alignment of cell
|
|
106
|
-
def change_vertical_alignment(alignment='center')
|
|
106
|
+
def change_vertical_alignment(alignment = 'center')
|
|
107
107
|
validate_worksheet
|
|
108
108
|
self.style_index = workbook.modify_alignment(self.style_index, false, alignment)
|
|
109
109
|
end
|
|
110
110
|
|
|
111
111
|
# changes wrap of cell
|
|
112
|
-
def change_text_wrap(wrap=false)
|
|
112
|
+
def change_text_wrap(wrap = false)
|
|
113
113
|
validate_worksheet
|
|
114
114
|
self.style_index = workbook.modify_text_wrap(self.style_index, wrap)
|
|
115
115
|
end
|
|
116
116
|
|
|
117
117
|
# changes top border of cell
|
|
118
|
-
def change_border_top(weight='thin')
|
|
118
|
+
def change_border_top(weight = 'thin')
|
|
119
119
|
change_border(:top, weight)
|
|
120
120
|
end
|
|
121
121
|
|
|
122
122
|
# changes left border of cell
|
|
123
|
-
def change_border_left(weight='thin')
|
|
123
|
+
def change_border_left(weight = 'thin')
|
|
124
124
|
change_border(:left, weight)
|
|
125
125
|
end
|
|
126
126
|
|
|
127
127
|
# changes right border of cell
|
|
128
|
-
def change_border_right(weight='thin')
|
|
128
|
+
def change_border_right(weight = 'thin')
|
|
129
129
|
change_border(:right, weight)
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
# changes bottom border of cell
|
|
133
|
-
def change_border_bottom(weight='thin')
|
|
133
|
+
def change_border_bottom(weight = 'thin')
|
|
134
134
|
change_border(:bottom, weight)
|
|
135
135
|
end
|
|
136
136
|
|
|
137
137
|
# changes diagonal border of cell
|
|
138
|
-
def change_border_diagonal(weight='thin')
|
|
138
|
+
def change_border_diagonal(weight = 'thin')
|
|
139
139
|
change_border(:diagonal, weight)
|
|
140
140
|
end
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
def change_contents(data, formula=nil)
|
|
142
|
+
def change_contents(data, formula_expression = nil)
|
|
144
143
|
validate_worksheet
|
|
145
|
-
self.datatype = RubyXL::DataType::RAW_STRING
|
|
146
144
|
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
145
|
+
if formula_expression then
|
|
146
|
+
self.datatype = nil
|
|
147
|
+
self.formula = RubyXL::Formula.new(:expression => formula_expression)
|
|
148
|
+
else
|
|
149
|
+
self.datatype = case data
|
|
150
|
+
when Date, Integer, Float then nil
|
|
151
|
+
else RubyXL::DataType::RAW_STRING
|
|
152
|
+
end
|
|
150
153
|
end
|
|
151
154
|
|
|
155
|
+
data = workbook.date_to_num(data) if data.is_a?(Date)
|
|
156
|
+
|
|
152
157
|
self.raw_value = data
|
|
153
|
-
@formula = formula
|
|
154
158
|
end
|
|
155
159
|
|
|
156
160
|
# returns if font is italicized
|
|
@@ -247,7 +251,7 @@ module RubyXL
|
|
|
247
251
|
|
|
248
252
|
def inspect
|
|
249
253
|
str = "#<#{self.class}(#{row},#{column}): #{raw_value.inspect}"
|
|
250
|
-
str += " =#{
|
|
254
|
+
str += " =#{self.formula.expression}" if self.formula
|
|
251
255
|
str += ", datatype = #{self.datatype}, style_index = #{self.style_index}>"
|
|
252
256
|
return str
|
|
253
257
|
end
|
|
@@ -266,19 +270,19 @@ module RubyXL
|
|
|
266
270
|
|
|
267
271
|
def validate_workbook()
|
|
268
272
|
unless workbook.nil? || workbook.worksheets.nil?
|
|
269
|
-
workbook.worksheets.each
|
|
273
|
+
workbook.worksheets.each { |sheet|
|
|
270
274
|
unless sheet.nil? || sheet.sheet_data.nil? || sheet.sheet_data[row].nil?
|
|
271
275
|
if sheet.sheet_data[row][column] == self
|
|
272
276
|
return
|
|
273
277
|
end
|
|
274
278
|
end
|
|
275
|
-
|
|
279
|
+
}
|
|
276
280
|
end
|
|
277
281
|
raise "This cell #{self} is not in workbook #{workbook}"
|
|
278
282
|
end
|
|
279
283
|
|
|
280
284
|
def validate_worksheet()
|
|
281
|
-
return if @worksheet && @worksheet[row][column] == self
|
|
285
|
+
return if @worksheet && @worksheet[row] && @worksheet[row][column] == self
|
|
282
286
|
raise "This cell #{self} is not in worksheet #{worksheet}"
|
|
283
287
|
end
|
|
284
288
|
|
|
@@ -296,4 +300,3 @@ module RubyXL
|
|
|
296
300
|
|
|
297
301
|
end
|
|
298
302
|
end
|
|
299
|
-
|
|
@@ -23,7 +23,6 @@ module RubyXL
|
|
|
23
23
|
define_child_node(RubyXL::Formula, :node_name => :formula1)
|
|
24
24
|
define_child_node(RubyXL::Formula, :node_name => :formula2)
|
|
25
25
|
define_element_name 'dataValidation'
|
|
26
|
-
|
|
27
26
|
end
|
|
28
27
|
|
|
29
28
|
# http://www.schemacentral.com/sc/ooxml/e-ssml_dataValidations-1.html
|
|
@@ -319,7 +319,8 @@ module RubyXL
|
|
|
319
319
|
|
|
320
320
|
worksheets.each_with_index { |sheet, i|
|
|
321
321
|
rel = relationship_container.find_by_target(sheet.xlsx_path.gsub(/^xl\//, ''))
|
|
322
|
-
sheets << RubyXL::Sheet.new(:name => sheet.sheet_name,
|
|
322
|
+
sheets << RubyXL::Sheet.new(:name => sheet.sheet_name[0..30], # Max sheet name length is 31 char
|
|
323
|
+
:sheet_id => sheet.sheet_id || (i + 1),
|
|
323
324
|
:state => sheet.state, :r_id => rel.id)
|
|
324
325
|
}
|
|
325
326
|
true
|
|
@@ -652,7 +652,7 @@ module RubyXL
|
|
|
652
652
|
'xmlns:x14ac' => 'http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac',
|
|
653
653
|
'xmlns:mv' => 'urn:schemas-microsoft-com:mac:vml')
|
|
654
654
|
|
|
655
|
-
attr_accessor :state
|
|
655
|
+
attr_accessor :workbook, :state, :sheet_name, :sheet_id
|
|
656
656
|
|
|
657
657
|
def before_write_xml # This method may need to be moved higher in the hierarchy
|
|
658
658
|
first_nonempty_row = nil
|
data/lib/rubyXL/worksheet.rb
CHANGED
|
@@ -2,17 +2,13 @@ module RubyXL
|
|
|
2
2
|
module LegacyWorksheet
|
|
3
3
|
include Enumerable
|
|
4
4
|
|
|
5
|
-
attr_accessor :workbook, :sheet_name, :sheet_id
|
|
6
|
-
|
|
7
5
|
def initialize(params = {})
|
|
8
6
|
super
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
self.workbook = params[:workbook]
|
|
8
|
+
self.sheet_name = params[:sheet_name]
|
|
9
|
+
self.sheet_id = params[:sheet_id]
|
|
12
10
|
self.sheet_data = RubyXL::SheetData.new
|
|
13
11
|
self.cols = RubyXL::ColumnRanges.new
|
|
14
|
-
@extLst = nil
|
|
15
|
-
@validations = []
|
|
16
12
|
end
|
|
17
13
|
|
|
18
14
|
# allows for easier access to sheet_data
|
data/rdoc/README_rdoc.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head>
|
|
5
5
|
<meta charset="UTF-8">
|
|
6
6
|
|
|
7
|
-
<title>README - rubyXL 2.5.
|
|
7
|
+
<title>README - rubyXL 2.5.3</title>
|
|
8
8
|
|
|
9
9
|
<link href="./fonts.css" rel="stylesheet">
|
|
10
10
|
<link href="./rdoc.css" rel="stylesheet">
|
|
@@ -74,6 +74,7 @@
|
|
|
74
74
|
<li><a href="#label-Table+identification">Table identification</a>
|
|
75
75
|
<li><a href="#label-Modifying">Modifying</a>
|
|
76
76
|
<li><a href="#label-Adding+Worksheets">Adding Worksheets</a>
|
|
77
|
+
<li><a href="#label-Renaming+Worksheets">Renaming Worksheets</a>
|
|
77
78
|
<li><a href="#label-Adding+Cells">Adding Cells</a>
|
|
78
79
|
<li><a href="#label-Changing+Cells">Changing Cells</a>
|
|
79
80
|
<li><a href="#label-Changing+Fonts">Changing Fonts</a>
|
|
@@ -227,6 +228,10 @@ worksheet.get_column_border_right(0)</pre>
|
|
|
227
228
|
|
|
228
229
|
<pre>worksheet = workbook.add_worksheet('Sheet2')</pre>
|
|
229
230
|
|
|
231
|
+
<h4 id="label-Renaming+Worksheets">Renaming Worksheets<span><a href="#label-Renaming+Worksheets">¶</a> <a href="#documentation">↑</a></span></h4>
|
|
232
|
+
|
|
233
|
+
<pre>worksheet.sheet_name = 'Cool New Name'</pre>
|
|
234
|
+
|
|
230
235
|
<h4 id="label-Adding+Cells">Adding Cells<span><a href="#label-Adding+Cells">¶</a> <a href="#documentation">↑</a></span></h4>
|
|
231
236
|
|
|
232
237
|
<pre>worksheet.add_cell(0, 0, 'A1') # Sets cell A1 to string "A1"
|
data/rdoc/RubyXL.html
CHANGED
data/rdoc/RubyXL/AExtension.html
CHANGED
data/rdoc/RubyXL/Alignment.html
CHANGED
data/rdoc/RubyXL/AutoFilter.html
CHANGED