rubyXL 2.3.2 → 2.3.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/VERSION +1 -1
  4. data/lib/rubyXL/cell.rb +0 -10
  5. data/lib/rubyXL/objects/relationships.rb +46 -14
  6. data/lib/rubyXL/objects/sheet_data.rb +14 -2
  7. data/lib/rubyXL/parser.rb +1 -0
  8. data/lib/rubyXL/workbook.rb +7 -6
  9. data/rdoc/README_rdoc.html +27 -27
  10. data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
  11. data/rdoc/RubyXL/Alignment.html +1 -1
  12. data/rdoc/RubyXL/AlternateContent.html +1 -1
  13. data/rdoc/RubyXL/AutoFilter.html +1 -1
  14. data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
  15. data/rdoc/RubyXL/BooleanNode.html +1 -1
  16. data/rdoc/RubyXL/BooleanValue.html +1 -1
  17. data/rdoc/RubyXL/Border.html +1 -1
  18. data/rdoc/RubyXL/BorderEdge.html +1 -1
  19. data/rdoc/RubyXL/Borders.html +1 -1
  20. data/rdoc/RubyXL/Break.html +1 -1
  21. data/rdoc/RubyXL/BreakList.html +1 -1
  22. data/rdoc/RubyXL/CalculationChain.html +2 -2
  23. data/rdoc/RubyXL/CalculationChainCell.html +1 -1
  24. data/rdoc/RubyXL/CalculationProperties.html +1 -1
  25. data/rdoc/RubyXL/Cell.html +78 -5
  26. data/rdoc/RubyXL/CellSmartTag.html +1 -1
  27. data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
  28. data/rdoc/RubyXL/CellSmartTags.html +1 -1
  29. data/rdoc/RubyXL/CellStyle.html +1 -1
  30. data/rdoc/RubyXL/CellStyleXFs.html +1 -1
  31. data/rdoc/RubyXL/CellStyles.html +1 -1
  32. data/rdoc/RubyXL/CellValue.html +1 -1
  33. data/rdoc/RubyXL/CellWatch.html +1 -1
  34. data/rdoc/RubyXL/CellWatches.html +1 -1
  35. data/rdoc/RubyXL/CellXFs.html +1 -1
  36. data/rdoc/RubyXL/Chartsheet.html +1 -1
  37. data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
  38. data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
  39. data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
  40. data/rdoc/RubyXL/ChartsheetView.html +1 -1
  41. data/rdoc/RubyXL/ChartsheetViews.html +1 -1
  42. data/rdoc/RubyXL/Color.html +3 -3
  43. data/rdoc/RubyXL/ColorFilter.html +1 -1
  44. data/rdoc/RubyXL/ColorScale.html +1 -1
  45. data/rdoc/RubyXL/ColorScheme.html +1 -1
  46. data/rdoc/RubyXL/ColorSet.html +1 -1
  47. data/rdoc/RubyXL/Colors.html +1 -1
  48. data/rdoc/RubyXL/ColumnRange.html +1 -1
  49. data/rdoc/RubyXL/ColumnRanges.html +1 -1
  50. data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
  51. data/rdoc/RubyXL/ConditionalFormatting.html +1 -1
  52. data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
  53. data/rdoc/RubyXL/CustomFilter.html +1 -1
  54. data/rdoc/RubyXL/CustomFilters.html +1 -1
  55. data/rdoc/RubyXL/CustomProperties.html +1 -1
  56. data/rdoc/RubyXL/CustomProperty.html +1 -1
  57. data/rdoc/RubyXL/CustomSheetView.html +1 -1
  58. data/rdoc/RubyXL/CustomSheetViews.html +1 -1
  59. data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
  60. data/rdoc/RubyXL/CustomWorkbookViews.html +1 -1
  61. data/rdoc/RubyXL/DXF.html +1 -1
  62. data/rdoc/RubyXL/DXFs.html +1 -1
  63. data/rdoc/RubyXL/DataBar.html +1 -1
  64. data/rdoc/RubyXL/DataConsolidate.html +1 -1
  65. data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
  66. data/rdoc/RubyXL/DataConsolidationReferences.html +1 -1
  67. data/rdoc/RubyXL/DataValidation.html +1 -1
  68. data/rdoc/RubyXL/DataValidations.html +1 -1
  69. data/rdoc/RubyXL/DateGroupItem.html +1 -1
  70. data/rdoc/RubyXL/DefinedName.html +1 -1
  71. data/rdoc/RubyXL/DefinedNames.html +1 -1
  72. data/rdoc/RubyXL/DocumentProperties.html +6 -6
  73. data/rdoc/RubyXL/DynamicFilter.html +1 -1
  74. data/rdoc/RubyXL/EmbeddedControl.html +1 -1
  75. data/rdoc/RubyXL/EmbeddedControls.html +1 -1
  76. data/rdoc/RubyXL/Extension.html +1 -1
  77. data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
  78. data/rdoc/RubyXL/ExternalReference.html +1 -1
  79. data/rdoc/RubyXL/ExternalReferences.html +1 -1
  80. data/rdoc/RubyXL/FieldItem.html +1 -1
  81. data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
  82. data/rdoc/RubyXL/FileSharing.html +1 -1
  83. data/rdoc/RubyXL/FileVersion.html +1 -1
  84. data/rdoc/RubyXL/Fill.html +1 -1
  85. data/rdoc/RubyXL/Fills.html +1 -1
  86. data/rdoc/RubyXL/FilterContainer.html +1 -1
  87. data/rdoc/RubyXL/FloatNode.html +1 -1
  88. data/rdoc/RubyXL/FloatValue.html +1 -1
  89. data/rdoc/RubyXL/Font.html +1 -1
  90. data/rdoc/RubyXL/FontScheme.html +1 -1
  91. data/rdoc/RubyXL/Fonts.html +1 -1
  92. data/rdoc/RubyXL/FormatScheme.html +1 -1
  93. data/rdoc/RubyXL/Formula.html +1 -1
  94. data/rdoc/RubyXL/FunctionGroup.html +1 -1
  95. data/rdoc/RubyXL/FunctionGroups.html +1 -1
  96. data/rdoc/RubyXL/GenericStorage.html +4 -4
  97. data/rdoc/RubyXL/GradientFill.html +1 -1
  98. data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
  99. data/rdoc/RubyXL/Hyperlink.html +1 -1
  100. data/rdoc/RubyXL/Hyperlinks.html +1 -1
  101. data/rdoc/RubyXL/IconFilter.html +1 -1
  102. data/rdoc/RubyXL/IconSet.html +1 -1
  103. data/rdoc/RubyXL/IgnoredError.html +1 -1
  104. data/rdoc/RubyXL/IgnoredErrors.html +1 -1
  105. data/rdoc/RubyXL/IndexedColors.html +1 -1
  106. data/rdoc/RubyXL/InputCells.html +1 -1
  107. data/rdoc/RubyXL/IntegerNode.html +1 -1
  108. data/rdoc/RubyXL/IntegerValue.html +1 -1
  109. data/rdoc/RubyXL/LegacyCell.html +57 -94
  110. data/rdoc/RubyXL/LegacyWorkbook.html +53 -38
  111. data/rdoc/RubyXL/LegacyWorksheet.html +29 -29
  112. data/rdoc/RubyXL/MRUColors.html +1 -1
  113. data/rdoc/RubyXL/MergedCell.html +1 -1
  114. data/rdoc/RubyXL/MergedCells.html +1 -1
  115. data/rdoc/RubyXL/NumFmt.html +1 -1
  116. data/rdoc/RubyXL/NumberFormat.html +2 -2
  117. data/rdoc/RubyXL/NumberFormats.html +1 -1
  118. data/rdoc/RubyXL/OLEObject.html +1 -1
  119. data/rdoc/RubyXL/OLEObjects.html +1 -1
  120. data/rdoc/RubyXL/OLESize.html +1 -1
  121. data/rdoc/RubyXL/OOXMLContainerObject.html +1 -1
  122. data/rdoc/RubyXL/OOXMLObject.html +1 -1
  123. data/rdoc/RubyXL/OOXMLObjectClassMethods.html +12 -12
  124. data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +1 -1
  125. data/rdoc/RubyXL/OOXMLRelationshipsFile.html +238 -0
  126. data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
  127. data/rdoc/RubyXL/OutlineProperties.html +1 -1
  128. data/rdoc/RubyXL/PageMargins.html +1 -1
  129. data/rdoc/RubyXL/PageSetup.html +1 -1
  130. data/rdoc/RubyXL/PageSetupProperties.html +1 -1
  131. data/rdoc/RubyXL/Pane.html +1 -1
  132. data/rdoc/RubyXL/Parser.html +16 -15
  133. data/rdoc/RubyXL/PatternFill.html +1 -1
  134. data/rdoc/RubyXL/PhoneticProperties.html +1 -1
  135. data/rdoc/RubyXL/PhoneticRun.html +1 -1
  136. data/rdoc/RubyXL/PivotArea.html +1 -1
  137. data/rdoc/RubyXL/PivotCache.html +1 -1
  138. data/rdoc/RubyXL/PivotCaches.html +1 -1
  139. data/rdoc/RubyXL/PivotReference.html +1 -1
  140. data/rdoc/RubyXL/PivotReferences.html +1 -1
  141. data/rdoc/RubyXL/PivotTableSelection.html +1 -1
  142. data/rdoc/RubyXL/PrintOptions.html +1 -1
  143. data/rdoc/RubyXL/ProtectedRange.html +1 -1
  144. data/rdoc/RubyXL/ProtectedRanges.html +1 -1
  145. data/rdoc/RubyXL/Protection.html +1 -1
  146. data/rdoc/RubyXL/RID.html +1 -1
  147. data/rdoc/RubyXL/RawOOXML.html +1 -1
  148. data/rdoc/RubyXL/Reference.html +5 -5
  149. data/rdoc/RubyXL/Relationship.html +1 -1
  150. data/rdoc/RubyXL/RichText.html +1 -1
  151. data/rdoc/RubyXL/RichTextRun.html +1 -1
  152. data/rdoc/RubyXL/RootRelationships.html +105 -0
  153. data/rdoc/RubyXL/Row.html +1 -1
  154. data/rdoc/RubyXL/RunProperties.html +1 -1
  155. data/rdoc/RubyXL/Scenario.html +1 -1
  156. data/rdoc/RubyXL/Scenarios.html +1 -1
  157. data/rdoc/RubyXL/Selection.html +1 -1
  158. data/rdoc/RubyXL/SharedStringsTable.html +2 -2
  159. data/rdoc/RubyXL/Sheet.html +1 -1
  160. data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
  161. data/rdoc/RubyXL/SheetData.html +1 -1
  162. data/rdoc/RubyXL/Sheets.html +1 -1
  163. data/rdoc/RubyXL/SmartTagProperties.html +1 -1
  164. data/rdoc/RubyXL/SmartTagType.html +1 -1
  165. data/rdoc/RubyXL/SmartTagTypes.html +1 -1
  166. data/rdoc/RubyXL/SmartTags.html +1 -1
  167. data/rdoc/RubyXL/SortCondition.html +1 -1
  168. data/rdoc/RubyXL/SortState.html +1 -1
  169. data/rdoc/RubyXL/Sqref.html +2 -2
  170. data/rdoc/RubyXL/Stop.html +1 -1
  171. data/rdoc/RubyXL/StringNode.html +1 -1
  172. data/rdoc/RubyXL/StringValue.html +1 -1
  173. data/rdoc/RubyXL/Stylesheet.html +1 -1
  174. data/rdoc/RubyXL/TableParts.html +1 -1
  175. data/rdoc/RubyXL/TableStyle.html +1 -1
  176. data/rdoc/RubyXL/TableStyles.html +1 -1
  177. data/rdoc/RubyXL/Text.html +2 -2
  178. data/rdoc/RubyXL/Theme.html +1 -1
  179. data/rdoc/RubyXL/ThemeElements.html +1 -1
  180. data/rdoc/RubyXL/Top10.html +1 -1
  181. data/rdoc/RubyXL/Variant.html +1 -1
  182. data/rdoc/RubyXL/Vector.html +1 -1
  183. data/rdoc/RubyXL/VectorValue.html +1 -1
  184. data/rdoc/RubyXL/WebPublishObject.html +1 -1
  185. data/rdoc/RubyXL/WebPublishObjects.html +1 -1
  186. data/rdoc/RubyXL/WebPublishingItem.html +1 -1
  187. data/rdoc/RubyXL/WebPublishingItems.html +1 -1
  188. data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
  189. data/rdoc/RubyXL/Workbook.html +1 -1
  190. data/rdoc/RubyXL/WorkbookProperties.html +1 -1
  191. data/rdoc/RubyXL/WorkbookProtection.html +1 -1
  192. data/rdoc/RubyXL/WorkbookRelationships.html +2 -213
  193. data/rdoc/RubyXL/WorkbookView.html +1 -1
  194. data/rdoc/RubyXL/WorkbookViews.html +1 -1
  195. data/rdoc/RubyXL/Worksheet.html +1 -1
  196. data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
  197. data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
  198. data/rdoc/RubyXL/WorksheetProperties.html +1 -1
  199. data/rdoc/RubyXL/WorksheetProtection.html +1 -1
  200. data/rdoc/RubyXL/WorksheetView.html +1 -1
  201. data/rdoc/RubyXL/WorksheetViews.html +1 -1
  202. data/rdoc/RubyXL/Writer/ContentTypesWriter.html +53 -53
  203. data/rdoc/RubyXL/Writer/CoreWriter.html +12 -12
  204. data/rdoc/RubyXL/Writer/GenericWriter.html +5 -5
  205. data/rdoc/RubyXL/Writer/StylesWriter.html +2 -2
  206. data/rdoc/RubyXL/Writer/ThemeWriter.html +5 -5
  207. data/rdoc/RubyXL/Writer/WorkbookWriter.html +21 -21
  208. data/rdoc/RubyXL/Writer.html +1 -1
  209. data/rdoc/RubyXL/XF.html +1 -1
  210. data/rdoc/RubyXL.html +1 -1
  211. data/rdoc/created.rid +40 -41
  212. data/rdoc/index.html +4 -6
  213. data/rdoc/js/search_index.js +1 -1
  214. data/rdoc/table_of_contents.html +80 -93
  215. data/rubyXL.gemspec +5 -5
  216. metadata +4 -4
  217. data/lib/rubyXL/writer/root_rels_writer.rb +0 -17
  218. data/rdoc/RubyXL/Writer/RootRelsWriter.html +0 -193
