summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/util
AgeCommit message (Collapse)Author
2023-04-12Fix missing URI.open for ruby < 2.5Koza
2023-04-12improve validationSebastiano
add test cases
2023-04-10Fix Layout/LeadingCommentSpace offensesGeremia Taglialatela
``` rubocop --only Layout/LeadingCommentSpace -a ```
2023-04-09Fix offenses related to indentation consistencyGeremia Taglialatela
2023-04-08Fix Layout/EmptyLineAfterGuardClause offensesGeremia Taglialatela
``` rubocop --only Layout/EmptyLineAfterGuardClause -a ```
2023-04-08Fix space-related offensesGeremia Taglialatela
- Layout/SpaceAfterComma - Layout/SpaceAroundEqualsInParameterDefault - Layout/SpaceAroundOperators - Layout/SpaceBeforeBlockBraces - Layout/SpaceInsideBlockBraces - Layout/SpaceInsideHashLiteralBraces - Layout/SpaceInsideParens
2023-04-08Fix EmptyLines related offensesGeremia Taglialatela
2023-04-07Fix Layout/BlockAlignment offensesGeremia Taglialatela
Manually fixed
2023-04-06Fix Layout/EmptyLinesAroundAttributeAccessorGeremia Taglialatela
``` rubocop --only Layout/EmptyLinesAroundAttributeAccessor -a ```
2023-04-06Fix Layout/EmptyLineBetweenDefs offensesGeremia Taglialatela
``` rubocop --only Layout/EmptyLineBetweenDefs -a ```
2023-04-06Fix Layout/EmptyLines offensesGeremia Taglialatela
``` rubocop --only Layout/EmptyLines -a ```
2023-04-06Fix Style/Encoding offensesGeremia Taglialatela
``` rubocop --only Style/Encoding -a ```
2023-04-06Fix Layout/TrailingEmptyLines offensesGeremia Taglialatela
``` rubocop --only Layout/TrailingEmptyLines -a ```
2023-04-06Remove Layout/TrailingWhitespace offensesGeremia Taglialatela
``` rubocop --only Layout/TrailingWhitespace -a ```
2022-09-21Update lib/axlsx/util/constants.rbStefan Daschek
Co-authored-by: Geremia Taglialatela <[email protected]>
2022-09-21Move worksheet name forbidden chars to a constantGeremia Taglialatela
2022-09-21Add worksheet name max length to a constantGeremia Taglialatela
Close #163
2022-05-23Fix default values in docsStefan
2022-03-02instance_values -> instance_values_forpjskennedy
2022-03-02Update references to use new class methodpjskennedy
2022-02-07Validate name option to be non-empty string when passed.Josef Šimánek
2022-01-24Refractor to use constant based error messagesWeston Ganger
2021-03-27Replace mimemagic with marcel (#95)Jorne Kandziora
Mimemagic requires users to download or install additional files. Rails used Marcel as an abstration layer on this library. Marcel was updated to another file matching database. Following Rails in this matter will remove the need for users to do additional work, just to use caxlsx.
2020-11-27Allow to set cell type to `date`Artem Kozaev
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-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.
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.
2017-04-01chore(doc): document some membersrandym
2017-04-01fix(two_cell_anchor): spat arguments for start_at, end_at when they are in ↵randym
the options hash
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
2015-09-30Fix core rels namespaceRômulo A. Ceccon
The correct core rels namespace is http://schemas.openxmlformats.org/package/..., and not http://schemas.openxmlformats.org/officeDocument/...
2015-07-05Merge branch 'marker_symbols' of https://github.com/mfrank01/axlsx into ↵Jonathan Tron
mfrank01-marker_symbols
2015-07-03Extract mime type detection to an utility classmarc
2014-07-29Allow custom marker symbol shapes on chartmfrank01
2014-04-04Fix boolean values so the output matches Excel and works on NumbersJurriaan Pruis
Use 1 or 0 instead of 'true' or 'false' in the XML output
2014-02-26Huge refactoringJurriaan Pruis
Do not create huge strings Let Row inherit from SimpleTypedList Optimized sanitizing Optimized validation And more..
2013-09-29add validation for Worksheet#state and WorkbookView#visibilityRandy Morgan
2013-09-13remove stupidity, remove warningRandy Morgan
2013-09-13Fixes for anchor swapping when adding images. - Two -> One swap still pending.Randy Morgan
2013-08-17refactored stupidityRandy Morgan
2013-08-17safe to camel all valuesRandy Morgan
2013-08-17ensure that values are camelized for serialized attributesRandy Morgan
2013-06-23provide a better default for dispBlanksAs and allow it to be configuredMoses Hohman
2013-05-12implement transpose for SimpleTypedList that supports sparse data.Randy Morgan
2013-04-19Added prep for 1.3.6 releaseRandy Morgan
2013-02-04Completed missing docs and pre-release prepRandy Morgan
2013-01-10reduced processing of 3000 rows from 3+ seconds to just under 2Randy Morgan
2012-12-12Test for invalid characters in the sheet name.Hayden Ball
With thanks to http://stackoverflow.com/a/451488/1322410 for providing the list of characters
2012-12-04Added unsigned_int and float attr_accessor helpersRandy Morgan
These need to be added to existing classes to replace all the repeated accessor method validation.