summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/util/serialized_attributes.rb
AgeCommit message (Collapse)Author
2023-05-15Fix rubocop offensesPaul Kmiec
We still need Style/OptionalBooleanParameter as Ruby 2.7.5 gets confused with, ``` def serialized_attributes(str = +'', additional_attributes = {}, camelize_value: true) ```
2023-05-15Serialize attributes more efficientlyPaul Kmiec
The attributes in rows, cells, styles, etc are pre-defined for each type and almost never change. The current code, however, does not take that into account by reading all instance variables (via declared_attributes), filtering out the blank one and ones that are not xml attributes, and by camelizing each one. We can avoid all this extra work by computing the camels and ivars for xml attributes once and directly read the instance variables we care about.
2023-05-04Fix tests / code to work with frozen string literalsPaul Kmiec
2023-05-04Enable Style/FrozenStringLiteralComment and autocorrectPaul Kmiec
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-06Remove Layout/TrailingWhitespace offensesGeremia Taglialatela
``` rubocop --only Layout/TrailingWhitespace -a ```
2022-03-02instance_values -> instance_values_forpjskennedy
2022-03-02Update references to use new class methodpjskennedy
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-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-04-19Added prep for 1.3.6 releaseRandy Morgan
2012-11-25Updated readme and docs for pre 1.3.4 releaseRandy Morgan
2012-11-25Patched serilalized_element_attributes to properly update value from called ↵Randy Morgan
block
2012-11-25Refactored header_footer element serialization.Randy Morgan
This adds a serializable_element_attributes helper that should be integrated as we have time for serializing child elements that are based on object attributes.
2012-11-05completed documentationRandy Morgan
2012-10-18Patched serialized attributes to use double quotes for attribute valuesRandy Morgan
2012-10-14Patched serialized_attributes for 1.8.7Randy Morgan
I really need to discontinue support for 1.8.7...
2012-10-14updated serialized_attributes to reject nil valuesRandy Morgan
2012-10-14Corrected serializable_attributes declaraion and added an ↵Randy Morgan
additional_attributes parameter to specify attributes that are not instance_values
2012-10-14Extracted attriubte serializationRandy Morgan