@@ -4,7 +4,7 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
 
7
- <title>module RubyXL::LegacyWorkbook - rubyXL 2.3.0</title>
7
+ <title>module RubyXL::LegacyWorkbook - rubyXL 2.3.3</title>
8
8
 
9
9
  <link href="../fonts.css" rel="stylesheet">
10
10
  <link href="../rdoc.css" rel="stylesheet">
@@ -402,6 +402,19 @@
402
402
 
403
403
 
404
404
 
405
+ </div>
406
+ </div>
407
+
408
+ <div id="attribute-i-root_relationship_container" class="method-detail">
409
+ <div class="method-heading attribute-method-heading">
410
+ <span class="method-name">root_relationship_container</span><span
411
+ class="attribute-access-type">[RW]</span>
412
+ </div>
413
+
414
+ <div class="method-description">
415
+
416
+
417
+
405
418
  </div>
406
419
  </div>
407
420
 
@@ -504,14 +517,14 @@
504
517
 
505
518
 
506
519
  <div class="method-source-code" id="new-source">
507
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 25</span>
520
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 24</span>
508
521
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">worksheets</span>=[], <span class="ruby-identifier">filepath</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">creator</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">modifier</span>=<span class="ruby-keyword">nil</span>, <span class="ruby-identifier">created_at</span>=<span class="ruby-keyword">nil</span>,
509
- <span class="ruby-identifier">company</span>=<span class="ruby-string">''</span>, <span class="ruby-identifier">application</span>=<span class="ruby-constant">APPLICATION</span>,
522
+ <span class="ruby-identifier">company</span>=<span class="ruby-string">&#39;&#39;</span>, <span class="ruby-identifier">application</span>=<span class="ruby-constant">APPLICATION</span>,
510
523
  <span class="ruby-identifier">appversion</span>=<span class="ruby-constant">APPVERSION</span>, <span class="ruby-identifier">date1904</span>=<span class="ruby-value">0</span>)
