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
@@ -34,13 +34,13 @@ describe RubyXL::Worksheet do
34
34
  it 'should raise error if hex color code not passed' do
35
35
  expect {
36
36
  subject.change_row_fill(0, 'G')
37
- }.to raise_error(RuntimeError)
37
+ }.to raise_error(ArgumentError)
38
38
  end
39
39
 
40
40
  it 'should raise error if hex color code includes # character' do
41
41
  expect {
42
42
  subject.change_row_fill(3, '#FFF000')
43
- }.to raise_error(RuntimeError)
43
+ }.to raise_error(ArgumentError)
44
44
  end
45
45
 
46
46
  it 'should make row and cell fill colors equal hex color code passed' do
@@ -52,7 +52,7 @@ describe RubyXL::Worksheet do
52
52
  it 'should cause error if a negative argument is passed in' do
53
53
  expect {
54
54
  subject.change_row_fill(-1, '111111')
55
- }.to raise_error(RuntimeError)
55
+ }.to raise_error(ArgumentError)
56
56
  end
57
57
 
58
58
  it 'should create a new row if it did not exist before' do
@@ -73,7 +73,7 @@ describe RubyXL::Worksheet do
73
73
  it 'should cause error if a negative argument is passed in' do
74
74
  expect {
75
75
  subject.change_row_font_name(-1, 'Arial')
76
- }.to raise_error(RuntimeError)
76
+ }.to raise_error(ArgumentError)
77
77
  end
78
78
 
79
79
  it 'should create a new row if it did not exist before' do
@@ -94,13 +94,13 @@ describe RubyXL::Worksheet do
94
94
  it 'should cause an error if a string passed' do
95
95
  expect {
96
96
  subject.change_row_font_size(0, '20')
97
- }.to raise_error(RuntimeError)
97
+ }.to raise_error(ArgumentError)
98
98
  end
99
99
 
100
100
  it 'should cause error if a negative argument is passed in' do
101
101
  expect {
102
102
  subject.change_row_font_size(-1, 20)
103
- }.to raise_error(RuntimeError)
103
+ }.to raise_error(ArgumentError)
104
104
  end
105
105
 
106
106
  it 'should create a new row if it did not exist before' do
@@ -121,19 +121,19 @@ describe RubyXL::Worksheet do
121
121
  it 'should raise error if hex color code not passed' do
122
122
  expect {
123
123
  subject.change_row_font_color(0, 'G')
124
- }.to raise_error(RuntimeError)
124
+ }.to raise_error(ArgumentError)
125
125
  end
126
126
 
127
127
  it 'should raise error if hex color code includes # character' do
128
128
  expect {
129
129
  subject.change_row_font_color(3, '#FFF000')
130
- }.to raise_error(RuntimeError)
130
+ }.to raise_error(ArgumentError)
131
131
  end
132
132
 
133
133
  it 'should cause error if a negative argument is passed in' do
134
134
  expect {
135
135
  subject.change_row_font_color(-1, '0f0f0f')
136
- }.to raise_error(RuntimeError)
136
+ }.to raise_error(ArgumentError)
137
137
  end
138
138
 
139
139
  it 'should create a new row if it did not exist before' do
@@ -154,7 +154,7 @@ describe RubyXL::Worksheet do
154
154
  it 'should cause error if a negative argument is passed in' do
155
155
  expect {
156
156
  subject.change_row_italics(-1, false)
157
- }.to raise_error(RuntimeError)
157
+ }.to raise_error(ArgumentError)
158
158
  end
159
159
 
160
160
  it 'should create a new row if it did not exist before' do
@@ -175,7 +175,7 @@ describe RubyXL::Worksheet do
175
175
  it 'should cause error if a negative argument is passed in' do
176
176
  expect {
177
177
  subject.change_row_bold(-1, false)
178
- }.to raise_error(RuntimeError)
178
+ }.to raise_error(ArgumentError)
179
179
  end
180
180
 
181
181
  it 'should create a new row if it did not exist before' do
@@ -196,7 +196,7 @@ describe RubyXL::Worksheet do
196
196
  it 'should cause error if a negative argument is passed in' do
