Permalink
Commits on Jul 12, 2013
  1. use 1.8.7 syntax

    randym committed Jul 12, 2013
  2. Merge pull request #213 from die-antwort/refactor-relationships

    Make relationship ids more reliable.
    randym committed Jul 12, 2013
Commits on Jul 8, 2013
  1. Implement Relationship.clear_cached_instances, use it before serializ…

    …ing the package.
    
    This is necessary to make serialization idempotent (i.e. make sure that Relationship instances are generated with the same IDs everytime the package is serialized). It also fixes a memory leak if Axlsx is used in a long running server process (eg a Rails app).
    noniq committed Jul 8, 2013
  2. Simply Relationship.next_free_id by depending on number of cached ins…

    …tances.
    
    Only drawback: Setting @next_freed_id_counter to 1000 in tc_helper.rb is no longer possible. But this was useful mainly while adding / fixing test cases when implementing the Relationship instance cache.
    noniq committed Jul 8, 2013
  3. Make relationship ids more reliable.

    Relationship instances now keep track of their own id – this should be much more reliable than the old way of more or less “guessing” the relationship id based on the position of some object in some array. Fixes randym#212, especially.
    
    Each relationship now has its own, unique id – except for the cases when it doesn’t: Some relationships need to share the same id, see `Relation#should_use_same_id_as?` for the gory details.
    
    All tests pass, and the full example.xlsx is generated without errors and looks fine in Excel for Mac 2011.
    
    The pivot table example still has the problems mentioned in randym#168 – but as far as I can tell I didn’t make it worse (Excel is still be able to “repair” the file, and the repaired file then contains the pivot table).
    noniq committed Jul 5, 2013
  4. Make sure serializing axlsx packages with identical contents always r…

    …esults in identical zip files.
    
    This improves the possibilites for caching and/or consolidating the generated zip (xlsx) files.
    
    Up to now, serializing the same package at different times resulted in different zip files because of the timestamp in the zip entry metadata.
    
    Note: To generate identical packages (and thus identical zip files), you'll have set Core#created explicitly, eg. with `Package.new(created_at: Time.local(2013, 1, 1)`.
    noniq committed Jul 8, 2013
Commits on Jul 3, 2013
  1. Fix incorrectly named test case

    This test case was completely ignored when running the tests, because its name didn't start with "test_".
    
    Some details in the test case needed to be fixed, too.
    noniq committed Jul 3, 2013
Commits on Jun 28, 2013
  1. Merge pull request #194 from sdeframond/subtotal

    Add a subtotal option to PivotTable.
    randym committed Jun 28, 2013
  2. Merge pull request #205 from moses/configurable-display-blanks-as

    provide a better default for dispBlanksAs and allow it to be configured
    randym committed Jun 28, 2013
  3. Merge pull request #209 from moses/fix-axes-ordering

    Fixes Issue #202 Axes are borked in Bar3DChart
    randym committed Jun 28, 2013
  4. Merge pull request #203 from moses/master

    Fixes #202 Axes are borked in Bar3DChart
    randym committed Jun 28, 2013
Commits on Jun 27, 2013
  1. Fixes Issue #202 Axes are borked in Bar3DChart by requiring axis orde…

    …r in the constructor
    moses committed Jun 27, 2013
  2. Fixes Issue #202 Axes are borked in Bar3DChart by requiring axis orde…

    …r in the constructor
    moses committed Jun 27, 2013
  3. Merge remote-tracking branch 'randym/master'

    * randym/master:
      escape formula for conditional formatting
      fix typo in specs
      added sparse array transposition with blocks for rows/cols switching and some docs updates for release prep
    moses committed Jun 27, 2013
Commits on Jun 23, 2013
  1. fix typo in specs

    randym committed Jun 23, 2013
  2. added sparse array transposition with blocks for rows/cols switching …

    …and some docs updates for release prep
    randym committed Jun 23, 2013
  3. fixed bad test case and bad code for dispBlanksAs (setting now actual…

    …ly makes it into XML)
    
    This means there are many other test cases in the suite that are not verifying what they look like they're verifying.
    moses committed Jun 23, 2013
Commits on Jun 13, 2013
Commits on Jun 12, 2013
  1. Merge pull request #195 from die-antwort/allow-override-for-created-at

    Allow overriding the 'created' timestamp in the docprops.
    randym committed Jun 12, 2013
  2. Allow overriding the 'created' timestamp in the docprops.

    Can be specified as option to Package#new:
    ```
    Axlsx::Package.new :created_at => time
    ```
    
    If omitted, the current time at the moment the document is serialized will be used. This change is therefore fully backward compatible.
    noniq committed Jun 12, 2013
Commits on Jun 8, 2013
  1. Merge pull request #190 from amalagaura/patch-1

    Update bg_color in conditional formatting
    randym committed Jun 8, 2013
Commits on May 26, 2013
  1. Update test for conditional formatting bg_color

    amalagaura committed with Ankur Sethi May 26, 2013
  2. Update bg_color in conditional formatting

    Conditional formatting for background color fills is different for DXF.  This must be undocumented and is quite annoying.  I verified the behavior in Excel 2010 Mac and Windows.  I didn't understand why background colors were not being applied even though the style was being applied for conditional formatting.  Looking at styles.xml I saw that it is different in a file created by Excel.  I have updated the code to reflect it and tested in Mac and Windows.
    amalagaura committed May 26, 2013
Commits on May 14, 2013
Commits on May 12, 2013