rubyXL 2.2.0 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rubyXL/objects/border.rb +3 -3
- data/lib/rubyXL/objects/chartsheet.rb +20 -5
- data/lib/rubyXL/objects/fill.rb +3 -3
- data/lib/rubyXL/objects/filters.rb +5 -5
- data/lib/rubyXL/objects/font.rb +3 -3
- data/lib/rubyXL/objects/ooxml_object.rb +209 -138
- data/lib/rubyXL/objects/relationships.rb +2 -2
- data/lib/rubyXL/objects/sheet_common.rb +2 -2
- data/lib/rubyXL/objects/stylesheet.rb +35 -35
- data/lib/rubyXL/objects/workbook.rb +26 -27
- data/lib/rubyXL/objects/worksheet.rb +59 -51
- data/lib/rubyXL/parser.rb +22 -12
- data/lib/rubyXL/workbook.rb +5 -6
- data/lib/rubyXL/worksheet.rb +3 -3
- data/lib/rubyXL/writer/workbook_writer.rb +2 -2
- data/rdoc/README_rdoc.html +1 -1
- data/rdoc/RubyXL.html +1 -1
- data/rdoc/RubyXL/AExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/Alignment.html +1 -1
- data/rdoc/RubyXL/AlternateContent.html +1 -1
- data/rdoc/RubyXL/AutoFilter.html +1 -1
- data/rdoc/RubyXL/AutoFilterColumn.html +1 -1
- data/rdoc/RubyXL/BooleanNode.html +1 -1
- data/rdoc/RubyXL/BooleanValue.html +1 -1
- data/rdoc/RubyXL/Border.html +1 -1
- data/rdoc/RubyXL/BorderEdge.html +1 -1
- data/rdoc/RubyXL/{FillContainer.html → Borders.html} +5 -5
- data/rdoc/RubyXL/Break.html +1 -1
- data/rdoc/RubyXL/BreakList.html +2 -2
- data/rdoc/RubyXL/CalculationChain.html +1 -1
- data/rdoc/RubyXL/CalculationChainCell.html +1 -1
- data/rdoc/RubyXL/CalculationProperties.html +1 -1
- data/rdoc/RubyXL/Cell.html +1 -1
- data/rdoc/RubyXL/CellSmartTag.html +1 -1
- data/rdoc/RubyXL/CellSmartTagProperty.html +1 -1
- data/rdoc/RubyXL/CellSmartTags.html +105 -0
- data/rdoc/RubyXL/CellStyle.html +1 -1
- data/rdoc/RubyXL/CellStyleXFs.html +105 -0
- data/rdoc/RubyXL/CellStyles.html +105 -0
- data/rdoc/RubyXL/CellValue.html +1 -1
- data/rdoc/RubyXL/CellWatch.html +1 -1
- data/rdoc/RubyXL/{CellXFContainer.html → CellWatches.html} +5 -5
- data/rdoc/RubyXL/CellXFs.html +105 -0
- data/rdoc/RubyXL/Chartsheet.html +1 -1
- data/rdoc/RubyXL/ChartsheetPageSetup.html +1 -1
- data/rdoc/RubyXL/ChartsheetProperties.html +1 -1
- data/rdoc/RubyXL/ChartsheetProtection.html +1 -1
- data/rdoc/RubyXL/ChartsheetView.html +1 -1
- data/rdoc/RubyXL/{BorderContainer.html → ChartsheetViews.html} +4 -4
- data/rdoc/RubyXL/Color.html +1 -1
- data/rdoc/RubyXL/ColorFilter.html +1 -1
- data/rdoc/RubyXL/ColorScale.html +1 -1
- data/rdoc/RubyXL/ColorScheme.html +1 -1
- data/rdoc/RubyXL/ColorSet.html +1 -1
- data/rdoc/RubyXL/Colors.html +1 -1
- data/rdoc/RubyXL/ColumnRange.html +1 -1
- data/rdoc/RubyXL/ColumnRanges.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatValue.html +1 -1
- data/rdoc/RubyXL/ConditionalFormatting.html +2 -2
- data/rdoc/RubyXL/ConditionalFormattingRule.html +1 -1
- data/rdoc/RubyXL/CustomFilter.html +1 -1
- data/rdoc/RubyXL/{CustomFilterContainer.html → CustomFilters.html} +5 -5
- data/rdoc/RubyXL/{CellStyleXFContainer.html → CustomProperties.html} +5 -5
- data/rdoc/RubyXL/CustomProperty.html +1 -1
- data/rdoc/RubyXL/CustomSheetView.html +1 -1
- data/rdoc/RubyXL/CustomSheetViews.html +2 -2
- data/rdoc/RubyXL/CustomWorkbookView.html +1 -1
- data/rdoc/RubyXL/{CustomWorkbookViewContainer.html → CustomWorkbookViews.html} +5 -5
- data/rdoc/RubyXL/DXF.html +1 -1
- data/rdoc/RubyXL/DXFs.html +1 -1
- data/rdoc/RubyXL/DataBar.html +1 -1
- data/rdoc/RubyXL/DataConsolidate.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReference.html +1 -1
- data/rdoc/RubyXL/DataConsolidationReferences.html +2 -2
- data/rdoc/RubyXL/DataValidation.html +1 -1
- data/rdoc/RubyXL/DataValidations.html +1 -1
- data/rdoc/RubyXL/DateGroupItem.html +1 -1
- data/rdoc/RubyXL/DefinedName.html +1 -1
- data/rdoc/RubyXL/DefinedNames.html +2 -2
- data/rdoc/RubyXL/DocumentProperties.html +1 -1
- data/rdoc/RubyXL/DynamicFilter.html +1 -1
- data/rdoc/RubyXL/EmbeddedControl.html +1 -1
- data/rdoc/RubyXL/{EmbeddedControlContainer.html → EmbeddedControls.html} +5 -5
- data/rdoc/RubyXL/Extension.html +1 -1
- data/rdoc/RubyXL/ExtensionStorageArea.html +1 -1
- data/rdoc/RubyXL/ExternalReference.html +1 -1
- data/rdoc/RubyXL/ExternalReferences.html +2 -2
- data/rdoc/RubyXL/FieldItem.html +1 -1
- data/rdoc/RubyXL/FileRecoveryProperties.html +1 -1
- data/rdoc/RubyXL/FileSharing.html +1 -1
- data/rdoc/RubyXL/FileVersion.html +1 -1
- data/rdoc/RubyXL/Fill.html +1 -1
- data/rdoc/RubyXL/{FontContainer.html → Fills.html} +5 -5
- data/rdoc/RubyXL/FilterContainer.html +1 -1
- data/rdoc/RubyXL/FloatNode.html +1 -1
- data/rdoc/RubyXL/FloatValue.html +1 -1
- data/rdoc/RubyXL/Font.html +1 -1
- data/rdoc/RubyXL/FontScheme.html +1 -1
- data/rdoc/RubyXL/Fonts.html +105 -0
- data/rdoc/RubyXL/FormatScheme.html +1 -1
- data/rdoc/RubyXL/Formula.html +1 -1
- data/rdoc/RubyXL/FunctionGroup.html +1 -1
- data/rdoc/RubyXL/{CellWatchContainer.html → FunctionGroups.html} +5 -5
- data/rdoc/RubyXL/GenericStorage.html +1 -1
- data/rdoc/RubyXL/GradientFill.html +1 -1
- data/rdoc/RubyXL/HeaderFooterSettings.html +1 -1
- data/rdoc/RubyXL/Hyperlink.html +1 -1
- data/rdoc/RubyXL/Hyperlinks.html +105 -0
- data/rdoc/RubyXL/IconFilter.html +1 -1
- data/rdoc/RubyXL/IconSet.html +1 -1
- data/rdoc/RubyXL/IgnoredError.html +1 -1
- data/rdoc/RubyXL/IgnoredErrors.html +105 -0
- data/rdoc/RubyXL/IndexedColors.html +105 -0
- data/rdoc/RubyXL/InputCells.html +1 -1
- data/rdoc/RubyXL/IntegerNode.html +1 -1
- data/rdoc/RubyXL/IntegerValue.html +1 -1
- data/rdoc/RubyXL/LegacyCell.html +1 -1
- data/rdoc/RubyXL/LegacyWorkbook.html +25 -25
- data/rdoc/RubyXL/LegacyWorksheet.html +3 -29
- data/rdoc/RubyXL/{ChartsheetViewContainer.html → MRUColors.html} +5 -5
- data/rdoc/RubyXL/MergedCell.html +1 -1
- data/rdoc/RubyXL/MergedCells.html +2 -2
- data/rdoc/RubyXL/NumFmt.html +1 -1
- data/rdoc/RubyXL/NumberFormat.html +1 -1
- data/rdoc/RubyXL/{NumberFormatContainer.html → NumberFormats.html} +6 -6
- data/rdoc/RubyXL/OLEObject.html +1 -1
- data/rdoc/RubyXL/OLEObjects.html +2 -2
- data/rdoc/RubyXL/OLESize.html +1 -1
- data/rdoc/RubyXL/OOXMLContainerObject.html +105 -0
- data/rdoc/RubyXL/OOXMLObject.html +1 -758
- data/rdoc/RubyXL/OOXMLObjectClassMethods.html +559 -0
- data/rdoc/RubyXL/OOXMLObjectInstanceMethods.html +98 -0
- data/rdoc/RubyXL/OOXMLTopLevelObject.html +1 -1
- data/rdoc/RubyXL/OutlineProperties.html +1 -1
- data/rdoc/RubyXL/PageMargins.html +1 -1
- data/rdoc/RubyXL/PageSetup.html +1 -1
- data/rdoc/RubyXL/PageSetupProperties.html +1 -1
- data/rdoc/RubyXL/Pane.html +1 -1
- data/rdoc/RubyXL/Parser.html +23 -13
- data/rdoc/RubyXL/PatternFill.html +1 -1
- data/rdoc/RubyXL/PhoneticProperties.html +1 -1
- data/rdoc/RubyXL/PhoneticRun.html +1 -1
- data/rdoc/RubyXL/PivotArea.html +1 -1
- data/rdoc/RubyXL/PivotCache.html +1 -1
- data/rdoc/RubyXL/PivotCaches.html +2 -2
- data/rdoc/RubyXL/PivotReference.html +1 -1
- data/rdoc/RubyXL/{CellStyleContainer.html → PivotReferences.html} +5 -5
- data/rdoc/RubyXL/PivotTableSelection.html +1 -1
- data/rdoc/RubyXL/PrintOptions.html +1 -1
- data/rdoc/RubyXL/ProtectedRange.html +1 -1
- data/rdoc/RubyXL/ProtectedRanges.html +2 -2
- data/rdoc/RubyXL/Protection.html +1 -1
- data/rdoc/RubyXL/RID.html +1 -1
- data/rdoc/RubyXL/RawOOXML.html +1 -1
- data/rdoc/RubyXL/Reference.html +1 -1
- data/rdoc/RubyXL/Relationship.html +1 -1
- data/rdoc/RubyXL/RichText.html +1 -1
- data/rdoc/RubyXL/RichTextRun.html +1 -1
- data/rdoc/RubyXL/Row.html +1 -1
- data/rdoc/RubyXL/RunProperties.html +1 -1
- data/rdoc/RubyXL/Scenario.html +1 -1
- data/rdoc/RubyXL/Scenarios.html +105 -0
- data/rdoc/RubyXL/Selection.html +1 -1
- data/rdoc/RubyXL/SharedStringsTable.html +3 -3
- data/rdoc/RubyXL/Sheet.html +1 -1
- data/rdoc/RubyXL/SheetCalculationProperties.html +1 -1
- data/rdoc/RubyXL/SheetData.html +1 -1
- data/rdoc/RubyXL/Sheets.html +2 -2
- data/rdoc/RubyXL/SmartTagProperties.html +1 -1
- data/rdoc/RubyXL/SmartTagType.html +1 -1
- data/rdoc/RubyXL/SmartTagTypes.html +105 -0
- data/rdoc/RubyXL/SmartTags.html +105 -0
- data/rdoc/RubyXL/SortCondition.html +1 -1
- data/rdoc/RubyXL/SortState.html +1 -1
- data/rdoc/RubyXL/Sqref.html +1 -1
- data/rdoc/RubyXL/Stop.html +1 -1
- data/rdoc/RubyXL/StringNode.html +1 -1
- data/rdoc/RubyXL/StringValue.html +1 -1
- data/rdoc/RubyXL/Stylesheet.html +1 -1
- data/rdoc/RubyXL/TableParts.html +2 -2
- data/rdoc/RubyXL/TableStyle.html +1 -1
- data/rdoc/RubyXL/TableStyles.html +2 -2
- data/rdoc/RubyXL/Text.html +1 -1
- data/rdoc/RubyXL/Theme.html +1 -1
- data/rdoc/RubyXL/ThemeElements.html +1 -1
- data/rdoc/RubyXL/Top10.html +1 -1
- data/rdoc/RubyXL/Variant.html +1 -1
- data/rdoc/RubyXL/Vector.html +1 -1
- data/rdoc/RubyXL/VectorValue.html +1 -1
- data/rdoc/RubyXL/WebPublishObject.html +1 -1
- data/rdoc/RubyXL/{WebPublishObjectContainer.html → WebPublishObjects.html} +5 -5
- data/rdoc/RubyXL/WebPublishingItem.html +1 -1
- data/rdoc/RubyXL/{WebPublishingItemContainer.html → WebPublishingItems.html} +5 -5
- data/rdoc/RubyXL/WebPublishingProperties.html +1 -1
- data/rdoc/RubyXL/Workbook.html +1 -1
- data/rdoc/RubyXL/WorkbookProperties.html +1 -1
- data/rdoc/RubyXL/WorkbookProtection.html +1 -1
- data/rdoc/RubyXL/WorkbookRelationships.html +3 -3
- data/rdoc/RubyXL/WorkbookView.html +1 -1
- data/rdoc/RubyXL/WorkbookViews.html +2 -2
- data/rdoc/RubyXL/Worksheet.html +1 -1
- data/rdoc/RubyXL/WorksheetDimensions.html +1 -1
- data/rdoc/RubyXL/WorksheetFormatProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProperties.html +1 -1
- data/rdoc/RubyXL/WorksheetProtection.html +1 -1
- data/rdoc/RubyXL/WorksheetView.html +1 -1
- data/rdoc/RubyXL/WorksheetViews.html +2 -2
- data/rdoc/RubyXL/Writer.html +1 -1
- data/rdoc/RubyXL/Writer/ContentTypesWriter.html +1 -1
- data/rdoc/RubyXL/Writer/CoreWriter.html +1 -1
- data/rdoc/RubyXL/Writer/GenericWriter.html +1 -1
- data/rdoc/RubyXL/Writer/RootRelsWriter.html +1 -1
- data/rdoc/RubyXL/Writer/StylesWriter.html +1 -1
- data/rdoc/RubyXL/Writer/ThemeWriter.html +1 -1
- data/rdoc/RubyXL/Writer/WorkbookWriter.html +3 -3
- data/rdoc/RubyXL/XF.html +1 -1
- data/rdoc/created.rid +19 -20
- data/rdoc/index.html +4 -6
- data/rdoc/js/search_index.js +1 -1
- data/rdoc/table_of_contents.html +89 -132
- data/rubyXL.gemspec +30 -29
- data/spec/lib/parser_spec.rb +3 -1
- data/spec/lib/stylesheet_spec.rb +1 -1
- metadata +31 -30
- data/lib/rubyXL/writer/worksheet_writer.rb +0 -41
- data/rdoc/RubyXL/CellSmartTagContainer.html +0 -105
- data/rdoc/RubyXL/CustomPropertyContainer.html +0 -105
- data/rdoc/RubyXL/FunctionGroupContainer.html +0 -105
- data/rdoc/RubyXL/HyperlinkContainer.html +0 -105
- data/rdoc/RubyXL/IgnoredErrorContainer.html +0 -105
- data/rdoc/RubyXL/IndexedColorContainer.html +0 -105
- data/rdoc/RubyXL/MRUColorContainer.html +0 -105
- data/rdoc/RubyXL/PivotReferenceContainer.html +0 -105
- data/rdoc/RubyXL/ScenarioContainer.html +0 -105
- data/rdoc/RubyXL/SmartTagContainer.html +0 -105
- data/rdoc/RubyXL/SmartTagTypeContainer.html +0 -105
- data/rdoc/RubyXL/Writer/WorksheetWriter.html +0 -236
data/rubyXL.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = "rubyXL"
|
8
|
-
s.version = "2.
|
8
|
+
s.version = "2.3.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Vivek Bhagwat"]
|
12
|
-
s.date = "2014-02-
|
12
|
+
s.date = "2014-02-13"
|
13
13
|
s.description = "rubyXL is a gem which allows the parsing, creation, and manipulation of Microsoft Excel (.xlsx/.xlsm) Documents"
|
14
14
|
s.email = "bhagwat.vivek@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -62,7 +62,6 @@ Gem::Specification.new do |s|
|
|
62
62
|
"lib/rubyXL/writer/styles_writer.rb",
|
63
63
|
"lib/rubyXL/writer/theme_writer.rb",
|
64
64
|
"lib/rubyXL/writer/workbook_writer.rb",
|
65
|
-
"lib/rubyXL/writer/worksheet_writer.rb",
|
66
65
|
"rdoc/README_rdoc.html",
|
67
66
|
"rdoc/RubyXL.html",
|
68
67
|
"rdoc/RubyXL/AExtensionStorageArea.html",
|
@@ -73,8 +72,8 @@ Gem::Specification.new do |s|
|
|
73
72
|
"rdoc/RubyXL/BooleanNode.html",
|
74
73
|
"rdoc/RubyXL/BooleanValue.html",
|
75
74
|
"rdoc/RubyXL/Border.html",
|
76
|
-
"rdoc/RubyXL/BorderContainer.html",
|
77
75
|
"rdoc/RubyXL/BorderEdge.html",
|
76
|
+
"rdoc/RubyXL/Borders.html",
|
78
77
|
"rdoc/RubyXL/Break.html",
|
79
78
|
"rdoc/RubyXL/BreakList.html",
|
80
79
|
"rdoc/RubyXL/CalculationChain.html",
|
@@ -82,21 +81,21 @@ Gem::Specification.new do |s|
|
|
82
81
|
"rdoc/RubyXL/CalculationProperties.html",
|
83
82
|
"rdoc/RubyXL/Cell.html",
|
84
83
|
"rdoc/RubyXL/CellSmartTag.html",
|
85
|
-
"rdoc/RubyXL/CellSmartTagContainer.html",
|
86
84
|
"rdoc/RubyXL/CellSmartTagProperty.html",
|
85
|
+
"rdoc/RubyXL/CellSmartTags.html",
|
87
86
|
"rdoc/RubyXL/CellStyle.html",
|
88
|
-
"rdoc/RubyXL/
|
89
|
-
"rdoc/RubyXL/
|
87
|
+
"rdoc/RubyXL/CellStyleXFs.html",
|
88
|
+
"rdoc/RubyXL/CellStyles.html",
|
90
89
|
"rdoc/RubyXL/CellValue.html",
|
91
90
|
"rdoc/RubyXL/CellWatch.html",
|
92
|
-
"rdoc/RubyXL/
|
93
|
-
"rdoc/RubyXL/
|
91
|
+
"rdoc/RubyXL/CellWatches.html",
|
92
|
+
"rdoc/RubyXL/CellXFs.html",
|
94
93
|
"rdoc/RubyXL/Chartsheet.html",
|
95
94
|
"rdoc/RubyXL/ChartsheetPageSetup.html",
|
96
95
|
"rdoc/RubyXL/ChartsheetProperties.html",
|
97
96
|
"rdoc/RubyXL/ChartsheetProtection.html",
|
98
97
|
"rdoc/RubyXL/ChartsheetView.html",
|
99
|
-
"rdoc/RubyXL/
|
98
|
+
"rdoc/RubyXL/ChartsheetViews.html",
|
100
99
|
"rdoc/RubyXL/Color.html",
|
101
100
|
"rdoc/RubyXL/ColorFilter.html",
|
102
101
|
"rdoc/RubyXL/ColorScale.html",
|
@@ -109,13 +108,13 @@ Gem::Specification.new do |s|
|
|
109
108
|
"rdoc/RubyXL/ConditionalFormatting.html",
|
110
109
|
"rdoc/RubyXL/ConditionalFormattingRule.html",
|
111
110
|
"rdoc/RubyXL/CustomFilter.html",
|
112
|
-
"rdoc/RubyXL/
|
111
|
+
"rdoc/RubyXL/CustomFilters.html",
|
112
|
+
"rdoc/RubyXL/CustomProperties.html",
|
113
113
|
"rdoc/RubyXL/CustomProperty.html",
|
114
|
-
"rdoc/RubyXL/CustomPropertyContainer.html",
|
115
114
|
"rdoc/RubyXL/CustomSheetView.html",
|
116
115
|
"rdoc/RubyXL/CustomSheetViews.html",
|
117
116
|
"rdoc/RubyXL/CustomWorkbookView.html",
|
118
|
-
"rdoc/RubyXL/
|
117
|
+
"rdoc/RubyXL/CustomWorkbookViews.html",
|
119
118
|
"rdoc/RubyXL/DXF.html",
|
120
119
|
"rdoc/RubyXL/DXFs.html",
|
121
120
|
"rdoc/RubyXL/DataBar.html",
|
@@ -130,7 +129,7 @@ Gem::Specification.new do |s|
|
|
130
129
|
"rdoc/RubyXL/DocumentProperties.html",
|
131
130
|
"rdoc/RubyXL/DynamicFilter.html",
|
132
131
|
"rdoc/RubyXL/EmbeddedControl.html",
|
133
|
-
"rdoc/RubyXL/
|
132
|
+
"rdoc/RubyXL/EmbeddedControls.html",
|
134
133
|
"rdoc/RubyXL/Extension.html",
|
135
134
|
"rdoc/RubyXL/ExtensionStorageArea.html",
|
136
135
|
"rdoc/RubyXL/ExternalReference.html",
|
@@ -140,43 +139,46 @@ Gem::Specification.new do |s|
|
|
140
139
|
"rdoc/RubyXL/FileSharing.html",
|
141
140
|
"rdoc/RubyXL/FileVersion.html",
|
142
141
|
"rdoc/RubyXL/Fill.html",
|
143
|
-
"rdoc/RubyXL/
|
142
|
+
"rdoc/RubyXL/Fills.html",
|
144
143
|
"rdoc/RubyXL/FilterContainer.html",
|
145
144
|
"rdoc/RubyXL/FloatNode.html",
|
146
145
|
"rdoc/RubyXL/FloatValue.html",
|
147
146
|
"rdoc/RubyXL/Font.html",
|
148
|
-
"rdoc/RubyXL/FontContainer.html",
|
149
147
|
"rdoc/RubyXL/FontScheme.html",
|
148
|
+
"rdoc/RubyXL/Fonts.html",
|
150
149
|
"rdoc/RubyXL/FormatScheme.html",
|
151
150
|
"rdoc/RubyXL/Formula.html",
|
152
151
|
"rdoc/RubyXL/FunctionGroup.html",
|
153
|
-
"rdoc/RubyXL/
|
152
|
+
"rdoc/RubyXL/FunctionGroups.html",
|
154
153
|
"rdoc/RubyXL/GenericStorage.html",
|
155
154
|
"rdoc/RubyXL/GradientFill.html",
|
156
155
|
"rdoc/RubyXL/HeaderFooterSettings.html",
|
157
156
|
"rdoc/RubyXL/Hyperlink.html",
|
158
|
-
"rdoc/RubyXL/
|
157
|
+
"rdoc/RubyXL/Hyperlinks.html",
|
159
158
|
"rdoc/RubyXL/IconFilter.html",
|
160
159
|
"rdoc/RubyXL/IconSet.html",
|
161
160
|
"rdoc/RubyXL/IgnoredError.html",
|
162
|
-
"rdoc/RubyXL/
|
163
|
-
"rdoc/RubyXL/
|
161
|
+
"rdoc/RubyXL/IgnoredErrors.html",
|
162
|
+
"rdoc/RubyXL/IndexedColors.html",
|
164
163
|
"rdoc/RubyXL/InputCells.html",
|
165
164
|
"rdoc/RubyXL/IntegerNode.html",
|
166
165
|
"rdoc/RubyXL/IntegerValue.html",
|
167
166
|
"rdoc/RubyXL/LegacyCell.html",
|
168
167
|
"rdoc/RubyXL/LegacyWorkbook.html",
|
169
168
|
"rdoc/RubyXL/LegacyWorksheet.html",
|
170
|
-
"rdoc/RubyXL/
|
169
|
+
"rdoc/RubyXL/MRUColors.html",
|
171
170
|
"rdoc/RubyXL/MergedCell.html",
|
172
171
|
"rdoc/RubyXL/MergedCells.html",
|
173
172
|
"rdoc/RubyXL/NumFmt.html",
|
174
173
|
"rdoc/RubyXL/NumberFormat.html",
|
175
|
-
"rdoc/RubyXL/
|
174
|
+
"rdoc/RubyXL/NumberFormats.html",
|
176
175
|
"rdoc/RubyXL/OLEObject.html",
|
177
176
|
"rdoc/RubyXL/OLEObjects.html",
|
178
177
|
"rdoc/RubyXL/OLESize.html",
|
178
|
+
"rdoc/RubyXL/OOXMLContainerObject.html",
|
179
179
|
"rdoc/RubyXL/OOXMLObject.html",
|
180
|
+
"rdoc/RubyXL/OOXMLObjectClassMethods.html",
|
181
|
+
"rdoc/RubyXL/OOXMLObjectInstanceMethods.html",
|
180
182
|
"rdoc/RubyXL/OOXMLTopLevelObject.html",
|
181
183
|
"rdoc/RubyXL/OutlineProperties.html",
|
182
184
|
"rdoc/RubyXL/PageMargins.html",
|
@@ -191,7 +193,7 @@ Gem::Specification.new do |s|
|
|
191
193
|
"rdoc/RubyXL/PivotCache.html",
|
192
194
|
"rdoc/RubyXL/PivotCaches.html",
|
193
195
|
"rdoc/RubyXL/PivotReference.html",
|
194
|
-
"rdoc/RubyXL/
|
196
|
+
"rdoc/RubyXL/PivotReferences.html",
|
195
197
|
"rdoc/RubyXL/PivotTableSelection.html",
|
196
198
|
"rdoc/RubyXL/PrintOptions.html",
|
197
199
|
"rdoc/RubyXL/ProtectedRange.html",
|
@@ -206,17 +208,17 @@ Gem::Specification.new do |s|
|
|
206
208
|
"rdoc/RubyXL/Row.html",
|
207
209
|
"rdoc/RubyXL/RunProperties.html",
|
208
210
|
"rdoc/RubyXL/Scenario.html",
|
209
|
-
"rdoc/RubyXL/
|
211
|
+
"rdoc/RubyXL/Scenarios.html",
|
210
212
|
"rdoc/RubyXL/Selection.html",
|
211
213
|
"rdoc/RubyXL/SharedStringsTable.html",
|
212
214
|
"rdoc/RubyXL/Sheet.html",
|
213
215
|
"rdoc/RubyXL/SheetCalculationProperties.html",
|
214
216
|
"rdoc/RubyXL/SheetData.html",
|
215
217
|
"rdoc/RubyXL/Sheets.html",
|
216
|
-
"rdoc/RubyXL/SmartTagContainer.html",
|
217
218
|
"rdoc/RubyXL/SmartTagProperties.html",
|
218
219
|
"rdoc/RubyXL/SmartTagType.html",
|
219
|
-
"rdoc/RubyXL/
|
220
|
+
"rdoc/RubyXL/SmartTagTypes.html",
|
221
|
+
"rdoc/RubyXL/SmartTags.html",
|
220
222
|
"rdoc/RubyXL/SortCondition.html",
|
221
223
|
"rdoc/RubyXL/SortState.html",
|
222
224
|
"rdoc/RubyXL/Sqref.html",
|
@@ -235,9 +237,9 @@ Gem::Specification.new do |s|
|
|
235
237
|
"rdoc/RubyXL/Vector.html",
|
236
238
|
"rdoc/RubyXL/VectorValue.html",
|
237
239
|
"rdoc/RubyXL/WebPublishObject.html",
|
238
|
-
"rdoc/RubyXL/
|
240
|
+
"rdoc/RubyXL/WebPublishObjects.html",
|
239
241
|
"rdoc/RubyXL/WebPublishingItem.html",
|
240
|
-
"rdoc/RubyXL/
|
242
|
+
"rdoc/RubyXL/WebPublishingItems.html",
|
241
243
|
"rdoc/RubyXL/WebPublishingProperties.html",
|
242
244
|
"rdoc/RubyXL/Workbook.html",
|
243
245
|
"rdoc/RubyXL/WorkbookProperties.html",
|
@@ -260,7 +262,6 @@ Gem::Specification.new do |s|
|
|
260
262
|
"rdoc/RubyXL/Writer/StylesWriter.html",
|
261
263
|
"rdoc/RubyXL/Writer/ThemeWriter.html",
|
262
264
|
"rdoc/RubyXL/Writer/WorkbookWriter.html",
|
263
|
-
"rdoc/RubyXL/Writer/WorksheetWriter.html",
|
264
265
|
"rdoc/RubyXL/XF.html",
|
265
266
|
"rdoc/created.rid",
|
266
267
|
"rdoc/fonts.css",
|
data/spec/lib/parser_spec.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
|
+
require 'tmpdir'
|
2
3
|
require 'rubyXL'
|
3
4
|
|
4
5
|
describe RubyXL::Parser do
|
@@ -29,7 +30,8 @@ describe RubyXL::Parser do
|
|
29
30
|
ws.add_cell(3, 3, -123.456e-78)
|
30
31
|
|
31
32
|
@time_str = Time.now.to_s
|
32
|
-
|
33
|
+
|
34
|
+
@file = Dir::Tmpname.make_tmpname(['rubyXL', '.xlsx'], nil)
|
33
35
|
@workbook.write(@file)
|
34
36
|
end
|
35
37
|
|
data/spec/lib/stylesheet_spec.rb
CHANGED
@@ -19,7 +19,7 @@ describe RubyXL::NumberFormat do
|
|
19
19
|
end
|
20
20
|
|
21
21
|
it 'should properly detect date formats amongst default ones' do
|
22
|
-
all_formats = RubyXL::
|
22
|
+
all_formats = RubyXL::NumberFormats::DEFAULT_NUMBER_FORMATS
|
23
23
|
id_list = all_formats.collect { |fmt| fmt.num_fmt_id if fmt.is_date_format? }.compact.sort
|
24
24
|
id_list.should == [14, 15, 16, 17, 18, 19, 20, 21, 22, 45, 46, 47]
|
25
25
|
end
|
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: 2.
|
4
|
+
version: 2.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-02-
|
12
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -177,7 +177,6 @@ files:
|
|
177
177
|
- lib/rubyXL/writer/styles_writer.rb
|
178
178
|
- lib/rubyXL/writer/theme_writer.rb
|
179
179
|
- lib/rubyXL/writer/workbook_writer.rb
|
180
|
-
- lib/rubyXL/writer/worksheet_writer.rb
|
181
180
|
- rdoc/README_rdoc.html
|
182
181
|
- rdoc/RubyXL.html
|
183
182
|
- rdoc/RubyXL/AExtensionStorageArea.html
|
@@ -188,8 +187,8 @@ files:
|
|
188
187
|
- rdoc/RubyXL/BooleanNode.html
|
189
188
|
- rdoc/RubyXL/BooleanValue.html
|
190
189
|
- rdoc/RubyXL/Border.html
|
191
|
-
- rdoc/RubyXL/BorderContainer.html
|
192
190
|
- rdoc/RubyXL/BorderEdge.html
|
191
|
+
- rdoc/RubyXL/Borders.html
|
193
192
|
- rdoc/RubyXL/Break.html
|
194
193
|
- rdoc/RubyXL/BreakList.html
|
195
194
|
- rdoc/RubyXL/CalculationChain.html
|
@@ -197,21 +196,21 @@ files:
|
|
197
196
|
- rdoc/RubyXL/CalculationProperties.html
|
198
197
|
- rdoc/RubyXL/Cell.html
|
199
198
|
- rdoc/RubyXL/CellSmartTag.html
|
200
|
-
- rdoc/RubyXL/CellSmartTagContainer.html
|
201
199
|
- rdoc/RubyXL/CellSmartTagProperty.html
|
200
|
+
- rdoc/RubyXL/CellSmartTags.html
|
202
201
|
- rdoc/RubyXL/CellStyle.html
|
203
|
-
- rdoc/RubyXL/
|
204
|
-
- rdoc/RubyXL/
|
202
|
+
- rdoc/RubyXL/CellStyleXFs.html
|
203
|
+
- rdoc/RubyXL/CellStyles.html
|
205
204
|
- rdoc/RubyXL/CellValue.html
|
206
205
|
- rdoc/RubyXL/CellWatch.html
|
207
|
-
- rdoc/RubyXL/
|
208
|
-
- rdoc/RubyXL/
|
206
|
+
- rdoc/RubyXL/CellWatches.html
|
207
|
+
- rdoc/RubyXL/CellXFs.html
|
209
208
|
- rdoc/RubyXL/Chartsheet.html
|
210
209
|
- rdoc/RubyXL/ChartsheetPageSetup.html
|
211
210
|
- rdoc/RubyXL/ChartsheetProperties.html
|
212
211
|
- rdoc/RubyXL/ChartsheetProtection.html
|
213
212
|
- rdoc/RubyXL/ChartsheetView.html
|
214
|
-
- rdoc/RubyXL/
|
213
|
+
- rdoc/RubyXL/ChartsheetViews.html
|
215
214
|
- rdoc/RubyXL/Color.html
|
216
215
|
- rdoc/RubyXL/ColorFilter.html
|
217
216
|
- rdoc/RubyXL/ColorScale.html
|
@@ -224,13 +223,13 @@ files:
|
|
224
223
|
- rdoc/RubyXL/ConditionalFormatting.html
|
225
224
|
- rdoc/RubyXL/ConditionalFormattingRule.html
|
226
225
|
- rdoc/RubyXL/CustomFilter.html
|
227
|
-
- rdoc/RubyXL/
|
226
|
+
- rdoc/RubyXL/CustomFilters.html
|
227
|
+
- rdoc/RubyXL/CustomProperties.html
|
228
228
|
- rdoc/RubyXL/CustomProperty.html
|
229
|
-
- rdoc/RubyXL/CustomPropertyContainer.html
|
230
229
|
- rdoc/RubyXL/CustomSheetView.html
|
231
230
|
- rdoc/RubyXL/CustomSheetViews.html
|
232
231
|
- rdoc/RubyXL/CustomWorkbookView.html
|
233
|
-
- rdoc/RubyXL/
|
232
|
+
- rdoc/RubyXL/CustomWorkbookViews.html
|
234
233
|
- rdoc/RubyXL/DXF.html
|
235
234
|
- rdoc/RubyXL/DXFs.html
|
236
235
|
- rdoc/RubyXL/DataBar.html
|
@@ -245,7 +244,7 @@ files:
|
|
245
244
|
- rdoc/RubyXL/DocumentProperties.html
|
246
245
|
- rdoc/RubyXL/DynamicFilter.html
|
247
246
|
- rdoc/RubyXL/EmbeddedControl.html
|
248
|
-
- rdoc/RubyXL/
|
247
|
+
- rdoc/RubyXL/EmbeddedControls.html
|
249
248
|
- rdoc/RubyXL/Extension.html
|
250
249
|
- rdoc/RubyXL/ExtensionStorageArea.html
|
251
250
|
- rdoc/RubyXL/ExternalReference.html
|
@@ -255,43 +254,46 @@ files:
|
|
255
254
|
- rdoc/RubyXL/FileSharing.html
|
256
255
|
- rdoc/RubyXL/FileVersion.html
|
257
256
|
- rdoc/RubyXL/Fill.html
|
258
|
-
- rdoc/RubyXL/
|
257
|
+
- rdoc/RubyXL/Fills.html
|
259
258
|
- rdoc/RubyXL/FilterContainer.html
|
260
259
|
- rdoc/RubyXL/FloatNode.html
|
261
260
|
- rdoc/RubyXL/FloatValue.html
|
262
261
|
- rdoc/RubyXL/Font.html
|
263
|
-
- rdoc/RubyXL/FontContainer.html
|
264
262
|
- rdoc/RubyXL/FontScheme.html
|
263
|
+
- rdoc/RubyXL/Fonts.html
|
265
264
|
- rdoc/RubyXL/FormatScheme.html
|
266
265
|
- rdoc/RubyXL/Formula.html
|
267
266
|
- rdoc/RubyXL/FunctionGroup.html
|
268
|
-
- rdoc/RubyXL/
|
267
|
+
- rdoc/RubyXL/FunctionGroups.html
|
269
268
|
- rdoc/RubyXL/GenericStorage.html
|
270
269
|
- rdoc/RubyXL/GradientFill.html
|
271
270
|
- rdoc/RubyXL/HeaderFooterSettings.html
|
272
271
|
- rdoc/RubyXL/Hyperlink.html
|
273
|
-
- rdoc/RubyXL/
|
272
|
+
- rdoc/RubyXL/Hyperlinks.html
|
274
273
|
- rdoc/RubyXL/IconFilter.html
|
275
274
|
- rdoc/RubyXL/IconSet.html
|
276
275
|
- rdoc/RubyXL/IgnoredError.html
|
277
|
-
- rdoc/RubyXL/
|
278
|
-
- rdoc/RubyXL/
|
276
|
+
- rdoc/RubyXL/IgnoredErrors.html
|
277
|
+
- rdoc/RubyXL/IndexedColors.html
|
279
278
|
- rdoc/RubyXL/InputCells.html
|
280
279
|
- rdoc/RubyXL/IntegerNode.html
|
281
280
|
- rdoc/RubyXL/IntegerValue.html
|
282
281
|
- rdoc/RubyXL/LegacyCell.html
|
283
282
|
- rdoc/RubyXL/LegacyWorkbook.html
|
284
283
|
- rdoc/RubyXL/LegacyWorksheet.html
|
285
|
-
- rdoc/RubyXL/
|
284
|
+
- rdoc/RubyXL/MRUColors.html
|
286
285
|
- rdoc/RubyXL/MergedCell.html
|
287
286
|
- rdoc/RubyXL/MergedCells.html
|
288
287
|
- rdoc/RubyXL/NumFmt.html
|
289
288
|
- rdoc/RubyXL/NumberFormat.html
|
290
|
-
- rdoc/RubyXL/
|
289
|
+
- rdoc/RubyXL/NumberFormats.html
|
291
290
|
- rdoc/RubyXL/OLEObject.html
|
292
291
|
- rdoc/RubyXL/OLEObjects.html
|
293
292
|
- rdoc/RubyXL/OLESize.html
|
293
|
+
- rdoc/RubyXL/OOXMLContainerObject.html
|
294
294
|
- rdoc/RubyXL/OOXMLObject.html
|
295
|
+
- rdoc/RubyXL/OOXMLObjectClassMethods.html
|
296
|
+
- rdoc/RubyXL/OOXMLObjectInstanceMethods.html
|
295
297
|
- rdoc/RubyXL/OOXMLTopLevelObject.html
|
296
298
|
- rdoc/RubyXL/OutlineProperties.html
|
297
299
|
- rdoc/RubyXL/PageMargins.html
|
@@ -306,7 +308,7 @@ files:
|
|
306
308
|
- rdoc/RubyXL/PivotCache.html
|
307
309
|
- rdoc/RubyXL/PivotCaches.html
|
308
310
|
- rdoc/RubyXL/PivotReference.html
|
309
|
-
- rdoc/RubyXL/
|
311
|
+
- rdoc/RubyXL/PivotReferences.html
|
310
312
|
- rdoc/RubyXL/PivotTableSelection.html
|
311
313
|
- rdoc/RubyXL/PrintOptions.html
|
312
314
|
- rdoc/RubyXL/ProtectedRange.html
|
@@ -321,17 +323,17 @@ files:
|
|
321
323
|
- rdoc/RubyXL/Row.html
|
322
324
|
- rdoc/RubyXL/RunProperties.html
|
323
325
|
- rdoc/RubyXL/Scenario.html
|
324
|
-
- rdoc/RubyXL/
|
326
|
+
- rdoc/RubyXL/Scenarios.html
|
325
327
|
- rdoc/RubyXL/Selection.html
|
326
328
|
- rdoc/RubyXL/SharedStringsTable.html
|
327
329
|
- rdoc/RubyXL/Sheet.html
|
328
330
|
- rdoc/RubyXL/SheetCalculationProperties.html
|
329
331
|
- rdoc/RubyXL/SheetData.html
|
330
332
|
- rdoc/RubyXL/Sheets.html
|
331
|
-
- rdoc/RubyXL/SmartTagContainer.html
|
332
333
|
- rdoc/RubyXL/SmartTagProperties.html
|
333
334
|
- rdoc/RubyXL/SmartTagType.html
|
334
|
-
- rdoc/RubyXL/
|
335
|
+
- rdoc/RubyXL/SmartTagTypes.html
|
336
|
+
- rdoc/RubyXL/SmartTags.html
|
335
337
|
- rdoc/RubyXL/SortCondition.html
|
336
338
|
- rdoc/RubyXL/SortState.html
|
337
339
|
- rdoc/RubyXL/Sqref.html
|
@@ -350,9 +352,9 @@ files:
|
|
350
352
|
- rdoc/RubyXL/Vector.html
|
351
353
|
- rdoc/RubyXL/VectorValue.html
|
352
354
|
- rdoc/RubyXL/WebPublishObject.html
|
353
|
-
- rdoc/RubyXL/
|
355
|
+
- rdoc/RubyXL/WebPublishObjects.html
|
354
356
|
- rdoc/RubyXL/WebPublishingItem.html
|
355
|
-
- rdoc/RubyXL/
|
357
|
+
- rdoc/RubyXL/WebPublishingItems.html
|
356
358
|
- rdoc/RubyXL/WebPublishingProperties.html
|
357
359
|
- rdoc/RubyXL/Workbook.html
|
358
360
|
- rdoc/RubyXL/WorkbookProperties.html
|
@@ -375,7 +377,6 @@ files:
|
|
375
377
|
- rdoc/RubyXL/Writer/StylesWriter.html
|
376
378
|
- rdoc/RubyXL/Writer/ThemeWriter.html
|
377
379
|
- rdoc/RubyXL/Writer/WorkbookWriter.html
|
378
|
-
- rdoc/RubyXL/Writer/WorksheetWriter.html
|
379
380
|
- rdoc/RubyXL/XF.html
|
380
381
|
- rdoc/created.rid
|
381
382
|
- rdoc/fonts.css
|
@@ -445,7 +446,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
445
446
|
version: '0'
|
446
447
|
segments:
|
447
448
|
- 0
|
448
|
-
hash:
|
449
|
+
hash: -1789996500734012540
|
449
450
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
450
451
|
none: false
|
451
452
|
requirements:
|
@@ -1,41 +0,0 @@
|
|
1
|
-
module RubyXL
|
2
|
-
module Writer
|
3
|
-
class WorksheetWriter < GenericWriter
|
4
|
-
|
5
|
-
def initialize(workbook, sheet_index = 0)
|
6
|
-
@workbook = workbook
|
7
|
-
@sheet_index = sheet_index
|
8
|
-
@worksheet = @workbook.worksheets[@sheet_index]
|
9
|
-
end
|
10
|
-
|
11
|
-
def filepath
|
12
|
-
File.join('xl', 'worksheets', "sheet#{@sheet_index + 1}.xml")
|
13
|
-
end
|
14
|
-
|
15
|
-
def ooxml_object
|
16
|
-
@worksheet
|
17
|
-
end
|
18
|
-
|
19
|
-
=begin
|
20
|
-
root << xml.create_element('sheetFormatPr', { :baseColWidth => 10, :defaultRowHeight => 13 })
|
21
|
-
root << xml.create_element('sheetCalcPr', { :fullCalcOnLoad => 1 })
|
22
|
-
root << xml.create_element('pageMargins', { :left => 0.75, :right => 0.75, :top => 1, :bottom => 1,
|
23
|
-
:header => 0.5, :footer => 0.5 })
|
24
|
-
root << xml.create_element('pageSetup', { :orientation => 'portrait',
|
25
|
-
:horizontalDpi => 4294967292, :verticalDpi => 4294967292 })
|
26
|
-
|
27
|
-
unless @worksheet.extLst.nil?
|
28
|
-
root << (xml.create_element('extLst') { |extlst|
|
29
|
-
extlst << (xml.create_element('ext', {
|
30
|
-
'xmlns:mx' => 'http://schemas.microsoft.com/office/mac/excel/2008/main',
|
31
|
-
'uri' => 'http://schemas.microsoft.com/office/mac/excel/2008/main' }) { |ext|
|
32
|
-
ext << xml.create_element('mx:PLV', { :Mode => 1, :OnePage => 0, :WScale => 0 })
|
33
|
-
})
|
34
|
-
})
|
35
|
-
end
|
36
|
-
=end
|
37
|
-
|
38
|
-
end # class
|
39
|
-
|
40
|
-
end
|
41
|
-
end
|