summaryrefslogtreecommitdiffhomepage
path: root/lib/axlsx/workbook/worksheet/row.rb
AgeCommit message (Collapse)Author
2023-06-10Fix safe Style/ColonMethodCall offensesGeremia Taglialatela
Caxlsx is using both `.` and `::`, 220 occurrences vs 280 to invoke methods on `Axlsx` module. This commit standardizes the approach towards `.`, which will also allow shorter lines. Performance is not affected ``` Comparison: Axlsx.validate: 8515252.3 i/s Axlsx::validate: 8512863.7 i/s - same-ish: difference falls within error ```
2023-05-31Use Ruby 1.9 hash syntaxGeremia Taglialatela
2023-05-15Also cache row_refPaul Kmiec
The `row_ref` method is called once for each column in a row and once at the row level.
2023-05-05Pipe output directly to str and avoid additional memory allocationsPaul Kmiec
Currently, there are lots of examples of code like this, ``` str << ('<tag ' << foo << ' ' << bar << '/>') ``` which create the string for the tag in memory before piping to str. We can avoid creating all of these intermediate strings by dropping the paranthesis and piping directly to str. This relies on the `str` passed around to handle lots of small appends. This is a problem when using RubyZip, but that is solved in the next commit.
2023-05-04Fix tests / code to work with frozen string literalsPaul Kmiec
2023-05-04Enable Style/FrozenStringLiteralComment and autocorrectPaul Kmiec
2023-04-13Update row.rbJohnny Shields
2023-04-13Merge branch 'master' into escape-formulas-improvementJohnny Shields
2023-04-12Small fixes: whitespace, typos, ordering, etc. (#188)Johnny Shields
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/SpaceAroundBlockParameters offensesGeremia Taglialatela
``` rubocop --only Layout/SpaceAroundBlockParameters -a ```
2023-04-06Fix Layout/CommentIndentation offensesGeremia Taglialatela
``` rubocop --only Layout/CommentIndentation -a ```
2023-04-06Fix Style/Encoding offensesGeremia Taglialatela
``` rubocop --only Style/Encoding -a ```
2023-04-06Remove Layout/TrailingWhitespace offensesGeremia Taglialatela
``` rubocop --only Layout/TrailingWhitespace -a ```
2023-03-31Add settings for escape_formulas at global, workbook, worksheet, row and ↵johnnyshields
cell levels.
2021-05-31Fix typo in row.rbPascal Andermatt
2021-03-19Implement :offset option for worksheet#add_row (#87)Agustin Gomez
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.)
2016-11-14set color with Row#color=sato-s
2014-12-10Typo in row.rbGary Holtz
"sell" should be "cell"
2014-02-26Huge refactoringJurriaan Pruis
Do not create huge strings Let Row inherit from SimpleTypedList Optimized sanitizing Optimized validation And more..
2013-07-30Update row.rbMichael Westbom
Fixed a little typo.
2012-12-14Added formula_values options and specs for sheet format pr.Randy Morgan
This lets cache formula values and specify the default row height so that iOS and Max OSX previews render properly
2012-11-05refactored Row serializationRandy Morgan
2012-07-15refactoring auto width calculation to improve code quality.Randy Morgan
2012-05-17finishing off row properties.Randy Morgan
2012-05-13updating docsRandy Morgan
2012-04-29examples and read me clean up as well as implementing outlineLevel for row ↵Randy Morgan
and col.
2012-04-27bug fix. https://github.com/randym/axlsx/issues/86Randy Morgan
2012-04-25bug fix to properly assign style/type data when creating rows and partial ↵Randy Morgan
style/types arrays
2012-04-01part way through changing all serialization to use string concatenation ↵Randy Morgan
prior to dropping Nokogiri dep in production.
2012-03-29Implement full set of col attributes and improve performance of autowidth ↵Randy Morgan
two fold. ``` user system total real axlsx_noautowidth 0.810000 0.020000 0.830000 ( 0.836274) axlsx 1.430000 0.160000 1.590000 ( 1.776305) axlsx_shared 9.360000 0.160000 9.520000 ( 9.662113) axlsx_stream 1.320000 0.110000 1.430000 ( 1.429806) csv 0.260000 0.020000 0.280000 ( 0.296828)
2012-03-28Still not fast enough?Randy Morgan
``` user system total real axlsx_noautowidth 0.760000 0.020000 0.780000 ( 0.885482) axlsx 3.560000 0.130000 3.690000 ( 4.158594) axlsx_shared 11.610000 0.180000 11.790000 ( 13.208945) axlsx_stream 3.450000 0.120000 3.570000 ( 3.920745) csv 0.240000 0.010000 0.250000 ( 0.269822)
2012-03-27use << for row string processing as well.Randy Morgan
2012-03-26use Array#join instead of concatenatingochko
(got 1 sec speed improvement for 1000 cells)
2012-03-26Quick and Dirty run on trying interpolated strings instead of nokogiri for ↵Randy Morgan
sheet generation.
2012-02-28patching time converter and specs as well as fixing warnings related to ↵Randy Morgan
uninitialized row#height and worksheet#page_margins
2012-02-27Add support for rows with custom height.Stefan Daschek
2012-02-14changing column_widths to accept *args instead of a declared array.Randy Morgan
2012-02-12Adding in support for optionally using the shared strings table. This will ↵Randy Morgan
allow us to inter-op properly with Numbers
2011-12-05adding in style overrides to cell.rbRandy Morgan
2011-11-27more documentation for 10a releaseRandy Morgan
2011-11-27adding yields for package workbook, workbook styles and cols collection on ↵Randy Morgan
worksheet to make charting easier.
2011-11-27adding in row_style and col_style methods to worksheet and active record ↵Randy Morgan
'acts_as_axlsx' to provide to_xlsx.
2011-11-26adding in support for ruby 1.9.3Randy Morgan
release version 1.0.9
2011-11-20first commitRandy Morgan