rubyXL 2.5.2 → 2.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (332) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/Gemfile.lock +13 -11
  4. data/README.rdoc +3 -0
  5. data/VERSION +1 -1
  6. data/lib/rubyXL/cell.rb +29 -26
  7. data/lib/rubyXL/objects/data_validation.rb +0 -1
  8. data/lib/rubyXL/objects/workbook.rb +2 -1
  9. data/lib/rubyXL/objects/worksheet.rb +1 -1
  10. data/lib/rubyXL/worksheet.rb +3 -7
  11. data/rdoc/README_rdoc.html +6 -1
  12. data/rdoc/RubyXL.html +1 -1
  13. data/rdoc/RubyXL/AExtension.html +1 -1
  14. data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
  15. data/rdoc/RubyXL/AdjustHandleList.html +1 -1
  16. data/rdoc/RubyXL/Alignment.html +1 -1
  17. data/rdoc/RubyXL/AlternateContent.html +1 -1
  18. data/rdoc/RubyXL/AutoFilter.html +1 -1
  19. data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
  20. data/rdoc/RubyXL/BodyProperties.html +1 -1
  21. data/rdoc/RubyXL/BooleanNode.html +1 -1
  22. data/rdoc/RubyXL/BooleanValue.html +1 -1
  23. data/rdoc/RubyXL/Border.html +1 -1
  24. data/rdoc/RubyXL/BorderEdge.html +1 -1
  25. data/rdoc/RubyXL/Borders.html +1 -1
  26. data/rdoc/RubyXL/Break.html +1 -1
  27. data/rdoc/RubyXL/BreakList.html +1 -1
  28. data/rdoc/RubyXL/CT_AdjPoint2D.html +1 -1
  29. data/rdoc/RubyXL/CT_AlphaBiLevelEffect.html +1 -1
  30. data/rdoc/RubyXL/CT_AlphaModulateEffect.html +1 -1
  31. data/rdoc/RubyXL/CT_AlphaModulateFixedEffect.html +1 -1
  32. data/rdoc/RubyXL/CT_AlphaOutsetEffect.html +1 -1
  33. data/rdoc/RubyXL/CT_AlphaReplaceEffect.html +1 -1
  34. data/rdoc/RubyXL/CT_Backdrop.html +1 -1
  35. data/rdoc/RubyXL/CT_Bevel.html +1 -1
  36. data/rdoc/RubyXL/CT_BiLevelEffect.html +1 -1
  37. data/rdoc/RubyXL/CT_BlendEffect.html +1 -1
  38. data/rdoc/RubyXL/CT_Blip.html +1 -1
  39. data/rdoc/RubyXL/CT_BlipFillProperties.html +1 -1
  40. data/rdoc/RubyXL/CT_BlurEffect.html +1 -1
  41. data/rdoc/RubyXL/CT_Camera.html +1 -1
  42. data/rdoc/RubyXL/CT_Color.html +1 -1
  43. data/rdoc/RubyXL/CT_ColorChangeEffect.html +1 -1
  44. data/rdoc/RubyXL/CT_ColorMapping.html +1 -1
  45. data/rdoc/RubyXL/CT_ColorScheme.html +1 -1
  46. data/rdoc/RubyXL/CT_ColorSchemeAndMapping.html +1 -1
  47. data/rdoc/RubyXL/CT_ConnectionSite.html +1 -1
  48. data/rdoc/RubyXL/CT_ConnectionSiteList.html +1 -1
  49. data/rdoc/RubyXL/CT_DashStop.html +1 -1
  50. data/rdoc/RubyXL/CT_DashStopList.html +1 -1
  51. data/rdoc/RubyXL/CT_DefaultShapeDefinition.html +1 -1
  52. data/rdoc/RubyXL/CT_DuotoneEffect.html +1 -1
  53. data/rdoc/RubyXL/CT_EffectContainer.html +1 -1
  54. data/rdoc/RubyXL/CT_EffectList.html +1 -1
  55. data/rdoc/RubyXL/CT_EffectReference.html +1 -1
  56. data/rdoc/RubyXL/CT_EffectStyleItem.html +1 -1
  57. data/rdoc/RubyXL/CT_EffectStyleList.html +1 -1
  58. data/rdoc/RubyXL/CT_EmbeddedWAVAudioFile.html +1 -1
  59. data/rdoc/RubyXL/CT_FillEffect.html +1 -1
  60. data/rdoc/RubyXL/CT_FillOverlayEffect.html +1 -1
  61. data/rdoc/RubyXL/CT_FillStyleList.html +1 -1
  62. data/rdoc/RubyXL/CT_FlatText.html +1 -1
  63. data/rdoc/RubyXL/CT_FontCollection.html +1 -1
  64. data/rdoc/RubyXL/CT_FontReference.html +1 -1
  65. data/rdoc/RubyXL/CT_GeomGuideList.html +1 -1
  66. data/rdoc/RubyXL/CT_GlowEffect.html +1 -1
  67. data/rdoc/RubyXL/CT_GradientFillProperties.html +1 -1
  68. data/rdoc/RubyXL/CT_GradientStop.html +1 -1
  69. data/rdoc/RubyXL/CT_GradientStopList.html +1 -1
  70. data/rdoc/RubyXL/CT_HSLEffect.html +1 -1
  71. data/rdoc/RubyXL/CT_HslColor.html +1 -1
  72. data/rdoc/RubyXL/CT_Hyperlink.html +1 -1
  73. data/rdoc/RubyXL/CT_InnerShadowEffect.html +1 -1
  74. data/rdoc/RubyXL/CT_LightRig.html +1 -1
  75. data/rdoc/RubyXL/CT_LineEndProperties.html +1 -1
  76. data/rdoc/RubyXL/CT_LineJoinMiterProperties.html +1 -1
  77. data/rdoc/RubyXL/CT_LineProperties.html +1 -1
  78. data/rdoc/RubyXL/CT_LineStyleList.html +1 -1
  79. data/rdoc/RubyXL/CT_LinearShadeProperties.html +1 -1
  80. data/rdoc/RubyXL/CT_LuminanceEffect.html +1 -1
  81. data/rdoc/RubyXL/CT_ObjectStyleDefaults.html +1 -1
  82. data/rdoc/RubyXL/CT_OuterShadowEffect.html +1 -1
  83. data/rdoc/RubyXL/CT_Path2D.html +1 -1
  84. data/rdoc/RubyXL/CT_Path2DArcTo.html +1 -1
  85. data/rdoc/RubyXL/CT_Path2DCubicBezierTo.html +1 -1
  86. data/rdoc/RubyXL/CT_Path2DList.html +1 -1
  87. data/rdoc/RubyXL/CT_Path2DQuadBezierTo.html +1 -1
  88. data/rdoc/RubyXL/CT_Path2DTo.html +1 -1
  89. data/rdoc/RubyXL/CT_PathShadeProperties.html +1 -1
  90. data/rdoc/RubyXL/CT_PatternFillProperties.html +1 -1
  91. data/rdoc/RubyXL/CT_Point3D.html +1 -1
  92. data/rdoc/RubyXL/CT_PolarAdjustHandle.html +1 -1
  93. data/rdoc/RubyXL/CT_PresetColor.html +1 -1
  94. data/rdoc/RubyXL/CT_PresetLineDashProperties.html +1 -1
  95. data/rdoc/RubyXL/CT_PresetShadowEffect.html +1 -1
  96. data/rdoc/RubyXL/CT_PresetTextShape.html +1 -1
  97. data/rdoc/RubyXL/CT_ReflectionEffect.html +1 -1
  98. data/rdoc/RubyXL/CT_RelativeOffsetEffect.html +1 -1
  99. data/rdoc/RubyXL/CT_RelativeRect.html +1 -1
  100. data/rdoc/RubyXL/CT_SRgbColor.html +1 -1
  101. data/rdoc/RubyXL/CT_ScRgbColor.html +1 -1
  102. data/rdoc/RubyXL/CT_Scene3D.html +1 -1
  103. data/rdoc/RubyXL/CT_SchemeColor.html +1 -1
  104. data/rdoc/RubyXL/CT_Shape3D.html +1 -1
  105. data/rdoc/RubyXL/CT_ShapeStyle.html +1 -1
  106. data/rdoc/RubyXL/CT_SoftEdgesEffect.html +1 -1
  107. data/rdoc/RubyXL/CT_SphereCoords.html +1 -1
  108. data/rdoc/RubyXL/CT_StretchInfoProperties.html +1 -1
  109. data/rdoc/RubyXL/CT_StyleMatrix.html +1 -1
  110. data/rdoc/RubyXL/CT_StyleMatrixReference.html +1 -1
  111. data/rdoc/RubyXL/CT_SupplementalFont.html +1 -1
  112. data/rdoc/RubyXL/CT_SystemColor.html +1 -1
  113. data/rdoc/RubyXL/CT_TextAutonumberBullet.html +1 -1
  114. data/rdoc/RubyXL/CT_TextBlipBullet.html +1 -1
  115. data/rdoc/RubyXL/CT_TextCharBullet.html +1 -1
  116. data/rdoc/RubyXL/CT_TextCharacterProperties.html +1 -1
  117. data/rdoc/RubyXL/CT_TextFont.html +1 -1
  118. data/rdoc/RubyXL/CT_TextListStyle.html +1 -1
  119. data/rdoc/RubyXL/CT_TextNormalAutofit.html +1 -1
  120. data/rdoc/RubyXL/CT_TextParagraphProperties.html +1 -1
  121. data/rdoc/RubyXL/CT_TextSpacing.html +1 -1
  122. data/rdoc/RubyXL/CT_TextTabStop.html +1 -1
  123. data/rdoc/RubyXL/CT_TextTabStopList.html +1 -1
  124. data/rdoc/RubyXL/CT_TileInfoProperties.html +1 -1
  125. data/rdoc/RubyXL/CT_TintEffect.html +1 -1
  126. data/rdoc/RubyXL/CT_Transform2D.html +1 -1
  127. data/rdoc/RubyXL/CT_TransformEffect.html +1 -1
  128. data/rdoc/RubyXL/CT_Vector3D.html +1 -1
  129. data/rdoc/RubyXL/CT_XYAdjustHandle.html +1 -1
  130. data/rdoc/RubyXL/CalculationChain.html +1 -1
  131. data/rdoc/RubyXL/CalculationChainCell.html +1 -1
  132. data/rdoc/RubyXL/CalculationProperties.html +1 -1
  133. data/rdoc/RubyXL/Cell.html +1 -1
  134. data/rdoc/RubyXL/CellSmartTag.html +1 -1
  135. data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
  136. data/rdoc/RubyXL/CellSmartTags.html +1 -1
  137. data/rdoc/RubyXL/CellStyle.html +1 -1
  138. data/rdoc/RubyXL/CellStyleXFs.html +1 -1
  139. data/rdoc/RubyXL/CellStyles.html +1 -1
  140. data/rdoc/RubyXL/CellValue.html +1 -1
  141. data/rdoc/RubyXL/CellWatch.html +1 -1
  142. data/rdoc/RubyXL/CellWatches.html +1 -1
  143. data/rdoc/RubyXL/CellXFs.html +1 -1
  144. data/rdoc/RubyXL/Chartsheet.html +1 -1
  145. data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
  146. data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
  147. data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
  148. data/rdoc/RubyXL/ChartsheetView.html +1 -1
  149. data/rdoc/RubyXL/ChartsheetViews.html +1 -1
  150. data/rdoc/RubyXL/Color.html +1 -1
  151. data/rdoc/RubyXL/ColorFilter.html +1 -1
  152. data/rdoc/RubyXL/ColorScale.html +1 -1
  153. data/rdoc/RubyXL/ColorSet.html +1 -1
  154. data/rdoc/RubyXL/Colors.html +1 -1
  155. data/rdoc/RubyXL/ColumnRange.html +1 -1
  156. data/rdoc/RubyXL/ColumnRanges.html +1 -1
  157. data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
  158. data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
  159. data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
  160. data/rdoc/RubyXL/ContentTypeDefault.html +1 -1
  161. data/rdoc/RubyXL/ContentTypeOverride.html +1 -1
  162. data/rdoc/RubyXL/ContentTypes.html +1 -1
  163. data/rdoc/RubyXL/CoreProperties.html +1 -1
  164. data/rdoc/RubyXL/CustomColor.html +1 -1
  165. data/rdoc/RubyXL/CustomColorList.html +1 -1
  166. data/rdoc/RubyXL/CustomFilter.html +1 -1
  167. data/rdoc/RubyXL/CustomFilters.html +1 -1
  168. data/rdoc/RubyXL/CustomGeometry.html +1 -1
  169. data/rdoc/RubyXL/CustomProperties.html +1 -1
  170. data/rdoc/RubyXL/CustomProperty.html +1 -1
  171. data/rdoc/RubyXL/CustomSheetView.html +1 -1
  172. data/rdoc/RubyXL/CustomSheetViews.html +1 -1
  173. data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
  174. data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
  175. data/rdoc/RubyXL/DXF.html +1 -1
  176. data/rdoc/RubyXL/DXFs.html +1 -1
  177. data/rdoc/RubyXL/DataBar.html +1 -1
  178. data/rdoc/RubyXL/DataConsolidate.html +1 -1
  179. data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
  180. data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
  181. data/rdoc/RubyXL/DataType.html +1 -1
  182. data/rdoc/RubyXL/DataValidation.html +1 -1
  183. data/rdoc/RubyXL/DataValidations.html +1 -1
  184. data/rdoc/RubyXL/DateGroupItem.html +1 -1
  185. data/rdoc/RubyXL/DefinedName.html +1 -1
  186. data/rdoc/RubyXL/DefinedNames.html +1 -1
  187. data/rdoc/RubyXL/DocumentProperties.html +1 -1
  188. data/rdoc/RubyXL/DynamicFilter.html +1 -1
  189. data/rdoc/RubyXL/EmbeddedControl.html +1 -1
  190. data/rdoc/RubyXL/EmbeddedControls.html +1 -1
  191. data/rdoc/RubyXL/Extension.html +1 -1
  192. data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
  193. data/rdoc/RubyXL/Extents.html +1 -1
  194. data/rdoc/RubyXL/ExternalReference.html +1 -1
  195. data/rdoc/RubyXL/ExternalReferences.html +1 -1
  196. data/rdoc/RubyXL/ExtraColorSchemeList.html +1 -1
  197. data/rdoc/RubyXL/FieldItem.html +1 -1
  198. data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
  199. data/rdoc/RubyXL/FileSharing.html +1 -1
  200. data/rdoc/RubyXL/FileVersion.html +1 -1
  201. data/rdoc/RubyXL/Fill.html +1 -1
  202. data/rdoc/RubyXL/Fills.html +1 -1
  203. data/rdoc/RubyXL/FilterContainer.html +1 -1
  204. data/rdoc/RubyXL/FloatNode.html +1 -1
  205. data/rdoc/RubyXL/FloatValue.html +1 -1
  206. data/rdoc/RubyXL/Font.html +1 -1
  207. data/rdoc/RubyXL/FontScheme.html +1 -1
  208. data/rdoc/RubyXL/Fonts.html +1 -1
  209. data/rdoc/RubyXL/Formula.html +1 -1
  210. data/rdoc/RubyXL/FunctionGroup.html +1 -1
  211. data/rdoc/RubyXL/FunctionGroups.html +1 -1
  212. data/rdoc/RubyXL/GenericStorage.html +1 -1
  213. data/rdoc/RubyXL/GradientFill.html +1 -1
  214. data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
  215. data/rdoc/RubyXL/Hyperlink.html +1 -1
  216. data/rdoc/RubyXL/Hyperlinks.html +1 -1
  217. data/rdoc/RubyXL/IconFilter.html +1 -1
  218. data/rdoc/RubyXL/IconSet.html +1 -1
  219. data/rdoc/RubyXL/IgnoredError.html +1 -1
  220. data/rdoc/RubyXL/IgnoredErrors.html +1 -1
  221. data/rdoc/RubyXL/IndexedColors.html +1 -1
  222. data/rdoc/RubyXL/InputCells.html +1 -1
  223. data/rdoc/RubyXL/IntegerNode.html +1 -1
  224. data/rdoc/RubyXL/IntegerValue.html +1 -1
  225. data/rdoc/RubyXL/LegacyCell.html +61 -56
  226. data/rdoc/RubyXL/LegacyWorkbook.html +1 -1
  227. data/rdoc/RubyXL/LegacyWorksheet.html +82 -131
  228. data/rdoc/RubyXL/MRUColors.html +1 -1
  229. data/rdoc/RubyXL/MergedCell.html +1 -1
  230. data/rdoc/RubyXL/MergedCells.html +1 -1
  231. data/rdoc/RubyXL/NumFmt.html +1 -1
  232. data/rdoc/RubyXL/NumberFormat.html +1 -1
  233. data/rdoc/RubyXL/NumberFormats.html +1 -1
  234. data/rdoc/RubyXL/OLEObject.html +1 -1
  235. data/rdoc/RubyXL/OLEObjects.html +1 -1
  236. data/rdoc/RubyXL/OLESize.html +1 -1
  237. data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
  238. data/rdoc/RubyXL/OOXMLObject.html +1 -1
  239. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +1 -1
  240. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
  241. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +1 -1
  242. data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
  243. data/rdoc/RubyXL/Offset.html +1 -1
  244. data/rdoc/RubyXL/OutlineProperties.html +1 -1
  245. data/rdoc/RubyXL/PageMargins.html +1 -1
  246. data/rdoc/RubyXL/PageSetup.html +1 -1
  247. data/rdoc/RubyXL/PageSetupProperties.html +1 -1
  248. data/rdoc/RubyXL/Pane.html +1 -1
  249. data/rdoc/RubyXL/Parser.html +1 -1
  250. data/rdoc/RubyXL/PatternFill.html +1 -1
  251. data/rdoc/RubyXL/PhoneticProperties.html +1 -1
  252. data/rdoc/RubyXL/PhoneticRun.html +1 -1
  253. data/rdoc/RubyXL/PivotArea.html +1 -1
  254. data/rdoc/RubyXL/PivotCache.html +1 -1
  255. data/rdoc/RubyXL/PivotCaches.html +1 -1
  256. data/rdoc/RubyXL/PivotReference.html +1 -1
  257. data/rdoc/RubyXL/PivotReferences.html +1 -1
  258. data/rdoc/RubyXL/PivotTableSelection.html +1 -1
  259. data/rdoc/RubyXL/PresetGeometry.html +1 -1
  260. data/rdoc/RubyXL/PrintOptions.html +1 -1
  261. data/rdoc/RubyXL/ProtectedRange.html +1 -1
  262. data/rdoc/RubyXL/ProtectedRanges.html +1 -1
  263. data/rdoc/RubyXL/Protection.html +1 -1
  264. data/rdoc/RubyXL/RID.html +1 -1
  265. data/rdoc/RubyXL/RawOOXML.html +1 -1
  266. data/rdoc/RubyXL/Reference.html +1 -1
  267. data/rdoc/RubyXL/Relationship.html +1 -1
  268. data/rdoc/RubyXL/RichText.html +1 -1
  269. data/rdoc/RubyXL/RichTextRun.html +1 -1
  270. data/rdoc/RubyXL/RootRelationships.html +1 -1
  271. data/rdoc/RubyXL/Row.html +1 -1
  272. data/rdoc/RubyXL/RunProperties.html +1 -1
  273. data/rdoc/RubyXL/Scenario.html +1 -1
  274. data/rdoc/RubyXL/Scenarios.html +1 -1
  275. data/rdoc/RubyXL/Selection.html +1 -1
  276. data/rdoc/RubyXL/ShapeGuide.html +1 -1
  277. data/rdoc/RubyXL/ShapeTextRectangle.html +1 -1
  278. data/rdoc/RubyXL/SharedStringsTable.html +1 -1
  279. data/rdoc/RubyXL/Sheet.html +1 -1
  280. data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
  281. data/rdoc/RubyXL/SheetData.html +1 -1
  282. data/rdoc/RubyXL/Sheets.html +1 -1
  283. data/rdoc/RubyXL/SmartTagProperties.html +1 -1
  284. data/rdoc/RubyXL/SmartTagType.html +1 -1
  285. data/rdoc/RubyXL/SmartTagTypes.html +1 -1
  286. data/rdoc/RubyXL/SmartTags.html +1 -1
  287. data/rdoc/RubyXL/SortCondition.html +1 -1
  288. data/rdoc/RubyXL/SortState.html +1 -1
  289. data/rdoc/RubyXL/Sqref.html +1 -1
  290. data/rdoc/RubyXL/Stop.html +1 -1
  291. data/rdoc/RubyXL/StringNode.html +1 -1
  292. data/rdoc/RubyXL/StringNodeW3C.html +1 -1
  293. data/rdoc/RubyXL/StringValue.html +1 -1
  294. data/rdoc/RubyXL/Stylesheet.html +1 -1
  295. data/rdoc/RubyXL/TableParts.html +1 -1
  296. data/rdoc/RubyXL/TableStyle.html +1 -1
  297. data/rdoc/RubyXL/TableStyles.html +1 -1
  298. data/rdoc/RubyXL/Text.html +1 -1
  299. data/rdoc/RubyXL/Theme.html +1 -1
  300. data/rdoc/RubyXL/ThemeElements.html +1 -1
  301. data/rdoc/RubyXL/Top10.html +1 -1
  302. data/rdoc/RubyXL/Variant.html +1 -1
  303. data/rdoc/RubyXL/Vector.html +1 -1
  304. data/rdoc/RubyXL/VectorValue.html +1 -1
  305. data/rdoc/RubyXL/VisualProperties.html +1 -1
  306. data/rdoc/RubyXL/WebPublishObject.html +1 -1
  307. data/rdoc/RubyXL/WebPublishObjects.html +1 -1
  308. data/rdoc/RubyXL/WebPublishingItem.html +1 -1
  309. data/rdoc/RubyXL/WebPublishingItems.html +1 -1
  310. data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
  311. data/rdoc/RubyXL/Workbook.html +1 -1
  312. data/rdoc/RubyXL/WorkbookProperties.html +1 -1
  313. data/rdoc/RubyXL/WorkbookProtection.html +1 -1
  314. data/rdoc/RubyXL/WorkbookRelationships.html +1 -1
  315. data/rdoc/RubyXL/WorkbookView.html +1 -1
  316. data/rdoc/RubyXL/WorkbookViews.html +1 -1
  317. data/rdoc/RubyXL/Worksheet.html +1 -1
  318. data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
  319. data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
  320. data/rdoc/RubyXL/WorksheetProperties.html +1 -1
  321. data/rdoc/RubyXL/WorksheetProtection.html +1 -1
  322. data/rdoc/RubyXL/WorksheetView.html +1 -1
  323. data/rdoc/RubyXL/WorksheetViews.html +1 -1
  324. data/rdoc/RubyXL/XF.html +1 -1
  325. data/rdoc/created.rid +7 -7
  326. data/rdoc/index.html +2 -2
  327. data/rdoc/js/search_index.js +1 -1
  328. data/rdoc/table_of_contents.html +3 -2
  329. data/rubyXL.gemspec +5 -2
  330. data/spec/lib/cell_spec.rb +1 -1
  331. data/spec/lib/parser_spec.rb +9 -0
  332. metadata +15 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1868f2f48d4cb5ee9e4e7b8fc85adce5ddc1f758