197
197
  expect {
198
198
  subject.change_row_underline(-1, false)
199
- }.to raise_error(RuntimeError)
199
+ }.to raise_error(ArgumentError)
200
200
  end
201
201
 
202
202
  it 'should create a new row if it did not exist before' do
@@ -217,7 +217,7 @@ describe RubyXL::Worksheet do
217
217
  it 'should cause error if a negative argument is passed in' do
218
218
  expect {
219
219
  subject.change_row_strikethrough(-1, false)
220
- }.to raise_error(RuntimeError)
220
+ }.to raise_error(ArgumentError)
221
221
  end
222
222
 
223
223
  it 'should create a new row if it did not exist before' do
@@ -242,7 +242,7 @@ describe RubyXL::Worksheet do
242
242
  it 'should cause error if a negative argument is passed in' do
243
243
  expect {
244
244
  subject.change_row_height(-1, 30)
245
- }.to raise_error(RuntimeError)
245
+ }.to raise_error(ArgumentError)
246
246
  end
247
247
 
248
248
  it 'should create a new row if it did not exist before' do
@@ -263,7 +263,7 @@ describe RubyXL::Worksheet do
263
263
  it 'should cause error if a negative argument is passed in' do
264
264
  expect {
265
265
  subject.change_row_horizontal_alignment(-1, 'center')
266
- }.to raise_error(RuntimeError)
266
+ }.to raise_error(ArgumentError)
267
267
  end
268
268
 
269
269
  it 'should create a new row if it did not exist before' do
@@ -284,7 +284,7 @@ describe RubyXL::Worksheet do
284
284
  it 'should cause error if a negative argument is passed in' do
285
285
  expect {
286
286
  subject.change_row_vertical_alignment(-1, 'center')
287
- }.to raise_error(RuntimeError)
287
+ }.to raise_error(ArgumentError)
288
288
  end
289
289
 
290
290
  it 'should create a new row if it did not exist before' do
@@ -299,7 +299,7 @@ describe RubyXL::Worksheet do
299
299
  it 'should cause error if a negative argument is passed in' do
300
300
  expect {
301
301
  subject.change_row_border(-1, :left, 'thin')
302
- }.to raise_error(RuntimeError)
302
+ }.to raise_error(ArgumentError)
303
303
  end
304
304
 
305
305
  it 'should create a new row if it did not exist before' do
@@ -350,7 +350,7 @@ describe RubyXL::Worksheet do
350
350
  it 'should cause error if a negative argument is passed in' do
351
351
  expect {
352
352
  subject.change_column_font_name(-1, 'Arial')
353
- }.to raise_error(RuntimeError)
353
+ }.to raise_error(ArgumentError)
354
354
  end
355
355
  end
356
356
 
@@ -364,13 +364,13 @@ describe RubyXL::Worksheet do
364
364
  it 'should cause an error if a string passed' do
365
365
  expect {
366
366
  subject.change_column_font_size(0, '20')
367
- }.to raise_error(RuntimeError)
367
+ }.to raise_error(ArgumentError)
368
368
  end
369
369
 
370
370
  it 'should cause error if a negative argument is passed in' do
371
371
  expect {
372
372
  subject.change_column_font_size(-1, 20)
373
- }.to raise_error(RuntimeError)
373
+ }.to raise_error(ArgumentError)
374
374
  end
375
375
  end
376
376
 
@@ -384,19 +384,19 @@ describe RubyXL::Worksheet do
384
384
  it 'should raise error if hex color code not passed' do
385
385
  expect {
386
386
  subject.change_column_font_color(0, 'G')
387
- }.to raise_error(RuntimeError)
387
+ }.to raise_error(ArgumentError)
388
388
  end
389
389
 
390
390
  it 'should raise error if hex color code includes # character' do
391
391
  expect {
392
392
  subject.change_column_font_color(0, '#FFF000')
393
- }.to raise_error(RuntimeError)
393
+ }.to raise_error(ArgumentError)
394
394
  end
395
395
 
396
396
  it 'should cause error if a negative argument is passed in' do
397
397
  expect {
398
398
  subject.change_column_font_color(-1, '0f0f0f')
399
- }.to raise_error(RuntimeError)
399
+ }.to raise_error(ArgumentError)
400
400
  end
