summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2020-12-07Add version badge [skip ci]Noel Peden
2020-12-07Version bump to 3.0.3Noel Peden
2020-12-03Update CHANGELOG.mdStefan Daschek
2020-12-03Extend cell_type_from_value with sanity checksToms Mikoss
2020-11-12Remove lines referring to Ruby 1.x from GemfileStefan
We only support Ruby 2.3 and newer (see axlsx.gemspec).
2020-11-09Update version requirement for kramdownStefan Daschek
Fixes CVE-2020-14001 kramdown is not used in the gem itself though, only in development when generating documentation.
2020-09-11Restructure examples folder (#47)Zsolt Kozaroczy
Split examples into separate markdown files, each containing a description, sample code, and a screenshot of the resulting xlsx document. The script `generate.rb` is provided to actually generate the example documents by executing the sample code contained in the markdown files.
2020-09-07Merge pull request #60 from kiskoza/update-ruby-versions-on-travisNoel Peden
Update Ruby versions on Travis
2020-09-06Update Ruby versions on TravisKoza
- add 2.7.1 - move every version to latest patches
2020-08-24Explosion explosion fixed - issue 58Noel Peden
2020-08-20Merge pull request #56 from rylwin/add-zip-command-optionStefan Daschek
Add option to `#serialize` with system zip command
2020-08-19Add option to `#serialize` with system zip commandRyan Winograd
Add a `:zip_command` option to `Axlsx::Package#serialize` that allows the user to specify an alternate command to use to perform the zip operation on the XLSX file contents. The default zip operation is provided by RubyZip. On large documents users may experience faster zip times using a zip binary. Resolves #55
2020-08-19Remove unnecessary rescue in testsRyan Winograd
Back in `1e5388ce`, a rescue block was added to `#test_serialization` to prevent the test from breaking on boxes where the file system is not writable. This extra protection doesn't seem necessary anymore, so we are removing the protection in favor of letting the test error in this case.
2020-07-27Update CHANGELOG.mdStefan Daschek
2020-07-27Fix type detection for floats with out-of-rage exponents (#54)Stefan Daschek
Prior to this change, strings like "1e12345" would be interpreted as float values, regardless of the actual value of the exponent (which easily could be out of range for Ruby). In case the exponent was greater than `Float::MAX_10_EXP` (usually 308), this would result in a cell of type `:float` containing the literal string `"Infinity"`. Excel can not parse such cells and therefore gives a “corrupt data” error. In case the exponent was less than `Float::MIN_10_EXP` (usually -307) the cell would contain `0.0`. This does not result in Excel throwing an error, but probably isn't the expected result either. Note that this problem is quite likely to happen when creating a worksheet with hexadecimal strings, because e.g. "1234e567" is a perfectly valid hex value. The additional range check of the exponent introduces a slight performance overhead, so I decided to split the code path: I presume parsing floats with exponents < 100 (or no exponents at all) is way more common, so this code path behaves exactly like before. Only in the case of a 3 digit exponent the additional range check is introduced.
2020-07-16Version bump to 3.0.2 [skip ci]Noel Peden
2020-07-16Binary image read for issue #51Noel Peden
2020-07-14Update CHANGELOG.mdStefan Daschek
2020-07-14Set column width to the maximum allowed value (#53)Sergey Ponomarev
Maximum column width limit in MS Excel is 255 characters https://support.microsoft.com/en-us/office/excel-specifications-and-limits-1672b34d-7043-467e-8e27-269d656771c3 If this value is exceeded, MS Excel gets stuck and doesn't allow column resizing.
2020-07-09fix typo in documentation for label_position (#52)Viktor Polyakov
2020-06-11Fix “known bugs” link to also include closed issues.Stefan Daschek
2020-06-11Change “needs triage / known bug” links to also include closed tickets.Stefan Daschek
2020-06-10Add section about known bugs, and link to Slack channelStefan Daschek
2020-06-10Add section about known bugs.Stefan Daschek
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-02-07Remove global variables from example #32 (#41)Zsolt Kozaroczy
2020-02-06Add slack channel [skip ci]Noel Peden
2020-02-07Improve Readme Links to Examples (#45)Weston Ganger
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-18README link fixes [skip ci]Noel Peden
2019-12-18Merge branch 'master' of https://github.com/caxlsx/axlsxNoel Peden
2019-12-18Rename axlsx_rails to caxlsx_rails [skip ci]Noel Peden
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-15Fix typo.Stefan Daschek
See https://github.com/randym/axlsx/pull/617
2019-12-15Mention axslx_styler in related gems sectionStefan Daschek
2019-12-15Add changelog entry for 2.0.2Stefan Daschek
2019-12-14Add GitHub action for closing stale issuesStefan Daschek
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-11-23Add section about where to (not) post questions and find answers.Stefan Daschek
2019-11-23Add link to FAQStefan Daschek
2019-10-31Add link to contribution guidelinesStefan Daschek
2019-10-31Create CONTRIBUTING.mdStefan Daschek
2019-10-29Delete appveyor.ymlWeston Ganger
2019-10-29Improve READMEWeston Ganger