4
- data.tar.gz: 3f2c7d3bbd2c6b44e8cc0964800a5eb73d197f43
3
+ metadata.gz: a6a9361899bbb99bf07a40430e935fec0bd5d184
4
+ data.tar.gz: 5d7f2b2e4462798506e4f0555ed57cd0856ac511
5
5
  SHA512:
6
- metadata.gz: 12fff8d8a13e2e69c6a949737758e1387d4ffe7ba1874e91b91fe01bc8b9d4a0e36a26c14d8cdc5e63dffcf1095d52ea19a4432ba14d737db8c486f03864e0e7
7
- data.tar.gz: 7f5d6f2352eb067afd6d88aae53fdeca1b39c5d913d136af4cb113e1abda4ded8455d10cf0d7908d70946dacdd40e2bfbdc5668add753a79628fb3d4a4786ed3
6
+ metadata.gz: 746a8de512c5cf6226430ea9d33c435b00311129a880159c6b48b833496667384ccdd38f02111843e1cdd38533cbdf5fb0b4e0e2f71be42b88f07a13a0c9d859
7
+ data.tar.gz: 3683e09f2856e21adf0615f7723188e3b4b4ba08aa8eca8d7e448219cb0465543503abeb522f9d947234226644adf8b215090932acbaa4ae95bff7bbe1154a83
data/Gemfile CHANGED
@@ -8,6 +8,7 @@ gem "rubyzip", ">= 1.0.0" , :require => 'zip'
8
8
  group :development do