511
524
  <span class="ruby-keyword">super</span>()
512
525
 
513
526
  <span class="ruby-comment"># Order of sheets in the +worksheets+ array corresponds to the order of pages in Excel UI.</span>
514
- <span class="ruby-comment"># SheetId's, rId's, etc. are completely unrelated to ordering.</span>
527
+ <span class="ruby-comment"># SheetId&#39;s, rId&#39;s, etc. are completely unrelated to ordering.</span>
515
528
  <span class="ruby-ivar">@worksheets</span> = <span class="ruby-identifier">worksheets</span>
516
529
  <span class="ruby-identifier">add_worksheet</span> <span class="ruby-keyword">if</span> <span class="ruby-ivar">@worksheets</span>.<span class="ruby-identifier">empty?</span>
517
530
 
@@ -519,23 +532,24 @@
519
532
  <span class="ruby-ivar">@creator</span> = <span class="ruby-identifier">creator</span>
520
533
  <span class="ruby-ivar">@modifier</span> = <span class="ruby-identifier">modifier</span>
521
534
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">date1904</span> = <span class="ruby-identifier">date1904</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">0</span>
522
- <span class="ruby-ivar">@media</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'media'</span>)).<span class="ruby-identifier">binary</span>
523
- <span class="ruby-ivar">@external_links</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'externalLinks'</span>))
524
- <span class="ruby-ivar">@external_links_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'externalLinks'</span>, <span class="ruby-string">'_rels'</span>))
525
- <span class="ruby-ivar">@drawings</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'drawings'</span>))
526
- <span class="ruby-ivar">@drawings_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'drawings'</span>, <span class="ruby-string">'_rels'</span>))
527
- <span class="ruby-ivar">@charts</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'charts'</span>))
528
- <span class="ruby-ivar">@chart_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'charts'</span>, <span class="ruby-string">'_rels'</span>))
529
- <span class="ruby-ivar">@worksheet_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'worksheets'</span>, <span class="ruby-string">'_rels'</span>))
530
- <span class="ruby-ivar">@chartsheet_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'chartsheets'</span>, <span class="ruby-string">'_rels'</span>))
531
- <span class="ruby-ivar">@theme</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'theme'</span>))
532
- <span class="ruby-ivar">@printer_settings</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">'xl'</span>, <span class="ruby-string">'printerSettings'</span>)).<span class="ruby-identifier">binary</span>
533
- <span class="ruby-ivar">@macros</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">'xl'</span>).<span class="ruby-identifier">binary</span>
535
+ <span class="ruby-ivar">@media</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;media&#39;</span>)).<span class="ruby-identifier">binary</span>
536
+ <span class="ruby-ivar">@external_links</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;externalLinks&#39;</span>))
537
+ <span class="ruby-ivar">@external_links_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;externalLinks&#39;</span>, <span class="ruby-string">&#39;_rels&#39;</span>))
538
+ <span class="ruby-ivar">@drawings</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;drawings&#39;</span>))
539
+ <span class="ruby-ivar">@drawings_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;drawings&#39;</span>, <span class="ruby-string">&#39;_rels&#39;</span>))
540
+ <span class="ruby-ivar">@charts</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;charts&#39;</span>))
541
+ <span class="ruby-ivar">@chart_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;charts&#39;</span>, <span class="ruby-string">&#39;_rels&#39;</span>))
542
+ <span class="ruby-ivar">@worksheet_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;worksheets&#39;</span>, <span class="ruby-string">&#39;_rels&#39;</span>))
543
+ <span class="ruby-ivar">@chartsheet_rels</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;chartsheets&#39;</span>, <span class="ruby-string">&#39;_rels&#39;</span>))
544
+ <span class="ruby-ivar">@theme</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;theme&#39;</span>))
545
+ <span class="ruby-ivar">@printer_settings</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&#39;xl&#39;</span>, <span class="ruby-string">&#39;printerSettings&#39;</span>)).<span class="ruby-identifier">binary</span>
546
+ <span class="ruby-ivar">@macros</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">GenericStorage</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">&#39;xl&#39;</span>).<span class="ruby-identifier">binary</span>
534
547
 
