bonio-axlsx 2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +9 -0
- data/.yardopts_guide +19 -0
- data/CHANGELOG.md +239 -0
- data/LICENSE +22 -0
- data/README.md +258 -0
- data/Rakefile +30 -0
- data/examples/2010_comments.rb +17 -0
- data/examples/anchor_swapping.rb +28 -0
- data/examples/auto_filter.rb +25 -0
- data/examples/basic_charts.rb +58 -0
- data/examples/chart_colors.rb +88 -0
- data/examples/colored_links.rb +59 -0
- data/examples/conditional_formatting/example_conditional_formatting.rb +89 -0
- data/examples/conditional_formatting/getting_barred.rb +37 -0
- data/examples/conditional_formatting/hitting_the_high_notes.rb +37 -0
- data/examples/conditional_formatting/scaled_colors.rb +39 -0
- data/examples/conditional_formatting/stop_and_go.rb +37 -0
- data/examples/data_validation.rb +50 -0
- data/examples/example.rb +875 -0
- data/examples/extractive.rb +45 -0
- data/examples/image1.jpeg +0 -0
- data/examples/ios_preview.rb +14 -0
- data/examples/merge_cells.rb +17 -0
- data/examples/no_grid_with_borders.rb +18 -0
- data/examples/page_setup.rb +11 -0
- data/examples/pivot_table.rb +39 -0
- data/examples/pivot_test.rb +63 -0
- data/examples/sheet_protection.rb +10 -0
- data/examples/skydrive/real_example.rb +63 -0
- data/examples/split.rb +16 -0
- data/examples/styles.rb +66 -0
- data/examples/underline.rb +13 -0
- data/examples/wrap_text.rb +21 -0
- data/lib/axlsx.rb +168 -0
- data/lib/axlsx/content_type/abstract_content_type.rb +32 -0
- data/lib/axlsx/content_type/content_type.rb +26 -0
- data/lib/axlsx/content_type/default.rb +25 -0
- data/lib/axlsx/content_type/override.rb +25 -0
- data/lib/axlsx/doc_props/app.rb +235 -0
- data/lib/axlsx/doc_props/core.rb +39 -0
- data/lib/axlsx/drawing/ax_data_source.rb +26 -0
- data/lib/axlsx/drawing/axes.rb +61 -0
- data/lib/axlsx/drawing/axis.rb +190 -0
- data/lib/axlsx/drawing/bar_3D_chart.rb +151 -0
- data/lib/axlsx/drawing/bar_series.rb +82 -0
- data/lib/axlsx/drawing/bubble_chart.rb +59 -0
- data/lib/axlsx/drawing/bubble_series.rb +63 -0
- data/lib/axlsx/drawing/cat_axis.rb +85 -0
- data/lib/axlsx/drawing/chart.rb +274 -0
- data/lib/axlsx/drawing/d_lbls.rb +90 -0
- data/lib/axlsx/drawing/drawing.rb +164 -0
- data/lib/axlsx/drawing/graphic_frame.rb +54 -0
- data/lib/axlsx/drawing/hyperlink.rb +100 -0
- data/lib/axlsx/drawing/line_3D_chart.rb +68 -0
- data/lib/axlsx/drawing/line_chart.rb +99 -0
- data/lib/axlsx/drawing/line_series.rb +110 -0
- data/lib/axlsx/drawing/marker.rb +84 -0
- data/lib/axlsx/drawing/num_data.rb +52 -0
- data/lib/axlsx/drawing/num_data_source.rb +62 -0
- data/lib/axlsx/drawing/num_val.rb +34 -0
- data/lib/axlsx/drawing/one_cell_anchor.rb +98 -0
- data/lib/axlsx/drawing/pic.rb +213 -0
- data/lib/axlsx/drawing/picture_locking.rb +42 -0
- data/lib/axlsx/drawing/pie_3D_chart.rb +47 -0
- data/lib/axlsx/drawing/pie_series.rb +74 -0
- data/lib/axlsx/drawing/scaling.rb +60 -0
- data/lib/axlsx/drawing/scatter_chart.rb +74 -0
- data/lib/axlsx/drawing/scatter_series.rb +98 -0
- data/lib/axlsx/drawing/ser_axis.rb +45 -0
- data/lib/axlsx/drawing/series.rb +69 -0
- data/lib/axlsx/drawing/series_title.rb +23 -0
- data/lib/axlsx/drawing/str_data.rb +42 -0
- data/lib/axlsx/drawing/str_val.rb +34 -0
- data/lib/axlsx/drawing/title.rb +96 -0
- data/lib/axlsx/drawing/two_cell_anchor.rb +92 -0
- data/lib/axlsx/drawing/val_axis.rb +37 -0
- data/lib/axlsx/drawing/view_3D.rb +115 -0
- data/lib/axlsx/drawing/vml_drawing.rb +42 -0
- data/lib/axlsx/drawing/vml_shape.rb +66 -0
- data/lib/axlsx/package.rb +363 -0
- data/lib/axlsx/rels/relationship.rb +129 -0
- data/lib/axlsx/rels/relationships.rb +29 -0
- data/lib/axlsx/stylesheet/border.rb +71 -0
- data/lib/axlsx/stylesheet/border_pr.rb +71 -0
- data/lib/axlsx/stylesheet/cell_alignment.rb +132 -0
- data/lib/axlsx/stylesheet/cell_protection.rb +41 -0
- data/lib/axlsx/stylesheet/cell_style.rb +72 -0
- data/lib/axlsx/stylesheet/color.rb +76 -0
- data/lib/axlsx/stylesheet/dxf.rb +79 -0
- data/lib/axlsx/stylesheet/fill.rb +35 -0
- data/lib/axlsx/stylesheet/font.rb +148 -0
- data/lib/axlsx/stylesheet/gradient_fill.rb +103 -0
- data/lib/axlsx/stylesheet/gradient_stop.rb +37 -0
- data/lib/axlsx/stylesheet/num_fmt.rb +86 -0
- data/lib/axlsx/stylesheet/pattern_fill.rb +73 -0
- data/lib/axlsx/stylesheet/styles.rb +420 -0
- data/lib/axlsx/stylesheet/table_style.rb +54 -0
- data/lib/axlsx/stylesheet/table_style_element.rb +77 -0
- data/lib/axlsx/stylesheet/table_styles.rb +46 -0
- data/lib/axlsx/stylesheet/xf.rb +147 -0
- data/lib/axlsx/util/accessors.rb +64 -0
- data/lib/axlsx/util/constants.rb +397 -0
- data/lib/axlsx/util/mime_type_utils.rb +11 -0
- data/lib/axlsx/util/options_parser.rb +16 -0
- data/lib/axlsx/util/parser.rb +44 -0
- data/lib/axlsx/util/serialized_attributes.rb +89 -0
- data/lib/axlsx/util/simple_typed_list.rb +179 -0
- data/lib/axlsx/util/storage.rb +146 -0
- data/lib/axlsx/util/string.rb +7 -0
- data/lib/axlsx/util/validators.rb +311 -0
- data/lib/axlsx/version.rb +5 -0
- data/lib/axlsx/workbook/defined_name.rb +128 -0
- data/lib/axlsx/workbook/defined_names.rb +21 -0
- data/lib/axlsx/workbook/shared_strings_table.rb +77 -0
- data/lib/axlsx/workbook/workbook.rb +375 -0
- data/lib/axlsx/workbook/workbook_view.rb +78 -0
- data/lib/axlsx/workbook/workbook_views.rb +22 -0
- data/lib/axlsx/workbook/worksheet/auto_filter/auto_filter.rb +77 -0
- data/lib/axlsx/workbook/worksheet/auto_filter/filter_column.rb +94 -0
- data/lib/axlsx/workbook/worksheet/auto_filter/filters.rb +244 -0
- data/lib/axlsx/workbook/worksheet/break.rb +35 -0
- data/lib/axlsx/workbook/worksheet/cell.rb +475 -0
- data/lib/axlsx/workbook/worksheet/cell_serializer.rb +166 -0
- data/lib/axlsx/workbook/worksheet/cfvo.rb +60 -0
- data/lib/axlsx/workbook/worksheet/cfvos.rb +15 -0
- data/lib/axlsx/workbook/worksheet/col.rb +141 -0
- data/lib/axlsx/workbook/worksheet/col_breaks.rb +35 -0
- data/lib/axlsx/workbook/worksheet/color_scale.rb +110 -0
- data/lib/axlsx/workbook/worksheet/cols.rb +20 -0
- data/lib/axlsx/workbook/worksheet/comment.rb +91 -0
- data/lib/axlsx/workbook/worksheet/comments.rb +82 -0
- data/lib/axlsx/workbook/worksheet/conditional_formatting.rb +82 -0
- data/lib/axlsx/workbook/worksheet/conditional_formatting_rule.rb +220 -0
- data/lib/axlsx/workbook/worksheet/conditional_formattings.rb +25 -0
- data/lib/axlsx/workbook/worksheet/data_bar.rb +129 -0
- data/lib/axlsx/workbook/worksheet/data_validation.rb +246 -0
- data/lib/axlsx/workbook/worksheet/data_validations.rb +28 -0
- data/lib/axlsx/workbook/worksheet/date_time_converter.rb +30 -0
- data/lib/axlsx/workbook/worksheet/dimension.rb +64 -0
- data/lib/axlsx/workbook/worksheet/header_footer.rb +52 -0
- data/lib/axlsx/workbook/worksheet/icon_set.rb +81 -0
- data/lib/axlsx/workbook/worksheet/merged_cells.rb +37 -0
- data/lib/axlsx/workbook/worksheet/outline_pr.rb +33 -0
- data/lib/axlsx/workbook/worksheet/page_margins.rb +97 -0
- data/lib/axlsx/workbook/worksheet/page_set_up_pr.rb +44 -0
- data/lib/axlsx/workbook/worksheet/page_setup.rb +240 -0
- data/lib/axlsx/workbook/worksheet/pane.rb +139 -0
- data/lib/axlsx/workbook/worksheet/pivot_table.rb +289 -0
- data/lib/axlsx/workbook/worksheet/pivot_table_cache_definition.rb +66 -0
- data/lib/axlsx/workbook/worksheet/pivot_tables.rb +24 -0
- data/lib/axlsx/workbook/worksheet/print_options.rb +39 -0
- data/lib/axlsx/workbook/worksheet/protected_range.rb +47 -0
- data/lib/axlsx/workbook/worksheet/protected_ranges.rb +34 -0
- data/lib/axlsx/workbook/worksheet/rich_text.rb +35 -0
- data/lib/axlsx/workbook/worksheet/rich_text_run.rb +254 -0
- data/lib/axlsx/workbook/worksheet/row.rb +161 -0
- data/lib/axlsx/workbook/worksheet/row_breaks.rb +33 -0
- data/lib/axlsx/workbook/worksheet/selection.rb +101 -0
- data/lib/axlsx/workbook/worksheet/sheet_calc_pr.rb +29 -0
- data/lib/axlsx/workbook/worksheet/sheet_data.rb +27 -0
- data/lib/axlsx/workbook/worksheet/sheet_format_pr.rb +60 -0
- data/lib/axlsx/workbook/worksheet/sheet_pr.rb +87 -0
- data/lib/axlsx/workbook/worksheet/sheet_protection.rb +118 -0
- data/lib/axlsx/workbook/worksheet/sheet_view.rb +213 -0
- data/lib/axlsx/workbook/worksheet/table.rb +102 -0
- data/lib/axlsx/workbook/worksheet/table_style_info.rb +49 -0
- data/lib/axlsx/workbook/worksheet/tables.rb +31 -0
- data/lib/axlsx/workbook/worksheet/worksheet.rb +799 -0
- data/lib/axlsx/workbook/worksheet/worksheet_comments.rb +58 -0
- data/lib/axlsx/workbook/worksheet/worksheet_drawing.rb +58 -0
- data/lib/axlsx/workbook/worksheet/worksheet_hyperlink.rb +74 -0
- data/lib/axlsx/workbook/worksheet/worksheet_hyperlinks.rb +38 -0
- data/lib/schema/dc.xsd +118 -0
- data/lib/schema/dcmitype.xsd +52 -0
- data/lib/schema/dcterms.xsd +331 -0
- data/lib/schema/dml-chart.xsd +1499 -0
- data/lib/schema/dml-chartDrawing.xsd +146 -0
- data/lib/schema/dml-compatibility.xsd +14 -0
- data/lib/schema/dml-diagram.xsd +1091 -0
- data/lib/schema/dml-lockedCanvas.xsd +11 -0
- data/lib/schema/dml-main.xsd +3048 -0
- data/lib/schema/dml-picture.xsd +23 -0
- data/lib/schema/dml-spreadsheetDrawing.xsd +185 -0
- data/lib/schema/dml-wordprocessingDrawing.xsd +185 -0
- data/lib/schema/opc-contentTypes.xsd +42 -0
- data/lib/schema/opc-coreProperties.xsd +54 -0
- data/lib/schema/opc-digSig.xsd +49 -0
- data/lib/schema/opc-relationships.xsd +33 -0
- data/lib/schema/pml.xsd +1676 -0
- data/lib/schema/shared-additionalCharacteristics.xsd +28 -0
- data/lib/schema/shared-bibliography.xsd +144 -0
- data/lib/schema/shared-commonSimpleTypes.xsd +166 -0
- data/lib/schema/shared-customXmlDataProperties.xsd +25 -0
- data/lib/schema/shared-customXmlSchemaProperties.xsd +18 -0
- data/lib/schema/shared-documentPropertiesCustom.xsd +59 -0
- data/lib/schema/shared-documentPropertiesExtended.xsd +56 -0
- data/lib/schema/shared-documentPropertiesVariantTypes.xsd +195 -0
- data/lib/schema/shared-math.xsd +582 -0
- data/lib/schema/shared-relationshipReference.xsd +25 -0
- data/lib/schema/sml.xsd +4434 -0
- data/lib/schema/vml-main.xsd +569 -0
- data/lib/schema/vml-officeDrawing.xsd +509 -0
- data/lib/schema/vml-presentationDrawing.xsd +12 -0
- data/lib/schema/vml-spreadsheetDrawing.xsd +108 -0
- data/lib/schema/vml-wordprocessingDrawing.xsd +96 -0
- data/lib/schema/wml.xsd +3644 -0
- data/lib/schema/xml.xsd +116 -0
- data/test/benchmark.rb +72 -0
- data/test/content_type/tc_content_type.rb +76 -0
- data/test/content_type/tc_default.rb +16 -0
- data/test/content_type/tc_override.rb +14 -0
- data/test/doc_props/tc_app.rb +43 -0
- data/test/doc_props/tc_core.rb +42 -0
- data/test/drawing/tc_axes.rb +8 -0
- data/test/drawing/tc_axis.rb +112 -0
- data/test/drawing/tc_bar_3D_chart.rb +71 -0
- data/test/drawing/tc_bar_series.rb +37 -0
- data/test/drawing/tc_bubble_chart.rb +44 -0
- data/test/drawing/tc_bubble_series.rb +21 -0
- data/test/drawing/tc_cat_axis.rb +31 -0
- data/test/drawing/tc_cat_axis_data.rb +27 -0
- data/test/drawing/tc_chart.rb +110 -0
- data/test/drawing/tc_d_lbls.rb +57 -0
- data/test/drawing/tc_data_source.rb +23 -0
- data/test/drawing/tc_drawing.rb +80 -0
- data/test/drawing/tc_graphic_frame.rb +27 -0
- data/test/drawing/tc_hyperlink.rb +64 -0
- data/test/drawing/tc_line_3d_chart.rb +47 -0
- data/test/drawing/tc_line_chart.rb +39 -0
- data/test/drawing/tc_line_series.rb +71 -0
- data/test/drawing/tc_marker.rb +44 -0
- data/test/drawing/tc_named_axis_data.rb +27 -0
- data/test/drawing/tc_num_data.rb +31 -0
- data/test/drawing/tc_num_val.rb +29 -0
- data/test/drawing/tc_one_cell_anchor.rb +66 -0
- data/test/drawing/tc_pic.rb +106 -0
- data/test/drawing/tc_picture_locking.rb +72 -0
- data/test/drawing/tc_pie_3D_chart.rb +28 -0
- data/test/drawing/tc_pie_series.rb +32 -0
- data/test/drawing/tc_scaling.rb +36 -0
- data/test/drawing/tc_scatter_chart.rb +48 -0
- data/test/drawing/tc_scatter_series.rb +45 -0
- data/test/drawing/tc_ser_axis.rb +31 -0
- data/test/drawing/tc_series.rb +23 -0
- data/test/drawing/tc_series_title.rb +33 -0
- data/test/drawing/tc_str_data.rb +18 -0
- data/test/drawing/tc_str_val.rb +30 -0
- data/test/drawing/tc_title.rb +49 -0
- data/test/drawing/tc_two_cell_anchor.rb +36 -0
- data/test/drawing/tc_val_axis.rb +24 -0
- data/test/drawing/tc_view_3D.rb +54 -0
- data/test/drawing/tc_vml_drawing.rb +25 -0
- data/test/drawing/tc_vml_shape.rb +106 -0
- data/test/profile.rb +24 -0
- data/test/rels/tc_relationship.rb +44 -0
- data/test/rels/tc_relationships.rb +37 -0
- data/test/stylesheet/tc_border.rb +37 -0
- data/test/stylesheet/tc_border_pr.rb +32 -0
- data/test/stylesheet/tc_cell_alignment.rb +81 -0
- data/test/stylesheet/tc_cell_protection.rb +29 -0
- data/test/stylesheet/tc_cell_style.rb +57 -0
- data/test/stylesheet/tc_color.rb +43 -0
- data/test/stylesheet/tc_dxf.rb +81 -0
- data/test/stylesheet/tc_fill.rb +18 -0
- data/test/stylesheet/tc_font.rb +121 -0
- data/test/stylesheet/tc_gradient_fill.rb +72 -0
- data/test/stylesheet/tc_gradient_stop.rb +31 -0
- data/test/stylesheet/tc_num_fmt.rb +30 -0
- data/test/stylesheet/tc_pattern_fill.rb +43 -0
- data/test/stylesheet/tc_styles.rb +235 -0
- data/test/stylesheet/tc_table_style.rb +44 -0
- data/test/stylesheet/tc_table_style_element.rb +45 -0
- data/test/stylesheet/tc_table_styles.rb +29 -0
- data/test/stylesheet/tc_xf.rb +120 -0
- data/test/tc_axlsx.rb +82 -0
- data/test/tc_helper.rb +10 -0
- data/test/tc_package.rb +233 -0
- data/test/util/tc_mime_type_utils.rb +13 -0
- data/test/util/tc_serialized_attributes.rb +19 -0
- data/test/util/tc_simple_typed_list.rb +77 -0
- data/test/util/tc_validators.rb +210 -0
- data/test/workbook/tc_defined_name.rb +49 -0
- data/test/workbook/tc_shared_strings_table.rb +58 -0
- data/test/workbook/tc_workbook.rb +145 -0
- data/test/workbook/tc_workbook_view.rb +50 -0
- data/test/workbook/worksheet/auto_filter/tc_auto_filter.rb +38 -0
- data/test/workbook/worksheet/auto_filter/tc_filter_column.rb +76 -0
- data/test/workbook/worksheet/auto_filter/tc_filters.rb +50 -0
- data/test/workbook/worksheet/tc_break.rb +49 -0
- data/test/workbook/worksheet/tc_cell.rb +373 -0
- data/test/workbook/worksheet/tc_cfvo.rb +31 -0
- data/test/workbook/worksheet/tc_col.rb +78 -0
- data/test/workbook/worksheet/tc_color_scale.rb +58 -0
- data/test/workbook/worksheet/tc_comment.rb +72 -0
- data/test/workbook/worksheet/tc_comments.rb +57 -0
- data/test/workbook/worksheet/tc_conditional_formatting.rb +224 -0
- data/test/workbook/worksheet/tc_data_bar.rb +46 -0
- data/test/workbook/worksheet/tc_data_validation.rb +265 -0
- data/test/workbook/worksheet/tc_date_time_converter.rb +124 -0
- data/test/workbook/worksheet/tc_header_footer.rb +151 -0
- data/test/workbook/worksheet/tc_icon_set.rb +45 -0
- data/test/workbook/worksheet/tc_outline_pr.rb +19 -0
- data/test/workbook/worksheet/tc_page_margins.rb +97 -0
- data/test/workbook/worksheet/tc_page_set_up_pr.rb +15 -0
- data/test/workbook/worksheet/tc_page_setup.rb +143 -0
- data/test/workbook/worksheet/tc_pane.rb +54 -0
- data/test/workbook/worksheet/tc_pivot_table.rb +140 -0
- data/test/workbook/worksheet/tc_pivot_table_cache_definition.rb +54 -0
- data/test/workbook/worksheet/tc_print_options.rb +72 -0
- data/test/workbook/worksheet/tc_protected_range.rb +17 -0
- data/test/workbook/worksheet/tc_rich_text.rb +44 -0
- data/test/workbook/worksheet/tc_rich_text_run.rb +172 -0
- data/test/workbook/worksheet/tc_row.rb +122 -0
- data/test/workbook/worksheet/tc_selection.rb +55 -0
- data/test/workbook/worksheet/tc_sheet_calc_pr.rb +18 -0
- data/test/workbook/worksheet/tc_sheet_format_pr.rb +88 -0
- data/test/workbook/worksheet/tc_sheet_pr.rb +49 -0
- data/test/workbook/worksheet/tc_sheet_protection.rb +117 -0
- data/test/workbook/worksheet/tc_sheet_view.rb +214 -0
- data/test/workbook/worksheet/tc_table.rb +68 -0
- data/test/workbook/worksheet/tc_table_style_info.rb +53 -0
- data/test/workbook/worksheet/tc_worksheet.rb +594 -0
- data/test/workbook/worksheet/tc_worksheet_hyperlink.rb +55 -0
- metadata +582 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 5caa00be1db952f9a273fe51a4cf2dd28b03d4e4
|
4
|
+
data.tar.gz: 75d2b646921733abe583a71496c87e9b71987955
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8e5790814c6fd4e917cba9944d27c6cab98dd4d047b5f4e2d728c7b20c641c157f8387b96701237998df487f10206d5429babbd6df4f09c881542036c79a0ba8
|
7
|
+
data.tar.gz: 8906958454a9448a6eed7288b3b0efbec23609e15c3e57f61f45289a7136b0851d4e6132fd9e07dc238e06b0dc28731bfe577991d593c7640a6bd9ad9c321259
|
data/.yardopts
ADDED
data/.yardopts_guide
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
-t guide
|
2
|
+
--title YARD
|
3
|
+
-o doc_guide
|
4
|
+
--exclude /server/templates/
|
5
|
+
--exclude /yard/rubygems/
|
6
|
+
--asset docs/images:images
|
7
|
+
-
|
8
|
+
docs/WhatsNew.md
|
9
|
+
docs/GettingStarted.md
|
10
|
+
docs/Overview.md
|
11
|
+
docs/CodeObjects.md
|
12
|
+
docs/Tags.md
|
13
|
+
docs/Parser.md
|
14
|
+
docs/Handlers.md
|
15
|
+
docs/Templates.md
|
16
|
+
docs/Glossary.md
|
17
|
+
ChangeLog
|
18
|
+
LICENSE
|
19
|
+
LEGAL
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,239 @@
|
|
1
|
+
CHANGELOG
|
2
|
+
---------
|
3
|
+
- **November.25.12**:1.3.4
|
4
|
+
- Support for headers and footers for worksheets
|
5
|
+
- bug fix: Properly escape hyperlink urls
|
6
|
+
- Improvements in color_scale generation for conditional formatting
|
7
|
+
- Improvements in autowidth calculation.
|
8
|
+
- **November.8.12**:1.3.3
|
9
|
+
- Patched cell run styles for u and validation for family
|
10
|
+
|
11
|
+
- **November.5.12**:1.3.2
|
12
|
+
- MASSIVE REFACTORING
|
13
|
+
- Patch for apostrophes in worksheet names
|
14
|
+
- added sheet_by_name for workbook so you can now find your worksheets
|
15
|
+
by name
|
16
|
+
- added insert_worksheet so you can now add a worksheet to an
|
17
|
+
arbitrary position in the worksheets list.
|
18
|
+
- reduced memory consumption for package parts post serialization
|
19
|
+
- **September.30.12**: 1.3.1
|
20
|
+
- Improved control character handling
|
21
|
+
- Added stored auto filter values and date grouping items
|
22
|
+
- Improved support for autowidth when custom styles are applied
|
23
|
+
- Added support for table style info that lets you take advantage of
|
24
|
+
all the predefined table styles.
|
25
|
+
- Improved style management for fonts so they merge undefined values
|
26
|
+
from the initial master.
|
27
|
+
- **September.8.12**: 1.2.3
|
28
|
+
- enhance exponential float/bigdecimal values rendering as strings intead
|
29
|
+
of 'numbers' in excel.
|
30
|
+
- added support for :none option on chart axis labels
|
31
|
+
- added support for paper_size option on worksheet.page_setup
|
32
|
+
- **August.27.12**: 1.2.2
|
33
|
+
- minor patch for auto-filters
|
34
|
+
- minor documentation improvements.
|
35
|
+
- **August.12.12**: 1.2.1
|
36
|
+
- Add support for hyperlinks in worksheets
|
37
|
+
- Fix example that was using old style cell merging with concact.
|
38
|
+
- Fix bug that occurs when calculating the font_size for cells that use a user specified style which does not define sz
|
39
|
+
- **August.5.12**: 1.2.0
|
40
|
+
- rebuilt worksheet serialization to clean up the code base a bit.
|
41
|
+
- added data labels for charts
|
42
|
+
- added table header printing for each sheet via defined_name. This
|
43
|
+
means that when you print your worksheet, the header rows show for every page
|
44
|
+
- **July.??.12**: 1.1.9 release
|
45
|
+
- lots of code clean up for worksheet
|
46
|
+
- added in data labels for pie charts, line charts and bar charts.
|
47
|
+
- bugfix chard with data in a sheet that has a space in the name are
|
48
|
+
now auto updating formula based values
|
49
|
+
- **July.14.12**: 1.1.8 release
|
50
|
+
- added html entity encoding for sheet names. This allows you to use
|
51
|
+
characters like '<' and '&' in your sheet names.
|
52
|
+
- new - first round google docs interoperability
|
53
|
+
- added filter to strip out control characters from cell data.
|
54
|
+
- added in interop requirements so that charts are properly exported
|
55
|
+
to PDF from Libra Office
|
56
|
+
- various readability improvements and work standardizing attribute
|
57
|
+
names to snake_case. Aliases are provided for backward compatiblity
|
58
|
+
- **June.11.12**: 1.1.7 release
|
59
|
+
- fix chart rendering issue when label offset is specified as a
|
60
|
+
percentage in serialization and ensure that formula are not stored
|
61
|
+
in value caches
|
62
|
+
- fix bug that causes repair warnings when using a text only title reference.
|
63
|
+
- Add title property to axis so you can lable the x/y/series axis for
|
64
|
+
charts.
|
65
|
+
- Add sheet views with panes
|
66
|
+
- **May.30.12**: 1.1.6 release
|
67
|
+
- data protection with passwords for sheets
|
68
|
+
- cell level input validators
|
69
|
+
- added support for two cell anchors for images
|
70
|
+
- test coverage now back up to 100%
|
71
|
+
- bugfix for merge cell sorting algorithm
|
72
|
+
- added fit_to method for page_setup to simplify managing witdh/height
|
73
|
+
- added ph (phonetics) and s (style) attributes for row.
|
74
|
+
- resolved all warnings generating from this gem.
|
75
|
+
- improved comment relationship management for multiple comments
|
76
|
+
- **May.13.12**: 1.1.5 release
|
77
|
+
- MOAR print options! You can now specify paper size, orientation,
|
78
|
+
fit to width, page margings and gridlines for printing.
|
79
|
+
- Support for adding comments to your worksheets
|
80
|
+
- bugfix for applying style to empty cells
|
81
|
+
- bugfix for parsing formula with multiple '='
|
82
|
+
|
83
|
+
- **May.3.12:**: 1.1.4 release
|
84
|
+
- MOAR examples
|
85
|
+
- added outline level for rows and columns
|
86
|
+
- rebuild of numeric and axis data sources for charts
|
87
|
+
- added delete to axis
|
88
|
+
- added tick and label mark skipping for cat axis in charts
|
89
|
+
- bugfix for table headers method
|
90
|
+
- sane(er) defaults for chart positioning
|
91
|
+
- bugfix in val_axis_data to properly serialize value axis data. Excel does not mind as it reads from the sheet, but nokogiri has a fit if the elements are empty.
|
92
|
+
- Added support for specifying the color of data series in charts.
|
93
|
+
- bugfix using add_cell on row mismanaged calls to update_column_info.
|
94
|
+
|
95
|
+
- ** April.25.12:**: 1.1.3 release
|
96
|
+
- Primarily because I am stupid.....Updates to readme to properly report version, add in missing docs and restructure example directory.
|
97
|
+
|
98
|
+
- ** April.25.12:**: 1.1.2 release
|
99
|
+
- Conditional Formatting completely implemented.
|
100
|
+
- refactoring / documentation for Style#add_style
|
101
|
+
- added in label rotation for chart axis labels
|
102
|
+
- bugfix to properly assign style and type info to cells when only partial information is provided in the types/style option
|
103
|
+
|
104
|
+
- ** April.18.12**: 1.1.1 release
|
105
|
+
- bugfix for autowidth calculations across multiple rows
|
106
|
+
- bugfix for dimension calculations with nil cells.
|
107
|
+
- REMOVED RMAGICK dependency WOOT!
|
108
|
+
- Update readme to show screenshot of gem output.
|
109
|
+
- Cleanup benchmark and add benchmark rake task
|
110
|
+
|
111
|
+
- ** April.3.12**: 1.1.0 release
|
112
|
+
- bugfix patch name_to_indecies to properly handle extended ranges.
|
113
|
+
- bugfix properly serialize chart title.
|
114
|
+
- lower rake minimum requirement for 1.8.7 apps that don't want to move on to 0.9 NOTE this will be reverted for 2.0.0 with workbook parsing!
|
115
|
+
- Added Fit to Page printing
|
116
|
+
- added support for turning off gridlines in charts.
|
117
|
+
- added support for turning off gridlines in worksheet.
|
118
|
+
- bugfix some apps like libraoffice require apply[x] attributes to be true. applyAlignment is now properly set.
|
119
|
+
- added option use_autowidth. When this is false RMagick will not be loaded or used in the stack. However it is still a requirement in the gem.
|
120
|
+
- added border style specification to styles#add_style. See the example in the readme.
|
121
|
+
- Support for tables added in - Note: Pre 2011 versions of Mac office do not support this feature and will warn.
|
122
|
+
- Support for splatter charts added
|
123
|
+
- Major (like 7x faster!) performance updates.
|
124
|
+
- Gem now supports for JRuby 1.6.7, as well as experimental support for Rubinius
|
125
|
+
|
126
|
+
- ** March.5.12**: 1.0.18 release
|
127
|
+
https://github.com/randym/axlsx/compare/1.0.17...1.0.18
|
128
|
+
- bugfix custom borders are not properly applied when using styles.add_style
|
129
|
+
- interop worksheet names must be 31 characters or less or some versions of office complain about repairs
|
130
|
+
- added type support for :boolean and :date types cell values
|
131
|
+
- added support for fixed column widths
|
132
|
+
- added support for page_margins
|
133
|
+
- added << alias for add_row
|
134
|
+
- removed presetting of date1904 based on authoring platform. Now defaults to use 1900 epoch (date1904 = false)
|
135
|
+
|
136
|
+
- ** February.14.12**: 1.0.17 release
|
137
|
+
https://github.com/randym/axlsx/compare/1.0.16...1.0.17
|
138
|
+
- Added in support for serializing to StringIO
|
139
|
+
- Added in support for using shared strings table. This makes most of the features in axlsx interoperable with iWorks Numbers
|
140
|
+
- Added in support for fixed column_widths
|
141
|
+
- Removed unneeded dependencies on active-support and i18n
|
142
|
+
|
143
|
+
- ** February.2.12**: 1.0.16 release
|
144
|
+
https://github.com/randym/axlsx/compare/1.0.15...1.0.16
|
145
|
+
- Bug fix for schema file locations when validating in rails
|
146
|
+
- Added hyperlink to images
|
147
|
+
- date1904 now automatically set in BSD and mac environments
|
148
|
+
- removed whitespace/indentation from xml outputs
|
149
|
+
- col_style now skips rows that do not contain cells at the column index
|
150
|
+
|
151
|
+
- **January.6.12**: 1.0.15 release
|
152
|
+
https://github.com/randym/axlsx/compare/1.0.14...1.0.15
|
153
|
+
- Bug fix add_style specified number formats must be explicity applied for libraOffice
|
154
|
+
- performance improvements from ochko when creating cells with options.
|
155
|
+
- Bug fix setting types=>[:n] when adding a row incorrectly determines the cell type to be string as the value is null during creation.
|
156
|
+
- Release in preparation for password protection merge
|
157
|
+
|
158
|
+
- **December.14.11**: 1.0.14 release
|
159
|
+
- Added support for merging cells
|
160
|
+
- Added support for auto filters
|
161
|
+
- Improved auto width calculations
|
162
|
+
- Improved charts
|
163
|
+
- Updated examples to output to a single workbook with multiple sheets
|
164
|
+
- Added access to app and core package objects so you can set the creator and other properties of the package
|
165
|
+
- The beginning of password protected xlsx files - roadmapped for January release.
|
166
|
+
|
167
|
+
- **December.8.11**: 1.0.13 release
|
168
|
+
- Fixing .gemspec errors that caused gem to miss the lib directory. Sorry about that.
|
169
|
+
|
170
|
+
- **December.7.11**: 1.0.12 release
|
171
|
+
DO NOT USE THIS VERSION = THE GEM IS BROKEN
|
172
|
+
- changed dependency from 'zip' gem to 'rubyzip' and added conditional code to force binary encoding to resolve issue with excel 2011
|
173
|
+
- Patched bug in app.xml that would ignore user specified properties.
|
174
|
+
- **December.5.11**: 1.0.11 release
|
175
|
+
- Added [] methods to worksheet and workbook to provide name based access to cells.
|
176
|
+
- Added support for functions as cell values
|
177
|
+
- Updated color creation so that two character shorthand values can be used like 'FF' for 'FFFFFFFF' or 'D8' for 'FFD8D8D8'
|
178
|
+
- Examples for all this fun stuff added to the readme
|
179
|
+
- Clean up and support for 1.9.2 and travis integration
|
180
|
+
- Added support for string based cell referencing to chart start_at and end_at. That means you can now use :start_at=>"A1" when using worksheet.add_chart, or chart.start_at ="A1" in addition to passing a cell or the x, y coordinates.
|
181
|
+
|
182
|
+
- **October.30.11**: 1.0.10 release
|
183
|
+
- Updating gemspec to lower gem version requirements.
|
184
|
+
- Added row.style assignation for updating the cell style for an entire row
|
185
|
+
- Added col_style method to worksheet upate a the style for a column of cells
|
186
|
+
- Added cols for an easy reference to columns in a worksheet.
|
187
|
+
- prep for pre release of acts_as_xlsx gem
|
188
|
+
- added in travis.ci configuration and build status
|
189
|
+
- fixed out of range bug in time calculations for 32bit time.
|
190
|
+
- added i18n for active support
|
191
|
+
|
192
|
+
- **October.26.11**: 1.0.9 release
|
193
|
+
- Updated to support ruby 1.9.3
|
194
|
+
- Updated to eliminate all warnings originating in this gem
|
195
|
+
|
196
|
+
- **October.23.11**: 1.0.8 release
|
197
|
+
- Added support for images (jpg, gif, png) in worksheets.
|
198
|
+
|
199
|
+
- **October.23.11**: 1.0.7 released
|
200
|
+
- Added support for 3D options when creating a new chart. This lets you set the persective, rotation and other 3D attributes when using worksheet.add_chart
|
201
|
+
- Updated serialization write test to verify write permissions and warn if it cannot run the test due to permission restrcitions.
|
202
|
+
- updated rake to include build, genoc and deploy tasks.
|
203
|
+
- rebuilt documentation.
|
204
|
+
- moved version constant to its own file
|
205
|
+
- fixed bug in SerAxis that was requiring tickLblSkip and tickMarkSkip to be boolean. Should be unsigned int.
|
206
|
+
- Review and improve docs
|
207
|
+
- rebuild of anchor positioning to remove some spagetti code. Chart now supports a start_at and end_at method that accept an arrar for col/row positioning. See example6 for an example. You can still pass :start_at and :end_at options to worksheet.add_chart.
|
208
|
+
- Refactored cat and val axis data to keep series serialization a bit more DRY
|
209
|
+
|
210
|
+
##October.22.11: 1.0.6 release
|
211
|
+
- Bumping version to include docs. Bug in gemspec pointing to incorrect directory.
|
212
|
+
|
213
|
+
##October.22.11: 1.05
|
214
|
+
- Added support for line charts
|
215
|
+
- Updated examples and readme
|
216
|
+
- Updated series title to be a real title ** NOTE ** If you are accessing titles directly you will need to update text assignation.
|
217
|
+
chart.series.first.title = 'Your Title'
|
218
|
+
chart.series.first.title.text = 'Your Title'
|
219
|
+
With this change you can assign a cell for the series title
|
220
|
+
chart.series.title = sheet.rows.first.cells.first
|
221
|
+
If you are using the recommended
|
222
|
+
chart.add_series :data=>[], :labels=>[], :title
|
223
|
+
You do not have to change anything.
|
224
|
+
- BugFix: shape attribute for bar chart is now properly serialized
|
225
|
+
- BugFix: date1904 property now properly set for charts
|
226
|
+
- Added style property to charts
|
227
|
+
- Removed serialization write test as it most commonly fails when run from the gem's intalled directory
|
228
|
+
|
229
|
+
##October.21.11: 1.0.4
|
230
|
+
- altered package to accept a filename string for serialization instead of a File object.
|
231
|
+
- Updated specs to conform
|
232
|
+
- More examples for readme
|
233
|
+
|
234
|
+
|
235
|
+
##October.21.11: 1.0.3 release
|
236
|
+
- Updated documentation
|
237
|
+
|
238
|
+
##October.20.11: 0.1.0 release
|
239
|
+
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2011, 2012 Randy Morgan
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person
|
4
|
+
obtaining a copy of this software and associated documentation
|
5
|
+
files (the "Software"), to deal in the Software without
|
6
|
+
restriction, including without limitation the rights to use,
|
7
|
+
copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the
|
9
|
+
Software is furnished to do so, subject to the following
|
10
|
+
conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be
|
13
|
+
included in all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
17
|
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
19
|
+
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
20
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
|
22
|
+
OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,258 @@
|
|
1
|
+
Axlsx: Office Open XML Spreadsheet Generation
|
2
|
+
====================================
|
3
|
+
[![Build Status](https://secure.travis-ci.org/randym/axlsx.svg?branch=master)](http://travis-ci.org/randym/axlsx/)
|
4
|
+
|
5
|
+
If you are using axlsx for commercial purposes, or just want to show your
|
6
|
+
appreciation for the gem, please don't hesitate to make a donation.
|
7
|
+
|
8
|
+
[![Click here to lend your support to: axlsx and make a donation at www.pledgie.com !](http://www.pledgie.com/campaigns/17814.png?skin_name=chrome)](http://www.pledgie.com/campaigns/17814)
|
9
|
+
|
10
|
+
**IRC**:[irc.freenode.net / #axlsx](irc://irc.freenode.net/axlsx)
|
11
|
+
|
12
|
+
**Git**:[http://github.com/randym/axlsx](http://github.com/randym/axlsx)
|
13
|
+
|
14
|
+
**Twitter**: [https://twitter.com/morgan_randy](https://twitter.com/morgan_randy)
|
15
|
+
|
16
|
+
**Google Group**: [https://groups.google.com/forum/?fromgroups#!forum/axlsx](https://groups.google.com/forum/?fromgroups#!forum/axlsx)
|
17
|
+
|
18
|
+
**Author**: Randy Morgan
|
19
|
+
|
20
|
+
**Copyright**: 2011 - 2013
|
21
|
+
|
22
|
+
**License**: MIT License
|
23
|
+
|
24
|
+
**Latest Version**: 2.0.1
|
25
|
+
|
26
|
+
**Ruby Version**: 1.9.2, 1.9.3, 2.0.0
|
27
|
+
|
28
|
+
**JRuby Version**: 1.9 modes
|
29
|
+
|
30
|
+
**Rubinius Version**: rubinius 2.0.0dev * lower versions may run, this gem always tests against head.
|
31
|
+
|
32
|
+
**Release Date**: September 12th 2013
|
33
|
+
|
34
|
+
If you are working in rails, or with active record see:
|
35
|
+
[acts_as_xlsx](http://github.com/randym/acts_as_xlsx)
|
36
|
+
|
37
|
+
acts_as_xlsx is a simple ActiveRecord mixin that lets you generate a workbook with:
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
Posts.where(created_at > Time.now-30.days).to_xlsx
|
41
|
+
```
|
42
|
+
|
43
|
+
** and **
|
44
|
+
|
45
|
+
* http://github.com/straydogstudio/axlsx_rails
|
46
|
+
Axlsx_Rails provides an Axlsx renderer so you can move all your spreadsheet code from your controller into view files. Partials are supported so you can organize any code into reusable chunks (e.g. cover sheets, common styling, etc.) You can use it with acts_as_xlsx, placing the to_xlsx call in a view and add ':package => xlsx_package' to the parameter list. Now you can keep your controllers thin!
|
47
|
+
|
48
|
+
There are guides for using axlsx and acts_as_xlsx here:
|
49
|
+
[http://axlsx.blog.randym.net](http://axlsx.blog.randym.net)
|
50
|
+
|
51
|
+
If you are working with ActiveAdmin see:
|
52
|
+
|
53
|
+
[activeadmin-axlsx](http://github.com/randym/activeadmin-axlsx)
|
54
|
+
|
55
|
+
It provides a plugin and dsl for generating downloadable reports.
|
56
|
+
|
57
|
+
The examples directory contains a number of more specific examples as
|
58
|
+
well.
|
59
|
+
|
60
|
+
Synopsis
|
61
|
+
--------
|
62
|
+
|
63
|
+
Axlsx is an Office Open XML Spreadsheet generator for the Ruby programming language.
|
64
|
+
With Axlsx you can create excel worksheets with charts, images (with links), automated and fixed column widths, customized styles, functions, tables, conditional formatting, print options, comments, merged cells, auto filters, file and stream serialization as well as full schema validation. Axlsx excels at helping you generate beautiful Office Open XML Spreadsheet documents without having to understand the entire ECMA specification.
|
65
|
+
|
66
|
+
![Screen 1](https://github.com/randym/axlsx/raw/master/examples/sample.png)
|
67
|
+
|
68
|
+
|
69
|
+
|
70
|
+
Feature List
|
71
|
+
------------
|
72
|
+
|
73
|
+
1. Author xlsx documents: Axlsx is made to let you easily and quickly generate professional xlsx based reports that can be validated before serialization.
|
74
|
+
|
75
|
+
2. Generate 3D Pie, Line, Scatter and Bar Charts: With Axlsx chart generation and management is as easy as a few lines of code. You can build charts based off data in your worksheet or generate charts without any data in your sheet at all. Customize gridlines, label rotation and series colors as well.
|
76
|
+
|
77
|
+
3. Custom Styles: With guaranteed document validity, you can style borders, alignment, fills, fonts, and number formats in a single line of code. Those styles can be applied to an entire row, or a single cell anywhere in your workbook.
|
78
|
+
|
79
|
+
4. Automatic type support: Axlsx will automatically determine the type of data you are generating. In this release Float, Integer, String, Date, Time and Boolean types are automatically identified and serialized to your spreadsheet.
|
80
|
+
|
81
|
+
5. Automatic and fixed column widths: Axlsx will automatically determine the appropriate width for your columns based on the content in the worksheet, or use any value you specify for the really funky stuff.
|
82
|
+
|
83
|
+
6. Support for automatically formatted 1904 and 1900 epochs configurable in the workbook.
|
84
|
+
|
85
|
+
7. Add jpg, gif and png images to worksheets with hyperlinks
|
86
|
+
|
87
|
+
8. Reference cells in your worksheet with "A1" and "A1:D4" style references or from the workbook using "Sheet1!A3:B4" style references
|
88
|
+
|
89
|
+
9. Cell level style overrides for default and customized style objects
|
90
|
+
|
91
|
+
10. Support for formulas, merging, row and column outlining as well as
|
92
|
+
cell level input data validation.
|
93
|
+
|
94
|
+
12. Auto filtering tables with worksheet.auto_filter as well as support for Tables
|
95
|
+
|
96
|
+
13. Export using shared strings or inline strings so we can inter-op with iWork Numbers (sans charts for now).
|
97
|
+
|
98
|
+
14. Output to file or StringIO
|
99
|
+
|
100
|
+
15. Support for page margins and print options
|
101
|
+
|
102
|
+
16. Support for password and non password based sheet protection.
|
103
|
+
|
104
|
+
17. First stage interoperability support for GoogleDocs, LibreOffice,
|
105
|
+
and Numbers
|
106
|
+
|
107
|
+
18. Support for defined names, which gives you repeated header rows for printing.
|
108
|
+
|
109
|
+
19. Data labels for charts as well as series color customization.
|
110
|
+
|
111
|
+
20. Support for sheet headers and footers
|
112
|
+
|
113
|
+
21. Pivot Tables
|
114
|
+
|
115
|
+
22. Page Breaks
|
116
|
+
|
117
|
+
Installing
|
118
|
+
----------
|
119
|
+
|
120
|
+
To install Axlsx, use the following command:
|
121
|
+
|
122
|
+
$ gem install axlsx
|
123
|
+
|
124
|
+
#Examples
|
125
|
+
------
|
126
|
+
|
127
|
+
The example listing is getting overly large to maintain here.
|
128
|
+
If you are using Yard, you will be able to see the examples in line below.
|
129
|
+
|
130
|
+
Here's a teaser that kicks about 2% of what the gem can do.
|
131
|
+
|
132
|
+
```ruby
|
133
|
+
Axlsx::Package.new do |p|
|
134
|
+
p.workbook.add_worksheet(:name => "Pie Chart") do |sheet|
|
135
|
+
sheet.add_row ["Simple Pie Chart"]
|
136
|
+
%w(first second third).each { |label| sheet.add_row [label, rand(24)+1] }
|
137
|
+
sheet.add_chart(Axlsx::Pie3DChart, :start_at => [0,5], :end_at => [10, 20], :title => "example 3: Pie Chart") do |chart|
|
138
|
+
chart.add_series :data => sheet["B2:B4"], :labels => sheet["A2:A4"], :colors => ['FF0000', '00FF00', '0000FF']
|
139
|
+
end
|
140
|
+
end
|
141
|
+
p.serialize('simple.xlsx')
|
142
|
+
end
|
143
|
+
```
|
144
|
+
|
145
|
+
Please see the [examples](https://github.com/randym/axlsx/tree/master/examples/example.rb) for more.
|
146
|
+
|
147
|
+
{include:file:examples/example.rb}
|
148
|
+
|
149
|
+
There is much, much more you can do with this gem. If you get stuck, grab me on IRC or submit an issue to GitHub. Chances are that it has already been implemented. If it hasn't - let's take a look at adding it in.
|
150
|
+
|
151
|
+
#Documentation
|
152
|
+
--------------
|
153
|
+
|
154
|
+
This gem is 100% documented with YARD, an exceptional documentation library. To see documentation for this, and all the gems installed on your system use:
|
155
|
+
|
156
|
+
gem install yard kramdown
|
157
|
+
|
158
|
+
yard server -g
|
159
|
+
|
160
|
+
#Specs
|
161
|
+
------
|
162
|
+
|
163
|
+
This gem has 100% test coverage using test/unit. To execute tests for this gem, simply run rake in the gem directory.
|
164
|
+
|
165
|
+
#Change log
|
166
|
+
---------
|
167
|
+
- **
|
168
|
+
- Added Cell#name so you you can quickly create a defined name for a single cell in your workbook.
|
169
|
+
- Added full book view and sheet state management. This means you can specify how the workbook renders as well as manage sheet visibility.
|
170
|
+
- Added smoothing management for line charts series
|
171
|
+
- **September.12.13**:2.0.1
|
172
|
+
- Unpinned rubyzip version
|
173
|
+
- **September.12.13**:2.0.0
|
174
|
+
- DROPPED support for ruby 1.8.7
|
175
|
+
- Altered readme to link to contributors
|
176
|
+
- Lots of improvements to make charts and relations more stable.
|
177
|
+
- Patched color param mutation.
|
178
|
+
- Data sourced for pivot tables can now come from other sheets.
|
179
|
+
- Altered image file extension comparisons to be case insensitive.
|
180
|
+
- Added control character sanitization to shared strings.
|
181
|
+
- Added page breaks. see examples/example.rb for an example.
|
182
|
+
- Bugfix: single to dual cell anchors for images now swap properly so you can set the end_at position during instantiation, in a block or directly on the image.
|
183
|
+
- Improved how we convert date/time to include the UTC offset when provided.
|
184
|
+
- Pinned rubyzip to 0.9.9 for those who are not ready to go up. Please note that release 2.0.1 and on will be using the 1.n.n series of rubyzip
|
185
|
+
- Bugfix: transposition of cells for Worksheet#cols now supports
|
186
|
+
incongruent column counts.counts
|
187
|
+
- Added space preservation for cell text. This will allow whitespace
|
188
|
+
in cell text both when using shared strings and when serializing
|
189
|
+
directly to the cell.
|
190
|
+
- **April.24.13**:1.3.6
|
191
|
+
- Fixed LibreOffice/OpenOffice issue to properly apply colors to lines
|
192
|
+
in charts.
|
193
|
+
- Added support for specifying between/notBetween formula in an array.
|
194
|
+
*thanks* straydogstudio!
|
195
|
+
- Added standard line chart support. *thanks* scambra
|
196
|
+
- Fixed straydogstudio's link in the README. *thanks* nogara!
|
197
|
+
- **February.4.13**:1.3.5
|
198
|
+
- converted vary_colors for chart data to instance variable with appropriate defulats for the various charts.
|
199
|
+
- Added trust_input method on Axlsx to instruct the serializer to skip HTML escaping. This will give you a tremendous performance boost,
|
200
|
+
Please be sure that you will never have <, >, etc in your content or the XML will be invalid.
|
201
|
+
- Rewrote cell serialization to improve performance
|
202
|
+
- Added iso_8601 type to support text based date and time management.
|
203
|
+
- Bug fix for relationahip management in drawings when you add images
|
204
|
+
and charts to the same worksheet drawing.
|
205
|
+
- Added outline_level_rows and outline_level_columns to worksheet to simplify setting up outlining in the worksheet.
|
206
|
+
- Added support for pivot tables
|
207
|
+
- Added support for descrete border edge styles
|
208
|
+
- Improved validation of sheet names
|
209
|
+
- Added support for formula value caching so that iOS and OSX preview can show the proper values. See Cell.add_row and the formula_values option.
|
210
|
+
|
211
|
+
Please see the {file:CHANGELOG.md} document for past release information.
|
212
|
+
|
213
|
+
# Known interoperability issues.
|
214
|
+
As axslx implements the Office Open XML (ECMA-376 spec) much of the
|
215
|
+
functionality is interoperable with other spreadsheet software. Below is
|
216
|
+
a listing of some known issues.
|
217
|
+
|
218
|
+
1. Libre Office
|
219
|
+
- You must specify colors for your series. see examples/chart_colors.rb
|
220
|
+
for an example.
|
221
|
+
- You must use data in your sheet for charts. You cannot use hard coded
|
222
|
+
values.
|
223
|
+
- Chart axis and gridlines do not render. I have a feeling this is
|
224
|
+
related to themes, which axlsx does not implement at this time.
|
225
|
+
|
226
|
+
2. Google Docs
|
227
|
+
- Images are known to not work with google docs
|
228
|
+
- border colors do not work
|
229
|
+
|
230
|
+
3. Numbers
|
231
|
+
- you must set 'use_shared_strings' to true. This is most
|
232
|
+
conveniently done just before rendering by calling Package.use_shared_strings = true prior to serialization.
|
233
|
+
|
234
|
+
```ruby
|
235
|
+
p = Axlsx::Package.new
|
236
|
+
p.workbook.add_worksheet(:name => "Basic Worksheet") do |sheet|
|
237
|
+
sheet.add_row ["First Column", "Second", "Third"]
|
238
|
+
sheet.add_row [1, 2, 3]
|
239
|
+
end
|
240
|
+
p.use_shared_strings = true
|
241
|
+
p.serialize('simple.xlsx')
|
242
|
+
```
|
243
|
+
- charts do not render
|
244
|
+
|
245
|
+
|
246
|
+
#Thanks!
|
247
|
+
|
248
|
+
Open source software is a community effort. None of this could have been
|
249
|
+
done without the help of these awesome folks.
|
250
|
+
|
251
|
+
[contributors](https://github.com/randym/axlsx/graphs/contributors)
|
252
|
+
|
253
|
+
#Copyright and License
|
254
|
+
----------
|
255
|
+
|
256
|
+
Axlsx © 2011-2013 by [Randy Morgan](mailto:digial.ipseity@gmail.com).
|
257
|
+
|
258
|
+
Axlsx is licensed under the MIT license. Please see the LICENSE document for more information.
|