9
9
  gem "shoulda", ">= 0"
10
10
  gem "bundler"
11
+ gem "rake"
11
12
  gem "jeweler"
12
13
  gem "simplecov", ">= 0"
13
14
  gem "rspec", ">= 1.3.4"
data/Gemfile.lock CHANGED
@@ -1,12 +1,12 @@
1
1
  GEM
2
2
  remote: http://rubygems.org/
3
3
  specs:
4
- activesupport (4.0.4)
4
+ activesupport (4.1.1)
5
5
  i18n (~> 0.6, >= 0.6.9)
6
- minitest (~> 4.2)
7
- multi_json (~> 1.3)
6
+ json (~> 1.7, >= 1.7.7)
7
+ minitest (~> 5.1)
8
8
  thread_safe (~> 0.1)
9
- tzinfo (~> 0.3.37)
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.0)
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 (4.7.5)
44
- multi_json (1.9.2)
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.2.2)
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.5.0)
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.2)
80
- tzinfo (0.3.39)
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.2
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
- # changes contents of cell, with formula option
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
- case data
148
- when Date then data = workbook.date_to_num(data)
149
- when Integer, Float then self.datatype = ''
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 += " =#{@formula}" if @formula
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 do |sheet|
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
- end
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, :sheet_id => sheet.sheet_id || (i + 1),
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
@@ -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
- @workbook = params[:workbook]
10
- @sheet_name = params[:sheet_name]
11
- @sheet_id = params[:sheet_id]
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
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>README - rubyXL 2.5.2</title>
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(&#39;Sheet2&#39;)</pre>
229
230
 
231
+ <h4 id="label-Renaming+Worksheets">Renaming Worksheets<span><a href="#label-Renaming+Worksheets">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
232
+
233
+ <pre>worksheet.sheet_name = &#39;Cool New Name&#39;</pre>
234
+
230
235
  <h4 id="label-Adding+Cells">Adding Cells<span><a href="#label-Adding+Cells">&para;</a> <a href="#documentation">&uarr;</a></span></h4>
231
236
 
232
237
  <pre>worksheet.add_cell(0, 0, &#39;A1&#39;) # Sets cell A1 to string &quot;A1&quot;
data/rdoc/RubyXL.html CHANGED
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL - rubyXL 2.5.2</title>
7
+ <title>module RubyXL - rubyXL 2.5.3</title>
8
8
 
9
9
  <link href="./fonts.css" rel="stylesheet">
10
10
  <link href="./rdoc.css" rel="stylesheet">
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AExtension - rubyXL 2.5.2</title>
7
+ <title>class RubyXL::AExtension - rubyXL 2.5.3</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AExtensionStorageArea - rubyXL 2.5.2</title>
7
+ <title>class RubyXL::AExtensionStorageArea - rubyXL 2.5.3</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AdjustHandleList - rubyXL 2.5.2</title>
7
+ <title>class RubyXL::AdjustHandleList - rubyXL 2.5.3</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::Alignment - rubyXL 2.5.2</title>
7
+ <title>class RubyXL::Alignment - rubyXL 2.5.3</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AlternateContent - rubyXL 2.5.2</title>
7
+ <title>class RubyXL::AlternateContent - rubyXL 2.5.3</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AutoFilter - rubyXL 2.5.2</title>
7
+ <title>class RubyXL::AutoFilter - rubyXL 2.5.3</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::AutoFilterColumn - rubyXL 2.5.2</title>
7
+ <title>class RubyXL::AutoFilterColumn - rubyXL 2.5.3</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>class RubyXL::BodyProperties - rubyXL 2.5.2</title>
7
+ <title>class RubyXL::BodyProperties - rubyXL 2.5.3</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">