401
401
  end
402
402
 
@@ -410,7 +410,7 @@ describe RubyXL::Worksheet do
410
410
  it 'should cause error if a negative argument is passed in' do
411
411
  expect {
412
412
  subject.change_column_italics(-1, false)
413
- }.to raise_error(RuntimeError)
413
+ }.to raise_error(ArgumentError)
414
414
  end
415
415
  end
416
416
 
@@ -424,7 +424,7 @@ describe RubyXL::Worksheet do
424
424
  it 'should cause error if a negative argument is passed in' do
425
425
  expect {
426
426
  subject.change_column_bold(-1, false)
427
- }.to raise_error(RuntimeError)
427
+ }.to raise_error(ArgumentError)
428
428
  end
429
429
  end
430
430
 
@@ -438,7 +438,7 @@ describe RubyXL::Worksheet do
438
438
  it 'should cause error if a negative argument is passed in' do
439
439
  expect {
440
440
  subject.change_column_underline(-1, false)
441
- }.to raise_error(RuntimeError)
441
+ }.to raise_error(ArgumentError)
442
442
  end
443
443
  end
444
444
 
@@ -452,7 +452,7 @@ describe RubyXL::Worksheet do
452
452
  it 'should cause error if a negative argument is passed in' do
453
453
  expect {
454
454
  subject.change_column_strikethrough(-1, false)
455
- }.to raise_error(RuntimeError)
455
+ }.to raise_error(ArgumentError)
456
456
  end
457
457
  end
458
458
 
@@ -465,7 +465,7 @@ describe RubyXL::Worksheet do
465
465
  it 'should cause error if a negative argument is passed in' do
466
466
  expect {
467
467
  subject.change_column_width_raw(-1, 10)
468
- }.to raise_error(RuntimeError)
468
+ }.to raise_error(ArgumentError)
469
469
  end
470
470
  end
471
471
 
@@ -473,13 +473,13 @@ describe RubyXL::Worksheet do
473
473
  it 'should raise error if hex color code not passed' do
474
474
  expect {
475
475
  subject.change_column_fill(0, 'G')
476
- }.to raise_error(RuntimeError)
476
+ }.to raise_error(ArgumentError)
477
477
  end
478
478
 
479
479
  it 'should raise error if hex color code includes # character' do
480
480
  expect {
481
481
  subject.change_column_fill(3, '#FFF000')
482
- }.to raise_error(RuntimeError)
482
+ }.to raise_error(ArgumentError)
483
483
  end
484
484
 
485
485
  it 'should make column and cell fill colors equal hex color code passed' do
@@ -491,7 +491,7 @@ describe RubyXL::Worksheet do
491
491
  it 'should cause error if a negative argument is passed in' do
492
492
  expect {
493
493
  subject.change_column_fill(-1, '111111')
494
- }.to raise_error(RuntimeError)
494
+ }.to raise_error(ArgumentError)
495
495
  end
496
496
  end
497
497
 
@@ -505,7 +505,7 @@ describe RubyXL::Worksheet do
505
505
  it 'should cause error if a negative argument is passed in' do
506
506
  expect {
507
507
  subject.change_column_horizontal_alignment(-1, 'center')
508
- }.to raise_error(RuntimeError)
508
+ }.to raise_error(ArgumentError)
509
509
  end
510
510
  end
511
511
 
@@ -519,7 +519,7 @@ describe RubyXL::Worksheet do
519
519
  it 'should cause error if a negative argument is passed in' do
520
520
  expect {
521
521
  subject.change_column_vertical_alignment(-1, 'center')
522
- }.to raise_error(RuntimeError)
522
+ }.to raise_error(ArgumentError)
523
523
  end
524
524
 
525
525
  it 'should set column width if column alignment is changed' do
@@ -538,7 +538,7 @@ describe RubyXL::Worksheet do
538
538
  it 'should cause error if a negative argument is passed in' do
539
539
  expect {
540
540
  subject.change_column_border(-1, :top, 'thin')
541
- }.to raise_error(RuntimeError)
541
+ }.to raise_error(ArgumentError)
542
542
  end
543
543
 