535
548
  <span class="ruby-ivar">@shared_strings_container</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">SharedStringsTable</span>.<span class="ruby-identifier">new</span>
536
549
  <span class="ruby-ivar">@stylesheet</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Stylesheet</span>.<span class="ruby-identifier">default</span>
537
550
  <span class="ruby-ivar">@document_properties</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">DocumentProperties</span>.<span class="ruby-identifier">new</span>
538
551
  <span class="ruby-ivar">@relationship_container</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkbookRelationships</span>.<span class="ruby-identifier">new</span>
552
+ <span class="ruby-ivar">@root_relationship_container</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">RootRelationships</span>.<span class="ruby-identifier">new</span>
539
553
  <span class="ruby-ivar">@calculation_chain</span> = <span class="ruby-keyword">nil</span>
540
554
 
541
555
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">company</span> = <span class="ruby-identifier">company</span>
@@ -543,9 +557,9 @@
543
557
  <span class="ruby-keyword">self</span>.<span class="ruby-identifier">appversion</span> = <span class="ruby-identifier">appversion</span>
544
558
 
545
559
  <span class="ruby-keyword">begin</span>
546
- <span class="ruby-ivar">@created_at</span> = <span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">created_at</span>).<span class="ruby-identifier">strftime</span>(<span class="ruby-string">'%Y-%m-%dT%TZ'</span>)
560
+ <span class="ruby-ivar">@created_at</span> = <span class="ruby-constant">DateTime</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">created_at</span>).<span class="ruby-identifier">strftime</span>(<span class="ruby-string">&#39;%Y-%m-%dT%TZ&#39;</span>)
547
561
  <span class="ruby-keyword">rescue</span>
