summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx
AgeCommit message (Collapse)Author
2020-07-09fix typo in documentation for label_position (#52)Viktor Polyakov
2020-02-13Improve cell string_autowidth calculations (#44)Weston Ganger
Previously, cells with autowidth sometimes were too narrow for the content to fit. The original width calculation tried to take the difference between narrow and wide chars into account, but it didn’t work out very well. The new calculation is simpler. Compared to the previous implementation it results in cells being slightly wider in most cases.
2020-01-28Fix typo in documentation (#42)
2019-12-29Escape special characters in charts (#40)Zsolt Kozaroczy
Fixes #37
2019-12-20Add option to protect against formula injection attacks (#34)Gabriel Morcote
Caxlsx used to treat cell values beginning with an equal sign as formula by default. This can be dangerous if the input data is user generated or coming from other untrusted sources (see https://www.owasp.org/index.php/CSV_Injection for details). This commit adds a new option `escape_formulas` that can be used with `#add_row` and on instances of `Cell`. If set to true, cell values beginning with an equal sign are treated as normal strings (and will be displayed literally by Excel and co.)
2019-12-17Fix typos in BarChart commentsKoza
2019-12-17Check size in bytes as opposed to string sizeIan Clarkson
- `size` returns length in characters, but doesn't factor in multibyte Unicode characters. By switching to `bytesize`, we check the relevant measure of how many bytes the worksheet name is. - Fixes https://github.com/randym/axlsx/issues/588 - Copy of PR against original axlsx (https://github.com/randym/axlsx/pull/589)
2019-12-15Fix rdoc for BarSeries#shapeStefan Daschek
2019-12-15Fix typoStefan Daschek
See https://github.com/randym/axlsx/pull/606
2019-12-15Fix typo.Stefan Daschek
See https://github.com/randym/axlsx/pull/635
2019-12-03Remove unused / stubbed code related to parsing xlsx filesStefan Daschek
This code was added in 3def8f8895 (back in 2011). It has never been worked on further since; `Axlsx::Parser` is not used anywhere in the whole codebase. Currently there are no plans to support parsing xlsx file anytime soon, so let‘s remove all of this dead code.
2019-10-29Remove a typo from commentvzvu3k6k
Fixnum is removed by 12d6433, but this typo was remained.
2019-10-29fix validate document with font option underlineAli Mujtaba
2019-10-04Version 3.0.1 bump [skip ci]Noel Peden
2019-10-02Cache relationship in Hash rather than in Array.Vladimir Kochnev
Also cacle only ids, not entire instances.
2019-10-02Fix Relationship.instances cache.Vladimir Kochnev
This PR aims to fix several issues with Relationship cache: 1) It's not threadsafe, so I propose to use a TLS variable for this. 2) Memory obtained by cache remains non-freed before the next run of `serialize`. I think it should be freed immediately. 3) Memory should be freed in `ensure` block to prevent memory bloating in case of exception. *There are only two hard things in Computer Science: cache invalidation and naming things.*
2019-09-08Release 3.0.0Noel Peden
2018-02-08chore(coverage): 100% coverage, 100% docsrandym
2018-02-08chore(coverage) increase coverage and cleanuprandym
2018-02-07Merge branch 'master' into release-3.0.0randym
2018-02-07fix(docs): patch docs returns -> returnrandym
2018-02-06Merge branch 'master' into release-3.0.0randym
2018-02-06Merge pull request #554 from ryantk/patch-1Randy Morgan (@morgan_randy)
Fix incorrect option value in rdoc
2018-02-06Merge pull request #563 from MedText/masterRandy Morgan (@morgan_randy)
Add support for Area Charts and 2D Bar Charts
2018-02-06Merge pull request #432 from repinel/fix-cols-docRandy Morgan (@morgan_randy)
[ci skip] Fix the documentation for Worksheet#cols
2018-02-06Merge branch 'master' into release-3.0.0randym
2018-01-11chore(clean): remove white spacerandym
2017-11-17Add support for non-3D bar chartsDavid N. Robinson
2017-11-07Add support for area chartsDavid N. Robinson
2017-10-12Fix incorrect option value in rdocRyan Kendall
2017-05-05Sort archive entries for correct MIME detectionChi-Fung Fan
2017-04-01Merge branch 'master' into release-3.0.0randym
2017-04-01chore(doc): document some membersrandym
2017-04-01chore(version): update versionrandym
2017-04-01fix(options): fix parsing for start_at end_atrandym
2017-04-01chore(depreciated): remove depreciated membersrandym
2017-04-01fix(two_cell_anchor): spat arguments for start_at, end_at when they are in ↵randym
the options hash
2017-03-23Fix typomparramon-kantox
:)
2016-11-15Merge pull request #499 from ehallmark/pivot_table_bugsRandy Morgan (@morgan_randy)
Pivot table bugs
2016-11-15Merge pull request #494 from sato-s/sheet-titleRandy Morgan (@morgan_randy)
Fix #472: worksheet name with underscore
2016-11-15Merge pull request #492 from sato-s/colorRandy Morgan (@morgan_randy)
set color with Row#color=
2016-11-14set color with Row#color=sato-s
2016-11-12fix warning: constant ::Fixnum is deprecatedtakkanm
fix Fixnum deprecated warning on Ruby2.4-preview3. Fixnum was unify into Integer. https://bugs.ruby-lang.org/issues/12005
2016-11-07Added style_info field to pivot_table.rbEvan Hallmark
2016-11-07Updated pivot_table#pivot_field_for to use the axisPage attr for page fields ↵Evan Hallmark
instead of axisCol
2016-11-07Added pivot table option to pass in list of row fields to omit subtotals fromEvan Hallmark
2016-11-07Override NumFmt serialized_attributes to ovid removing underscoresEvan Hallmark
2016-11-04Merge pull request #455 from acl-services/text-typeRandy Morgan (@morgan_randy)
Implement :text cell type
2016-11-02Allow a Row to be passed to merge_cellsMike Dillon
2016-10-09Fix #472: worksheet name with underscoresato-s
Previously, worksheet name was defined as a serializable_attributes that Axlsx automatically camelize by Axlsx.camel . This cause an unexpected worksheet name convertion. For instance, - "Pie_chart" is converted into "Piechart" - "_example" is converted into "Example" This patch disables an unexpected worksheet name convertion.