544
544
  it 'should cause column and cells within to have border at top of specified weight' do
@@ -633,10 +633,18 @@ describe RubyXL::Worksheet do
633
633
  expect(subject[11][11].formula.expression).to eq('B2')
634
634
  end
635
635
 
636
+ it 'should add boolean cells' do
637
+ subject.add_cell(0, 0, true)
638
+ subject.add_cell(1, 0, false)
639
+ expect(subject[0][0].datatype).to eq(RubyXL::DataType::BOOLEAN)
640
+ expect(subject[0][0].value).to eq(1)
641
+ expect(subject[1][0].value).to eq(0)
642
+ end
643
+
636
644
  it 'should cause error if a negative argument is passed in' do
637
645
  expect {
638
646
  subject.add_cell(-1, -1, '')
639
- }.to raise_error(RuntimeError)
647
+ }.to raise_error(ArgumentError)
640
648
  end
641
649
  end
642
650
 
@@ -664,7 +672,7 @@ describe RubyXL::Worksheet do
664
672
  it 'should cause error if a negative argument is passed in' do
665
673
  expect {
666
674
  subject.delete_row(-1)
667
- }.to raise_error(RuntimeError)
675
+ }.to raise_error(ArgumentError)
668
676
  end
669
677
 
670
678
  it 'should properly reindex the cells' do
@@ -823,7 +831,7 @@ describe RubyXL::Worksheet do
823
831
  it 'should cause error if a negative argument is passed in' do
824
832
  expect {
825
833
  subject.insert_row(-1)
826
- }.to raise_error(RuntimeError)
834
+ }.to raise_error(ArgumentError)
827
835
  end
828
836
 
829
837
  it 'should expand matrix to fit argument if nonnegative' do
@@ -943,7 +951,7 @@ describe RubyXL::Worksheet do
943
951
  it 'should cause error if negative argument is passed in' do
944
952
  expect {
945
953
  subject.delete_column(-1)
946
- }.to raise_error(RuntimeError)
954
+ }.to raise_error(ArgumentError)
947
955
  end
948
956
 
949
957
  it 'should properly reindex the cells' do
@@ -1106,7 +1114,7 @@ describe RubyXL::Worksheet do
1106
1114
  it 'should cause error if a negative argument is passed in' do
1107
1115
  expect {
1108
1116
  subject.insert_column(-1)
1109
- }.to raise_error(RuntimeError)
1117
+ }.to raise_error(ArgumentError)
1110
1118
  end
1111
1119
 
1112
1120
  it 'should properly reindex the cells' do
@@ -1218,13 +1226,13 @@ describe RubyXL::Worksheet do
1218
1226
  it 'should cause error if shift argument is specified which is not :right or :down' do
1219
1227
  expect {
1220
1228
  subject.insert_cell(0, 0, 'test', nil, :up)
1221
- }.to raise_error(RuntimeError)
1229
+ }.to raise_error(ArgumentError)
1222
1230
  end
1223
1231
 
1224
1232
  it 'should cause error if a negative argument is passed in' do
1225
1233
  expect {
1226
1234
  subject.insert_cell(-1, -1)
1227
- }.to raise_error(RuntimeError)
1235
+ }.to raise_error(ArgumentError)
1228
1236
  end
1229
1237
  end
1230
1238
 
@@ -1244,7 +1252,7 @@ describe RubyXL::Worksheet do
1244
1252
  it 'should cause error if a negative argument is passed in' do
1245
1253
  expect {
1246
1254
  subject.delete_cell(-1, -1)
1247
- }.to raise_error(RuntimeError)
1255
+ }.to raise_error(ArgumentError)
1248
1256
  end
1249
1257
 
1250
1258
  it 'should shift cells to the right of the deleted cell left if :left is specified' do
@@ -1271,7 +1279,7 @@ describe RubyXL::Worksheet do
1271
1279
  it 'should cause en error if an argument other than :left, :up, or nil is specified for shift' do
1272
1280
  expect {
1273
1281
  subject.delete_cell(0, 0, :down)
1274
- }.to raise_error(RuntimeError)
1282
+ }.to raise_error(ArgumentError)
1275
1283
  end
1276
1284
  end
1277
1285
 