548
- <span class="ruby-ivar">@created_at</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-string">'%Y-%m-%dT%TZ'</span>)
562
+ <span class="ruby-ivar">@created_at</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">strftime</span>(<span class="ruby-string">&#39;%Y-%m-%dT%TZ&#39;</span>)
549
563
  <span class="ruby-keyword">end</span>
550
564
  <span class="ruby-ivar">@modified_at</span> = <span class="ruby-ivar">@created_at</span>
551
565
  <span class="ruby-keyword">end</span></pre>
@@ -667,7 +681,7 @@
667
681
 
668
682
 
669
683
  <div class="method-source-code" id="borders-source">
670
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 259</span>
684
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 260</span>
671
685
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">borders</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
672
686
  <span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">borders</span>
673
687
  <span class="ruby-keyword">end</span></pre>
@@ -700,7 +714,7 @@
700
714
 
701
715
 
702
716
  <div class="method-source-code" id="cell_xfs-source">
703
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 247</span>
717
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 248</span>
704
718
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">cell_xfs</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
705
719
  <span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">cell_xfs</span>
706
720
  <span class="ruby-keyword">end</span></pre>
@@ -733,9 +747,9 @@
733
747
 
734
748
 
735
749
  <div class="method-source-code" id="date_to_num-source">
736
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 145</span>
750
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 146</span>
737
751
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">date_to_num</span>(<span class="ruby-identifier">date</span>)
738
- <span class="ruby-identifier">date</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">date</span>.<span class="ruby-identifier">ajd</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>().<span class="ruby-identifier">ajd</span>).<span class="ruby-identifier">to_i</span>
752
+ <span class="ruby-identifier">date</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">date</span>.<span class="ruby-identifier">ajd</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">base_date</span>().<span class="ruby-identifier">ajd</span>).<span class="ruby-identifier">to_f</span>
739
753
  <span class="ruby-keyword">end</span></pre>
