rubyXL 3.4.38 → 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.
Files changed (418) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +4 -1
  3. data/README.rdoc +3 -4
  4. data/Rakefile +18 -13
  5. data/VERSION +1 -1
  6. data/lib/rubyXL/cell.rb +2 -2
  7. data/lib/rubyXL/convenience_methods/cell.rb +13 -6
  8. data/lib/rubyXL/convenience_methods/worksheet.rb +41 -30
  9. data/lib/rubyXL/objects/border.rb +9 -6
  10. data/lib/rubyXL/objects/cell_style.rb +2 -0
  11. data/lib/rubyXL/objects/color.rb +3 -1
  12. data/lib/rubyXL/objects/container_nodes.rb +2 -0
  13. data/lib/rubyXL/objects/fill.rb +2 -0
  14. data/lib/rubyXL/objects/font.rb +2 -0
  15. data/lib/rubyXL/objects/ooxml_object.rb +16 -16
  16. data/lib/rubyXL/objects/reference.rb +38 -33
  17. data/lib/rubyXL/objects/root.rb +8 -1
  18. data/lib/rubyXL/objects/sheet_data.rb +7 -2
  19. data/lib/rubyXL/objects/simple_types.rb +101 -98
  20. data/lib/rubyXL/objects/workbook.rb +5 -5
  21. data/lib/rubyXL/objects/worksheet.rb +23 -4
  22. data/lib/rubyXL/worksheet.rb +5 -17
  23. data/rdoc/README_rdoc.html +8 -8
  24. data/rdoc/RubyXL/AExtension.html +5 -5
  25. data/rdoc/RubyXL/AExtensionStorageArea.html +5 -5
  26. data/rdoc/RubyXL/ActiveX.html +5 -5
  27. data/rdoc/RubyXL/ActiveXBinary.html +5 -5
  28. data/rdoc/RubyXL/AdjustHandleList.html +5 -5
  29. data/rdoc/RubyXL/Alignment.html +5 -5
  30. data/rdoc/RubyXL/AlternateContent.html +5 -5
  31. data/rdoc/RubyXL/AlternateUrls.html +5 -5
  32. data/rdoc/RubyXL/Authors.html +5 -5
  33. data/rdoc/RubyXL/AutoFilter.html +5 -5
  34. data/rdoc/RubyXL/AutoFilterColumn.html +5 -5
  35. data/rdoc/RubyXL/BinaryImageFile.html +5 -5
  36. data/rdoc/RubyXL/BodyProperties.html +5 -5
  37. data/rdoc/RubyXL/BooleanNode.html +5 -5
  38. data/rdoc/RubyXL/BooleanValue.html +5 -5
  39. data/rdoc/RubyXL/Border.html +14 -13
  40. data/rdoc/RubyXL/BorderEdge.html +10 -10
  41. data/rdoc/RubyXL/Borders.html +6 -6
  42. data/rdoc/RubyXL/Break.html +5 -5
  43. data/rdoc/RubyXL/BreakList.html +5 -5
  44. data/rdoc/RubyXL/CT_AdjPoint2D.html +5 -5
  45. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +5 -5
  46. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +5 -5
  47. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +5 -5
  48. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +5 -5
  49. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +5 -5
  50. data/rdoc/RubyXL/CT_Backdrop.html +5 -5
  51. data/rdoc/RubyXL/CT_Bevel.html +5 -5
  52. data/rdoc/RubyXL/CT_BiLevelEffect.html +5 -5
  53. data/rdoc/RubyXL/CT_BlendEffect.html +5 -5
  54. data/rdoc/RubyXL/CT_Blip.html +5 -5
  55. data/rdoc/RubyXL/CT_BlipFillProperties.html +5 -5
  56. data/rdoc/RubyXL/CT_BlurEffect.html +5 -5
  57. data/rdoc/RubyXL/CT_Camera.html +5 -5
  58. data/rdoc/RubyXL/CT_Color.html +5 -5
  59. data/rdoc/RubyXL/CT_ColorChangeEffect.html +5 -5
  60. data/rdoc/RubyXL/CT_ColorMapping.html +5 -5
  61. data/rdoc/RubyXL/CT_ColorScheme.html +5 -5
  62. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +5 -5
  63. data/rdoc/RubyXL/CT_ConnectionSite.html +5 -5
  64. data/rdoc/RubyXL/CT_ConnectionSiteList.html +5 -5
  65. data/rdoc/RubyXL/CT_DashStop.html +5 -5
  66. data/rdoc/RubyXL/CT_DashStopList.html +5 -5
  67. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +5 -5
  68. data/rdoc/RubyXL/CT_DuotoneEffect.html +5 -5
  69. data/rdoc/RubyXL/CT_EffectContainer.html +5 -5
  70. data/rdoc/RubyXL/CT_EffectList.html +5 -5
  71. data/rdoc/RubyXL/CT_EffectReference.html +5 -5
  72. data/rdoc/RubyXL/CT_EffectStyleItem.html +5 -5
  73. data/rdoc/RubyXL/CT_EffectStyleList.html +5 -5
  74. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +5 -5
  75. data/rdoc/RubyXL/CT_FillEffect.html +5 -5
  76. data/rdoc/RubyXL/CT_FillOverlayEffect.html +5 -5
  77. data/rdoc/RubyXL/CT_FillStyleList.html +5 -5
  78. data/rdoc/RubyXL/CT_FlatText.html +5 -5
  79. data/rdoc/RubyXL/CT_FontCollection.html +5 -5
  80. data/rdoc/RubyXL/CT_FontReference.html +5 -5
  81. data/rdoc/RubyXL/CT_GeomGuideList.html +5 -5
  82. data/rdoc/RubyXL/CT_GlowEffect.html +5 -5
  83. data/rdoc/RubyXL/CT_GradientFillProperties.html +5 -5
  84. data/rdoc/RubyXL/CT_GradientStop.html +5 -5
  85. data/rdoc/RubyXL/CT_GradientStopList.html +5 -5
  86. data/rdoc/RubyXL/CT_HSLEffect.html +5 -5
  87. data/rdoc/RubyXL/CT_HslColor.html +5 -5
  88. data/rdoc/RubyXL/CT_Hyperlink.html +5 -5
  89. data/rdoc/RubyXL/CT_InnerShadowEffect.html +5 -5
  90. data/rdoc/RubyXL/CT_LightRig.html +5 -5
  91. data/rdoc/RubyXL/CT_LineEndProperties.html +5 -5
  92. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +5 -5
  93. data/rdoc/RubyXL/CT_LineProperties.html +5 -5
  94. data/rdoc/RubyXL/CT_LineStyleList.html +5 -5
  95. data/rdoc/RubyXL/CT_LinearShadeProperties.html +5 -5
  96. data/rdoc/RubyXL/CT_LuminanceEffect.html +5 -5
  97. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +5 -5
  98. data/rdoc/RubyXL/CT_OuterShadowEffect.html +5 -5
  99. data/rdoc/RubyXL/CT_Path2D.html +5 -5
  100. data/rdoc/RubyXL/CT_Path2DArcTo.html +5 -5
  101. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +5 -5
  102. data/rdoc/RubyXL/CT_Path2DList.html +5 -5
  103. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +5 -5
  104. data/rdoc/RubyXL/CT_Path2DTo.html +5 -5
  105. data/rdoc/RubyXL/CT_PathShadeProperties.html +5 -5
  106. data/rdoc/RubyXL/CT_PatternFillProperties.html +5 -5
  107. data/rdoc/RubyXL/CT_Point3D.html +5 -5
  108. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +5 -5
  109. data/rdoc/RubyXL/CT_PresetColor.html +5 -5
  110. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +5 -5
  111. data/rdoc/RubyXL/CT_PresetShadowEffect.html +5 -5
  112. data/rdoc/RubyXL/CT_PresetTextShape.html +5 -5
  113. data/rdoc/RubyXL/CT_ReflectionEffect.html +5 -5
  114. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +5 -5
  115. data/rdoc/RubyXL/CT_RelativeRect.html +5 -5
  116. data/rdoc/RubyXL/CT_SRgbColor.html +5 -5
  117. data/rdoc/RubyXL/CT_ScRgbColor.html +5 -5
  118. data/rdoc/RubyXL/CT_Scene3D.html +5 -5
  119. data/rdoc/RubyXL/CT_SchemeColor.html +5 -5
  120. data/rdoc/RubyXL/CT_Shape3D.html +5 -5
  121. data/rdoc/RubyXL/CT_ShapeStyle.html +5 -5
  122. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +5 -5
  123. data/rdoc/RubyXL/CT_SphereCoords.html +5 -5
  124. data/rdoc/RubyXL/CT_StretchInfoProperties.html +5 -5
  125. data/rdoc/RubyXL/CT_StyleMatrix.html +5 -5
  126. data/rdoc/RubyXL/CT_StyleMatrixReference.html +5 -5
  127. data/rdoc/RubyXL/CT_SupplementalFont.html +5 -5
  128. data/rdoc/RubyXL/CT_SystemColor.html +5 -5
  129. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +5 -5
  130. data/rdoc/RubyXL/CT_TextBlipBullet.html +5 -5
  131. data/rdoc/RubyXL/CT_TextCharBullet.html +5 -5
  132. data/rdoc/RubyXL/CT_TextCharacterProperties.html +5 -5
  133. data/rdoc/RubyXL/CT_TextFont.html +5 -5
  134. data/rdoc/RubyXL/CT_TextListStyle.html +5 -5
  135. data/rdoc/RubyXL/CT_TextNormalAutofit.html +5 -5
  136. data/rdoc/RubyXL/CT_TextParagraphProperties.html +5 -5
  137. data/rdoc/RubyXL/CT_TextSpacing.html +5 -5
  138. data/rdoc/RubyXL/CT_TextTabStop.html +5 -5
  139. data/rdoc/RubyXL/CT_TextTabStopList.html +5 -5
  140. data/rdoc/RubyXL/CT_TileInfoProperties.html +5 -5
  141. data/rdoc/RubyXL/CT_TintEffect.html +5 -5
  142. data/rdoc/RubyXL/CT_Transform2D.html +5 -5
  143. data/rdoc/RubyXL/CT_TransformEffect.html +5 -5
  144. data/rdoc/RubyXL/CT_Vector3D.html +5 -5
  145. data/rdoc/RubyXL/CT_XYAdjustHandle.html +5 -5
  146. data/rdoc/RubyXL/CalculationChain.html +5 -5
  147. data/rdoc/RubyXL/CalculationChainCell.html +5 -5
  148. data/rdoc/RubyXL/CalculationProperties.html +5 -5
  149. data/rdoc/RubyXL/Cell.html +6 -6
  150. data/rdoc/RubyXL/CellConvenienceMethods.html +69 -48
  151. data/rdoc/RubyXL/CellExt.html +5 -5
  152. data/rdoc/RubyXL/CellSmartTag.html +5 -5
  153. data/rdoc/RubyXL/CellSmartTagProperty.html +5 -5
  154. data/rdoc/RubyXL/CellSmartTags.html +5 -5
  155. data/rdoc/RubyXL/CellStyle.html +5 -5
  156. data/rdoc/RubyXL/CellStyleXFs.html +5 -5
  157. data/rdoc/RubyXL/CellStyles.html +5 -5
  158. data/rdoc/RubyXL/CellValue.html +5 -5
  159. data/rdoc/RubyXL/CellWatch.html +5 -5
  160. data/rdoc/RubyXL/CellWatches.html +5 -5
  161. data/rdoc/RubyXL/CellXFs.html +5 -5
  162. data/rdoc/RubyXL/ChartColorsFile.html +5 -5
  163. data/rdoc/RubyXL/ChartFile.html +5 -5
  164. data/rdoc/RubyXL/ChartStyleFile.html +5 -5
  165. data/rdoc/RubyXL/ChartUserShapesFile.html +5 -5
  166. data/rdoc/RubyXL/Chartsheet.html +5 -5
  167. data/rdoc/RubyXL/ChartsheetPageSetup.html +5 -5
  168. data/rdoc/RubyXL/ChartsheetProperties.html +5 -5
  169. data/rdoc/RubyXL/ChartsheetProtection.html +5 -5
  170. data/rdoc/RubyXL/ChartsheetView.html +5 -5
  171. data/rdoc/RubyXL/ChartsheetViews.html +5 -5
  172. data/rdoc/RubyXL/Color.html +7 -7
  173. data/rdoc/RubyXL/ColorConvenienceClasses/HlsColor.html +5 -5
  174. data/rdoc/RubyXL/ColorConvenienceClasses/RgbColor.html +5 -5
  175. data/rdoc/RubyXL/ColorConvenienceClasses.html +5 -5
  176. data/rdoc/RubyXL/ColorConvenienceMethods.html +5 -5
  177. data/rdoc/RubyXL/ColorFilter.html +5 -5
  178. data/rdoc/RubyXL/ColorScale.html +5 -5
  179. data/rdoc/RubyXL/ColorSet.html +5 -5
  180. data/rdoc/RubyXL/Colors.html +5 -5
  181. data/rdoc/RubyXL/ColumnRange.html +5 -5
  182. data/rdoc/RubyXL/ColumnRanges.html +5 -5
  183. data/rdoc/RubyXL/Comment.html +5 -5
  184. data/rdoc/RubyXL/CommentList.html +5 -5
  185. data/rdoc/RubyXL/CommentsFile.html +5 -5
  186. data/rdoc/RubyXL/ConditionalFormatValue.html +5 -5
  187. data/rdoc/RubyXL/ConditionalFormatting.html +5 -5
  188. data/rdoc/RubyXL/ConditionalFormattingRule.html +5 -5
  189. data/rdoc/RubyXL/Connection.html +5 -5
  190. data/rdoc/RubyXL/ConnectionTable.html +5 -5
  191. data/rdoc/RubyXL/ConnectionTables.html +5 -5
  192. data/rdoc/RubyXL/ConnectionTextField.html +5 -5
  193. data/rdoc/RubyXL/ConnectionTextFields.html +5 -5
  194. data/rdoc/RubyXL/Connections.html +5 -5
  195. data/rdoc/RubyXL/ContentTypeDefault.html +5 -5
  196. data/rdoc/RubyXL/ContentTypeOverride.html +5 -5
  197. data/rdoc/RubyXL/ContentTypes.html +5 -5
  198. data/rdoc/RubyXL/ControlPropertiesFile.html +5 -5
  199. data/rdoc/RubyXL/CorePropertiesFile.html +5 -5
  200. data/rdoc/RubyXL/CustomColor.html +5 -5
  201. data/rdoc/RubyXL/CustomColorList.html +5 -5
  202. data/rdoc/RubyXL/CustomFilter.html +5 -5
  203. data/rdoc/RubyXL/CustomFilters.html +5 -5
  204. data/rdoc/RubyXL/CustomGeometry.html +5 -5
  205. data/rdoc/RubyXL/CustomProperties.html +5 -5
  206. data/rdoc/RubyXL/CustomPropertiesFile.html +5 -5
  207. data/rdoc/RubyXL/CustomProperty.html +5 -5
  208. data/rdoc/RubyXL/CustomPropertyFile.html +5 -5
  209. data/rdoc/RubyXL/CustomSheetView.html +5 -5
  210. data/rdoc/RubyXL/CustomSheetViews.html +5 -5
  211. data/rdoc/RubyXL/CustomWorkbookView.html +5 -5
  212. data/rdoc/RubyXL/CustomWorkbookViews.html +5 -5
  213. data/rdoc/RubyXL/CustomXMLFile.html +5 -5
  214. data/rdoc/RubyXL/DXF.html +5 -5
  215. data/rdoc/RubyXL/DXFs.html +5 -5
  216. data/rdoc/RubyXL/DataBar.html +5 -5
  217. data/rdoc/RubyXL/DataConsolidate.html +5 -5
  218. data/rdoc/RubyXL/DataConsolidationReference.html +5 -5
  219. data/rdoc/RubyXL/DataConsolidationReferences.html +5 -5
  220. data/rdoc/RubyXL/DataType.html +5 -5
  221. data/rdoc/RubyXL/DataValidation.html +5 -5
  222. data/rdoc/RubyXL/DataValidations.html +5 -5
  223. data/rdoc/RubyXL/DateGroupItem.html +5 -5
  224. data/rdoc/RubyXL/DefinedName.html +5 -5
  225. data/rdoc/RubyXL/DefinedNameExt.html +5 -5
  226. data/rdoc/RubyXL/DefinedNames.html +5 -5
  227. data/rdoc/RubyXL/DefinedNamesExt.html +5 -5
  228. data/rdoc/RubyXL/DocumentPropertiesFile.html +5 -5
  229. data/rdoc/RubyXL/DrawingFile.html +5 -5
  230. data/rdoc/RubyXL/DynamicFilter.html +5 -5
  231. data/rdoc/RubyXL/EmbeddedControl.html +5 -5
  232. data/rdoc/RubyXL/EmbeddedControls.html +5 -5
  233. data/rdoc/RubyXL/Extension.html +5 -5
  234. data/rdoc/RubyXL/ExtensionStorageArea.html +5 -5
  235. data/rdoc/RubyXL/Extents.html +5 -5
  236. data/rdoc/RubyXL/ExternalBook.html +5 -5
  237. data/rdoc/RubyXL/ExternalLinksFile.html +5 -5
  238. data/rdoc/RubyXL/ExternalReference.html +5 -5
  239. data/rdoc/RubyXL/ExternalReferences.html +5 -5
  240. data/rdoc/RubyXL/ExtraColorSchemeList.html +5 -5
  241. data/rdoc/RubyXL/FieldItem.html +5 -5
  242. data/rdoc/RubyXL/FileRecoveryProperties.html +5 -5
  243. data/rdoc/RubyXL/FileSharing.html +5 -5
  244. data/rdoc/RubyXL/FileVersion.html +5 -5
  245. data/rdoc/RubyXL/Fill.html +6 -6
  246. data/rdoc/RubyXL/Fills.html +6 -6
  247. data/rdoc/RubyXL/FilterContainer.html +5 -5
  248. data/rdoc/RubyXL/FloatNode.html +5 -5
  249. data/rdoc/RubyXL/FloatValue.html +5 -5
  250. data/rdoc/RubyXL/Font.html +6 -6
  251. data/rdoc/RubyXL/FontConvenienceMethods.html +5 -5
  252. data/rdoc/RubyXL/FontScheme.html +5 -5
  253. data/rdoc/RubyXL/Fonts.html +6 -6
  254. data/rdoc/RubyXL/Formula.html +5 -5
  255. data/rdoc/RubyXL/FunctionGroup.html +5 -5
  256. data/rdoc/RubyXL/FunctionGroups.html +5 -5
  257. data/rdoc/RubyXL/GenericStorageObject.html +5 -5
  258. data/rdoc/RubyXL/GradientFill.html +5 -5
  259. data/rdoc/RubyXL/HeaderFooterSettings.html +5 -5
  260. data/rdoc/RubyXL/Hyperlink.html +5 -5
  261. data/rdoc/RubyXL/HyperlinkRelFile.html +5 -5
  262. data/rdoc/RubyXL/Hyperlinks.html +5 -5
  263. data/rdoc/RubyXL/IconFilter.html +5 -5
  264. data/rdoc/RubyXL/IconSet.html +5 -5
  265. data/rdoc/RubyXL/IgnoredError.html +5 -5
  266. data/rdoc/RubyXL/IgnoredErrors.html +5 -5
  267. data/rdoc/RubyXL/IndexedColors.html +5 -5
  268. data/rdoc/RubyXL/InputCells.html +5 -5
  269. data/rdoc/RubyXL/IntegerNode.html +5 -5
  270. data/rdoc/RubyXL/IntegerValue.html +5 -5
  271. data/rdoc/RubyXL/LegacyCell.html +5 -5
  272. data/rdoc/RubyXL/LegacyWorksheet.html +6 -140
  273. data/rdoc/RubyXL/MRUColors.html +5 -5
  274. data/rdoc/RubyXL/MacrosFile.html +5 -5
  275. data/rdoc/RubyXL/MergedCell.html +5 -5
  276. data/rdoc/RubyXL/MergedCells.html +5 -5
  277. data/rdoc/RubyXL/NumFmt.html +5 -5
  278. data/rdoc/RubyXL/NumberFormat.html +5 -5
  279. data/rdoc/RubyXL/NumberFormats.html +5 -5
  280. data/rdoc/RubyXL/OLEObject.html +5 -5
  281. data/rdoc/RubyXL/OLEObjectFile.html +5 -5
  282. data/rdoc/RubyXL/OLEObjects.html +5 -5
  283. data/rdoc/RubyXL/OLESize.html +5 -5
  284. data/rdoc/RubyXL/OOXMLContainerObject.html +13 -20
  285. data/rdoc/RubyXL/OOXMLIgnored.html +5 -5
  286. data/rdoc/RubyXL/OOXMLObject.html +5 -5
  287. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +17 -13
  288. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +16 -17
  289. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +5 -5
  290. data/rdoc/RubyXL/OOXMLTopLevelObject.html +6 -6
  291. data/rdoc/RubyXL/OdbcOleDbProperties.html +5 -5
  292. data/rdoc/RubyXL/Offset.html +5 -5
  293. data/rdoc/RubyXL/OlapProperties.html +5 -5
  294. data/rdoc/RubyXL/OleItem.html +5 -5
  295. data/rdoc/RubyXL/OleItems.html +5 -5
  296. data/rdoc/RubyXL/OleLink.html +5 -5
  297. data/rdoc/RubyXL/OutlineProperties.html +5 -5
  298. data/rdoc/RubyXL/PageMargins.html +5 -5
  299. data/rdoc/RubyXL/PageSetup.html +5 -5
  300. data/rdoc/RubyXL/PageSetupProperties.html +5 -5
  301. data/rdoc/RubyXL/Pane.html +5 -5
  302. data/rdoc/RubyXL/Parser.html +5 -5
  303. data/rdoc/RubyXL/PatternFill.html +5 -5
  304. data/rdoc/RubyXL/PersonMetadata.html +5 -5
  305. data/rdoc/RubyXL/PhoneticProperties.html +5 -5
  306. data/rdoc/RubyXL/PhoneticRun.html +5 -5
  307. data/rdoc/RubyXL/PivotArea.html +5 -5
  308. data/rdoc/RubyXL/PivotCache.html +5 -5
  309. data/rdoc/RubyXL/PivotCacheDefinitionFile.html +5 -5
  310. data/rdoc/RubyXL/PivotCacheRecordsFile.html +5 -5
  311. data/rdoc/RubyXL/PivotCaches.html +5 -5
  312. data/rdoc/RubyXL/PivotReference.html +5 -5
  313. data/rdoc/RubyXL/PivotReferences.html +5 -5
  314. data/rdoc/RubyXL/{PivotTableSelection.html → PivotSelection.html} +12 -12
  315. data/rdoc/RubyXL/PivotTableFile.html +5 -5
  316. data/rdoc/RubyXL/PresetGeometry.html +5 -5
  317. data/rdoc/RubyXL/PrintOptions.html +5 -5
  318. data/rdoc/RubyXL/PrinterSettingsFile.html +5 -5
  319. data/rdoc/RubyXL/ProtectedRange.html +5 -5
  320. data/rdoc/RubyXL/ProtectedRanges.html +5 -5
  321. data/rdoc/RubyXL/Protection.html +5 -5
  322. data/rdoc/RubyXL/QueryParameter.html +5 -5
  323. data/rdoc/RubyXL/QueryParameters.html +5 -5
  324. data/rdoc/RubyXL/QueryTable.html +5 -5
  325. data/rdoc/RubyXL/QueryTableDeletedField.html +5 -5
  326. data/rdoc/RubyXL/QueryTableDeletedFields.html +5 -5
  327. data/rdoc/RubyXL/QueryTableField.html +5 -5
  328. data/rdoc/RubyXL/QueryTableFields.html +5 -5
  329. data/rdoc/RubyXL/QueryTableRefresh.html +5 -5
  330. data/rdoc/RubyXL/RID.html +5 -5
  331. data/rdoc/RubyXL/RawOOXML.html +5 -5
  332. data/rdoc/RubyXL/Reference.html +110 -154
  333. data/rdoc/RubyXL/Relationship.html +5 -5
  334. data/rdoc/RubyXL/RelationshipSupport/ClassMehods.html +5 -5
  335. data/rdoc/RubyXL/RelationshipSupport.html +5 -5
  336. data/rdoc/RubyXL/RevisionPointer.html +5 -5
  337. data/rdoc/RubyXL/RichText.html +5 -5
  338. data/rdoc/RubyXL/RichTextRun.html +5 -5
  339. data/rdoc/RubyXL/Row.html +14 -14
  340. data/rdoc/RubyXL/RowExt.html +5 -5
  341. data/rdoc/RubyXL/RunProperties.html +5 -5
  342. data/rdoc/RubyXL/Scenario.html +5 -5
  343. data/rdoc/RubyXL/Scenarios.html +5 -5
  344. data/rdoc/RubyXL/Selection.html +6 -6
  345. data/rdoc/RubyXL/ShapeGuide.html +5 -5
  346. data/rdoc/RubyXL/ShapeTextRectangle.html +5 -5
  347. data/rdoc/RubyXL/SharedStringsTable.html +5 -5
  348. data/rdoc/RubyXL/Sheet.html +5 -5
  349. data/rdoc/RubyXL/SheetCalculationProperties.html +5 -5
  350. data/rdoc/RubyXL/SheetData.html +7 -7
  351. data/rdoc/RubyXL/SheetDataExt.html +5 -5
  352. data/rdoc/RubyXL/SheetDataSet.html +5 -5
  353. data/rdoc/RubyXL/SheetMetadata.html +5 -5
  354. data/rdoc/RubyXL/SheetName.html +5 -5
  355. data/rdoc/RubyXL/SheetNames.html +5 -5
  356. data/rdoc/RubyXL/Sheets.html +5 -5
  357. data/rdoc/RubyXL/SlicerCacheFile.html +5 -5
  358. data/rdoc/RubyXL/SlicerFile.html +5 -5
  359. data/rdoc/RubyXL/SmartTagProperties.html +5 -5
  360. data/rdoc/RubyXL/SmartTagType.html +5 -5
  361. data/rdoc/RubyXL/SmartTagTypes.html +5 -5
  362. data/rdoc/RubyXL/SmartTags.html +5 -5
  363. data/rdoc/RubyXL/SortCondition.html +5 -5
  364. data/rdoc/RubyXL/SortState.html +5 -5
  365. data/rdoc/RubyXL/Sqref.html +7 -7
  366. data/rdoc/RubyXL/Stop.html +5 -5
  367. data/rdoc/RubyXL/StringNode.html +5 -5
  368. data/rdoc/RubyXL/StringNodeW3C.html +7 -7
  369. data/rdoc/RubyXL/StringValue.html +5 -5
  370. data/rdoc/RubyXL/Stylesheet.html +5 -5
  371. data/rdoc/RubyXL/TableFile.html +5 -5
  372. data/rdoc/RubyXL/TableParts.html +5 -5
  373. data/rdoc/RubyXL/TableStyle.html +5 -5
  374. data/rdoc/RubyXL/TableStyles.html +5 -5
  375. data/rdoc/RubyXL/Text.html +5 -5
  376. data/rdoc/RubyXL/TextImportSettings.html +5 -5
  377. data/rdoc/RubyXL/Theme.html +5 -5
  378. data/rdoc/RubyXL/ThemeElements.html +5 -5
  379. data/rdoc/RubyXL/ThumbnailFile.html +5 -5
  380. data/rdoc/RubyXL/Top10.html +5 -5
  381. data/rdoc/RubyXL/VMLDrawingFile.html +5 -5
  382. data/rdoc/RubyXL/Variant.html +5 -5
  383. data/rdoc/RubyXL/Vector.html +6 -6
  384. data/rdoc/RubyXL/VectorValue.html +5 -5
  385. data/rdoc/RubyXL/VisualProperties.html +5 -5
  386. data/rdoc/RubyXL/WebPublishObject.html +5 -5
  387. data/rdoc/RubyXL/WebPublishObjects.html +5 -5
  388. data/rdoc/RubyXL/WebPublishingItem.html +5 -5
  389. data/rdoc/RubyXL/WebPublishingItems.html +5 -5
  390. data/rdoc/RubyXL/WebPublishingProperties.html +5 -5
  391. data/rdoc/RubyXL/WebQueryProperties.html +5 -5
  392. data/rdoc/RubyXL/Workbook.html +8 -8
  393. data/rdoc/RubyXL/WorkbookConvenienceMethods.html +5 -5
  394. data/rdoc/RubyXL/WorkbookProperties.html +5 -5
  395. data/rdoc/RubyXL/WorkbookProtection.html +5 -5
  396. data/rdoc/RubyXL/WorkbookRoot.html +15 -8
  397. data/rdoc/RubyXL/WorkbookView.html +5 -5
  398. data/rdoc/RubyXL/WorkbookViews.html +5 -5
  399. data/rdoc/RubyXL/Worksheet.html +147 -13
  400. data/rdoc/RubyXL/WorksheetConvenienceMethods.html +111 -100
  401. data/rdoc/RubyXL/WorksheetDimensions.html +6 -6
  402. data/rdoc/RubyXL/WorksheetFormatProperties.html +5 -5
  403. data/rdoc/RubyXL/WorksheetProperties.html +5 -5
  404. data/rdoc/RubyXL/WorksheetProtection.html +5 -5
  405. data/rdoc/RubyXL/WorksheetView.html +5 -5
  406. data/rdoc/RubyXL/WorksheetViews.html +5 -5
  407. data/rdoc/RubyXL/XF.html +5 -5
  408. data/rdoc/RubyXL.html +13 -5
  409. data/rdoc/created.rid +20 -20
  410. data/rdoc/index.html +10 -10
  411. data/rdoc/js/search_data.js +1 -1
  412. data/rubyXL.gemspec +7 -4
  413. data/spec/lib/cell_spec.rb +45 -5
  414. data/spec/lib/color_spec.rb +2 -2
  415. data/spec/lib/reference_spec.rb +25 -0
  416. data/spec/lib/workbook_root_spec.rb +43 -0
  417. data/spec/lib/worksheet_spec.rb +65 -57
  418. 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.38 ruby lib
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.38".freeze
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-06-15"
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])
@@ -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(RuntimeError)
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(RuntimeError)
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(RuntimeError)
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(RuntimeError)
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(RuntimeError)
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
@@ -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(RuntimeError)
18
- expect { RubyXL::Color.validate_color('1234567') }.to raise_error(RuntimeError)
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
@@ -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