@@ -1384,7 +1392,7 @@ describe RubyXL::Worksheet do
1384
1392
  it 'should cause error if a negative argument is passed in' do
1385
1393
  expect {
1386
1394
  subject.get_row_height(-1)
1387
- }.to raise_error(RuntimeError)
1395
+ }.to raise_error(ArgumentError)
1388
1396
  end
1389
1397
  end
1390
1398
 
@@ -1440,7 +1448,7 @@ describe RubyXL::Worksheet do
1440
1448
  it 'should cause error if a negative argument is passed in' do
1441
1449
  expect {
1442
1450
  subject.get_column_font_name(-1)
1443
- }.to raise_error(RuntimeError)
1451
+ }.to raise_error(ArgumentError)
1444
1452
  end
1445
1453
 
1446
1454
  it 'should return default font if a (nonnegative) column which does not exist is passed in' do
@@ -1457,7 +1465,7 @@ describe RubyXL::Worksheet do
1457
1465
  it 'should cause error if a negative argument is passed in' do
1458
1466
  expect {
1459
1467
  subject.get_column_font_size(-1)
1460
- }.to raise_error(RuntimeError)
1468
+ }.to raise_error(ArgumentError)
1461
1469
  end
1462
1470
 
1463
1471
  it 'should return default font size if a column which does not exist is passed in' do
@@ -1474,7 +1482,7 @@ describe RubyXL::Worksheet do
1474
1482
  it 'should cause error if a negative argument is passed in' do
1475
1483
  expect {
1476
1484
  subject.get_column_font_color(-1)
1477
- }.to raise_error(RuntimeError)
1485
+ }.to raise_error(ArgumentError)
1478
1486
  end
1479
1487
 
1480
1488
  it 'should return default color (000000) if a (nonnegative) column which does not exist is passed in' do
@@ -1495,7 +1503,7 @@ describe RubyXL::Worksheet do
1495
1503
  it 'should cause error if a negative argument is passed in' do
1496
1504
  expect {
1497
1505
  subject.is_column_italicized(-1)
1498
- }.to raise_error(RuntimeError)
1506
+ }.to raise_error(ArgumentError)
1499
1507
  end
1500
1508
 
1501
1509
  it 'should return nil if a (nonnegative) column which does not exist is passed in' do
@@ -1512,7 +1520,7 @@ describe RubyXL::Worksheet do
1512
1520
  it 'should cause error if a negative argument is passed in' do
1513
1521
  expect {
1514
1522
  subject.is_column_bolded(-1)
1515
- }.to raise_error(RuntimeError)
1523
+ }.to raise_error(ArgumentError)
1516
1524
  end
1517
1525
 
1518
1526
  it 'should return nil if a (nonnegative) column which does not exist is passed in' do
@@ -1529,7 +1537,7 @@ describe RubyXL::Worksheet do
1529
1537
  it 'should cause error if a negative argument is passed in' do
1530
1538
  expect {
1531
1539
  subject.is_column_underlined(-1)
1532
- }.to raise_error(RuntimeError)
1540
+ }.to raise_error(ArgumentError)
1533
1541
  end
1534
1542
 
1535
1543
  it 'should return nil if a (nonnegative) column which does not exist is passed in' do
@@ -1546,7 +1554,7 @@ describe RubyXL::Worksheet do
1546
1554
  it 'should cause error if a negative argument is passed in' do
1547
1555
  expect {
1548
1556
  subject.is_column_struckthrough(-1)
1549
- }.to raise_error(RuntimeError)
1557
+ }.to raise_error(ArgumentError)
1550
1558
  end
1551
1559
 
1552
1560
  it 'should return nil if a (nonnegative) column which does not exist is passed in' do
@@ -1571,7 +1579,7 @@ describe RubyXL::Worksheet do
1571
1579
  it 'should cause error if a negative argument is passed in' do
1572
1580
  expect {
1573
1581
  subject.get_column_width_raw(-1)
1574
- }.to raise_error(RuntimeError)
1582
+ }.to raise_error(ArgumentError)
1575
1583
  end
1576
1584
  end
1577
1585
 