740
754
  </div>
741
755
 
@@ -799,7 +813,7 @@
799
813
 
800
814
 
801
815
  <div class="method-source-code" id="fills-source">
802
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 255</span>
816
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 256</span>
803
817
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">fills</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
804
818
  <span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fills</span>
805
819
  <span class="ruby-keyword">end</span></pre>
@@ -832,7 +846,7 @@
832
846
 
833
847
 
834
848
  <div class="method-source-code" id="fonts-source">
835
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 251</span>
849
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 252</span>
836
850
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">fonts</span> <span class="ruby-comment"># Stylesheet should be pre-filled with defaults on initialize()</span>
837
851
  <span class="ruby-identifier">stylesheet</span>.<span class="ruby-identifier">fonts</span>
838
852
  <span class="ruby-keyword">end</span></pre>
@@ -865,12 +879,12 @@
865
879
 
866
880
 
867
881
  <div class="method-source-code" id="get_fill_color-source">
868
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 153</span>
882
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 154</span>
869
883
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">get_fill_color</span>(<span class="ruby-identifier">xf</span>)
870
884
  <span class="ruby-identifier">fill</span> = <span class="ruby-identifier">fills</span>[<span class="ruby-identifier">xf</span>.<span class="ruby-identifier">fill_id</span>]
871
885
  <span class="ruby-identifier">pattern</span> = <span class="ruby-identifier">fill</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">fill</span>.<span class="ruby-identifier">pattern_fill</span>
872
886
  <span class="ruby-identifier">color</span> = <span class="ruby-identifier">pattern</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">pattern</span>.<span class="ruby-identifier">fg_color</span>
