Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 1.4.3
Commits on Oct 14, 2011
  1. @scottjg

    Release 1.4.3

    scottjg authored
Commits on Oct 12, 2011
  1. @scottjg

    Merge pull request #8 from scottjg/faster

    scottjg authored
    Print tables a lot faster
Commits on Oct 8, 2011
  1. @scottjg

    Evenly size spanned columns

    scottjg authored
    My previous commit did not take into account that when a cell spans
    multiple columns, and the existing columns combined are not wide enough,
    then spanned columns should grow evenly (just as the original code did).
    This fix keeps the old behavior, while still maintaing the speed
    benefits of keeping track of the largest columns when a row is added,
    rather than recalculating each time a cell is rendered.
Commits on Oct 7, 2011
  1. @scottjg

    Print tables a lot faster

    scottjg authored
    This changes the computation of column lengths to linear time.
    For me, this lets me print out a 1000 row table in less than a second.
    It used to take almost 30 seconds.
Commits on Jan 14, 2010
  1. Release 1.4.2

    authored
  2. Added more examples

    authored
  3. Modified the tests to correct several bugs with cells that span multi…

    root authored
    …ple columns
    
    Cells with colspan greater than 1, when appearing after other cells, will now appear correctly.  In addition, columns will automatically grow so that all of the the multi-column cell will fit in the provided space
Commits on Dec 18, 2009
  1. Release 1.4.1

    authored
  2. @splattael
  3. @splattael
  4. @splattael

    Add failing spec for bug which I introduced :(

    splattael authored
    Fix follows soon.
  5. Release 1.4.0

    authored
  6. Fixed invalid example

    authored
  7. Updated examples

    authored
  8. Inline comments for #render_cell

    authored
  9. Misc refactoring

    authored
  10. Merged splattael/master

    authored
  11. @splattael
  12. @splattael

    Render custom separators with Table#add_separator.

    splattael authored
    Now you can render tables like:
    
    t = table do
      self.headings = %w(Language Lines)
      self.add_row %w(Ruby 117)
      self.add_row %w(Javascript 203)
      self.add_row %w(Shell 56)
      self.add_separator
      self.add_row %w(All 376)
    end
    puts t
    
    +------------+-------+
    | Language   | Lines |
    +------------+-------+
    | Ruby       | 117   |
    | Javascript | 203   |
    | Shell      | 56    |
    +------------+-------+
    | All        | 376   |
    +------------+-------+
  13. @splattael
Commits on Oct 16, 2009
  1. Release 1.3.0

    authored
  2. Misc refactoring

    authored
  3. inclusive to exclusive range

    authored
  4. Misc refactorings

    authored
  5. Comment changes

    authored
  6. Removed useless comments

    authored
  7. Fixed some old crappy code

    authored
  8. Inline docs

    authored
  9. Code style changes

    authored
  10. Cleaning up specs

    authored
Commits on Oct 11, 2009
  1. Gem description

    authored
Commits on Oct 10, 2009
  1. Docs

    authored
Something went wrong with that request. Please try again.