@@ -1592,7 +1600,7 @@ describe RubyXL::Worksheet do
1592
1600
  it 'should cause error if a negative argument is passed in' do
1593
1601
  expect {
1594
1602
  subject.get_column_width(-1)
1595
- }.to raise_error(RuntimeError)
1603
+ }.to raise_error(ArgumentError)
1596
1604
  end
1597
1605
  end
1598
1606
 
@@ -1613,7 +1621,7 @@ describe RubyXL::Worksheet do
1613
1621
  it 'should cause error if a negative argument is passed in' do
1614
1622
  expect {
1615
1623
  subject.get_column_fill(-1)
1616
- }.to raise_error(RuntimeError)
1624
+ }.to raise_error(ArgumentError)
1617
1625
  end
1618
1626
  end
1619
1627
 
@@ -1629,7 +1637,7 @@ describe RubyXL::Worksheet do
1629
1637
  it 'should cause error if a negative argument is passed in' do
1630
1638
  expect {
1631
1639
  subject.get_column_alignment(-1, :horizontal)
1632
- }.to raise_error(RuntimeError)
1640
+ }.to raise_error(ArgumentError)
1633
1641
  end
1634
1642
 
1635
1643
  it 'should return correct horizontal alignment if it is set for that column' do
@@ -1650,7 +1658,7 @@ describe RubyXL::Worksheet do
1650
1658
  it 'should cause error if a negative argument is passed in' do
1651
1659
  expect {
1652
1660
  subject.get_column_alignment(-1, :vertical)
1653
- }.to raise_error(RuntimeError)
1661
+ }.to raise_error(ArgumentError)
1654
1662
  end
1655
1663
 
1656
1664
  it 'should return correct vertical alignment if it is set for that column' do
@@ -1672,7 +1680,7 @@ describe RubyXL::Worksheet do
1672
1680
  it 'should cause error if a negative argument is passed in' do
1673
1681
  expect {
1674
1682
  subject.get_column_border(-1, :diagonal)
1675
- }.to raise_error(RuntimeError)
1683
+ }.to raise_error(ArgumentError)
1676
1684
  end
1677
1685
 
1678
1686
  it 'should return nil if a column which does not exist is passed in' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyXL
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.38
4
+ version: 3.4.39
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vivek Bhagwat
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-06-15 00:00:00.000000000 Z
12
+ date: 2026-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -81,6 +81,20 @@ dependencies:
81
81
  - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
+ - !ruby/object:Gem::Dependency
85
+ name: git
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - "~>"
89
+ - !ruby/object:Gem::Version
90
+ version: '4.1'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - "~>"
96
+ - !ruby/object:Gem::Version
97
+ version: '4.1'
84
98
  - !ruby/object:Gem::Dependency
85
99
  name: rspec
86
100
  requirement: !ruby/object:Gem::Requirement
@@ -109,6 +123,20 @@ dependencies:
109
123
  - - ">="
110
124
  - !ruby/object:Gem::Version
111
125
  version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: stackprof
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
112
140
  - !ruby/object:Gem::Dependency
113
141
  name: ruby-prof
114
142
  requirement: !ruby/object:Gem::Requirement
@@ -504,8 +532,8 @@ files:
504
532
  - rdoc/RubyXL/PivotCaches.html
505
533
  - rdoc/RubyXL/PivotReference.html
506
534
  - rdoc/RubyXL/PivotReferences.html
535
+ - rdoc/RubyXL/PivotSelection.html
507
536
  - rdoc/RubyXL/PivotTableFile.html
508
- - rdoc/RubyXL/PivotTableSelection.html
509
537
  - rdoc/RubyXL/PresetGeometry.html
510
538
  - rdoc/RubyXL/PrintOptions.html
511
539
  - rdoc/RubyXL/PrinterSettingsFile.html
@@ -617,6 +645,7 @@ files:
617
645
  - spec/lib/rgb_color_spec.rb
618
646
  - spec/lib/stylesheet_spec.rb
619
647
  - spec/lib/text_spec.rb
648
+ - spec/lib/workbook_root_spec.rb
620
649
  - spec/lib/workbook_spec.rb
621
650
  - spec/lib/worksheet_spec.rb
622
651
  - spec/spec_helper.rb