873
- <span class="ruby-identifier">color</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">color</span>.<span class="ruby-identifier">rgb</span> <span class="ruby-operator">||</span> <span class="ruby-string">'ffffff'</span>
887
+ <span class="ruby-identifier">color</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">color</span>.<span class="ruby-identifier">rgb</span> <span class="ruby-operator">||</span> <span class="ruby-string">&#39;ffffff&#39;</span>
874
888
  <span class="ruby-keyword">end</span></pre>
875
889
  </div>
876
890
 
@@ -901,7 +915,7 @@
901
915
 
902
916
 
903
917
  <div class="method-source-code" id="modify_alignment-source">
904
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 209</span>
918
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 210</span>
905
919
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_alignment</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">is_horizontal</span>, <span class="ruby-identifier">alignment</span>)
906
920
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
907
921
  <span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:apply_alignment</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>,
@@ -938,7 +952,7 @@
938
952
 
939
953
 
940
954
  <div class="method-source-code" id="modify_border-source">
941
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 226</span>
955
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 227</span>
942
956
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_border</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">direction</span>, <span class="ruby-identifier">weight</span>)
943
957
  <span class="ruby-identifier">old_xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
944
958
  <span class="ruby-identifier">new_border</span> = <span class="ruby-identifier">borders</span>[<span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">border_id</span>].<span class="ruby-identifier">dup</span>
@@ -988,11 +1002,11 @@
988
1002
 
989
1003
 
990
1004
  <div class="method-source-code" id="modify_fill-source">
991
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 217</span>
1005
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 218</span>
992
1006
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_fill</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">rgb</span>)
993
1007
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
994
1008
  <span class="ruby-identifier">new_fill</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Fill</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:pattern_fill</span> =<span class="ruby-operator">&gt;</span>
995
- <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">PatternFill</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:pattern_type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">'solid'</span>,
1009
+ <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">PatternFill</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:pattern_type</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-string">&#39;solid&#39;</span>,
996
1010
  <span class="ruby-value">:fg_color</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Color</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:rgb</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">rgb</span>)))
997
1011
  <span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">register_new_fill</span>(<span class="ruby-identifier">new_fill</span>, <span class="ruby-identifier">xf</span>)
998
1012
  <span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>, <span class="ruby-identifier">style_index</span>)
@@ -1026,7 +1040,7 @@
1026
1040
 
1027
1041
 
1028
1042
  <div class="method-source-code" id="modify_text_wrap-source">
1029
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 203</span>
1043
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 204</span>
1030
1044
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">modify_text_wrap</span>(<span class="ruby-identifier">style_index</span>, <span class="ruby-identifier">wrap</span> = <span class="ruby-keyword">false</span>)
1031
1045
  <span class="ruby-identifier">xf</span> = <span class="ruby-identifier">cell_xfs</span>[<span class="ruby-identifier">style_index</span>].<span class="ruby-identifier">dup</span>
1032
1046
  <span class="ruby-identifier">xf</span>.<span class="ruby-identifier">alignment</span> = <span class="ruby-constant">RubyXL</span><span class="ruby-operator">::</span><span class="ruby-constant">Alignment</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value">:wrap_text</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">wrap</span>, <span class="ruby-value">:apply_alignment</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword">true</span>)
@@ -1061,7 +1075,7 @@
1061
1075
 
1062
1076
 
1063
1077
  <div class="method-source-code" id="num_to_date-source">
1064
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 149</span>
1078
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 150</span>
1065
1079
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">num_to_date</span>(<span class="ruby-identifier">num</span>)
1066
1080
  <span class="ruby-identifier">num</span> <span class="ruby-operator">&amp;&amp;</span> (<span class="ruby-identifier">base_date</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">num</span>)
1067
1081
  <span class="ruby-keyword">end</span></pre>
@@ -1094,7 +1108,7 @@
1094
1108
 
1095
1109
 
1096
1110
  <div class="method-source-code" id="register_new_fill-source">
1097
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 160</span>
1111
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 161</span>
1098
1112
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_fill</span>(<span class="ruby-identifier">new_fill</span>, <span class="ruby-identifier">old_xf</span>)
1099
1113
  <span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
1100
1114
 
@@ -1139,7 +1153,7 @@
1139
1153
 
1140
1154
 
1141
1155
  <div class="method-source-code" id="register_new_font-source">
1142
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 176</span>
1156
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 177</span>
1143
1157
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_font</span>(<span class="ruby-identifier">new_font</span>, <span class="ruby-identifier">old_xf</span>)
1144
1158
  <span class="ruby-identifier">new_xf</span> = <span class="ruby-identifier">old_xf</span>.<span class="ruby-identifier">dup</span>
1145
1159
 
@@ -1184,7 +1198,7 @@
1184
1198
 
1185
1199
 
1186
1200
  <div class="method-source-code" id="register_new_xf-source">
1187
- <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 192</span>
1201
+ <pre><span class="ruby-comment"># File lib/rubyXL/workbook.rb, line 193</span>
1188
1202
  <span class="ruby-keyword">def</span> <span class="ruby-identifier">register_new_xf</span>(<span class="ruby-identifier">new_xf</span>, <span class="ruby-identifier">old_style_index</span>)
1189
1203
  <span class="ruby-identifier">new_xf_id</span> = <span class="ruby-identifier">cell_xfs</span>.<span class="ruby-identifier">find_index</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">xf</span><span class="ruby-operator">|</span> <span class="ruby-identifier">xf</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">new_xf</span> } <span class="ruby-comment"># Use existing XF, if it exists</span>
1190
1204
  <span class="ruby-identifier">new_xf_id</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">cell_xfs</span>.<span class="ruby-identifier">size</span> <span class="ruby-comment"># If this XF has never existed before, add it to collection.</span>
@@ -1232,12 +1246,12 @@
1232
1246
  <span class="ruby-keyword">end</span>
1233
1247
 
1234
1248
  <span class="ruby-identifier">dirpath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-identifier">filepath</span>)
1235
- <span class="ruby-identifier">temppath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">dirpath</span>, <span class="ruby-constant">Dir</span><span class="ruby-operator">::</span><span class="ruby-constant">Tmpname</span>.<span class="ruby-identifier">make_tmpname</span>([ <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">filepath</span>), <span class="ruby-string">'.tmp'</span> ], <span class="ruby-keyword">nil</span>))
1249
+ <span class="ruby-identifier">temppath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">dirpath</span>, <span class="ruby-constant">Dir</span><span class="ruby-operator">::</span><span class="ruby-constant">Tmpname</span>.<span class="ruby-identifier">make_tmpname</span>([ <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">filepath</span>), <span class="ruby-string">&#39;.tmp&#39;</span> ], <span class="ruby-keyword">nil</span>))
1236
1250
  <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">temppath</span>)
1237
- <span class="ruby-identifier">zippath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">temppath</span>, <span class="ruby-string">'file.zip'</span>)
1251
+ <span class="ruby-identifier">zippath</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">temppath</span>, <span class="ruby-string">&#39;file.zip&#39;</span>)
1238
1252
 
1239
1253
  <span class="ruby-operator">::</span><span class="ruby-constant">Zip</span><span class="ruby-operator">::</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">zippath</span>, <span class="ruby-operator">::</span><span class="ruby-constant">Zip</span><span class="ruby-operator">::</span><span class="ruby-constant">File</span><span class="ruby-operator">::</span><span class="ruby-constant">CREATE</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">zipfile</span><span class="ruby-operator">|</span>
1240
- [ <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">ContentTypesWriter</span>, <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">RootRelsWriter</span>, <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">CoreWriter</span>,
1254
+ [ <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">ContentTypesWriter</span>, <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">CoreWriter</span>,
1241
1255
  <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">ThemeWriter</span>, <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkbookWriter</span>, <span class="ruby-constant">Writer</span><span class="ruby-operator">::</span><span class="ruby-constant">StylesWriter</span>
1242
1256
  ].<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">writer_class</span><span class="ruby-operator">|</span> <span class="ruby-identifier">writer_class</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>).<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>) }
1243
1257
 
@@ -1246,6 +1260,7 @@
1246
1260
  <span class="ruby-identifier">document_properties</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
1247
1261
  <span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">workbook</span> = <span class="ruby-keyword">self</span>
1248
1262
  <span class="ruby-identifier">relationship_container</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
1263
+ <span class="ruby-identifier">root_relationship_container</span>.<span class="ruby-identifier">add_to_zip</span>(<span class="ruby-identifier">zipfile</span>)
1249
1264
 
1250
1265
  [ <span class="ruby-ivar">@media</span>, <span class="ruby-ivar">@external_links</span>, <span class="ruby-ivar">@external_links_rels</span>,
1251
1266
  <span class="ruby-ivar">@drawings</span>, <span class="ruby-ivar">@drawings_rels</span>, <span class="ruby-ivar">@charts</span>, <span class="ruby-ivar">@chart_rels</span>,