Skip to content
This repository has been archived by the owner on Jan 10, 2021. It is now read-only.

1.0 API #19

Merged
merged 12 commits into from
Mar 15, 2012
Merged

1.0 API #19

merged 12 commits into from
Mar 15, 2012

Conversation

kellyredding
Copy link
Member

  • workbook build is run in the context of the Workbook object
  • pass in data to the build context using a data hash (outside instance variables no longer applied to the build context)
  • uses an element stack to track the current element being build
  • has a builder-style render option
  • only the latest row object (per worksheet) is cached in memory for self referencing
  • improved memory handling and performace (Memory bloating on large data #11)
  • pass in data as an arg when initializing a cell objects (pass in data as an arg when initializing a cell object #15)
  • pass in name of worksheet as an arg
  • better structured to drive many different types of writers - not just Xmlss

* will no longer instance_eval/exec each on each element
* all build execution will now run in the scope of the workbook
* or, if using a builder style approach, the scope of the caller
* this means the workbook will store reference collections and provide an api for adding to and referencing them
* style objects are created, stored, and referenced from the workbook scope
* style directives no longer defined in the scope of the style obj
* workbook proxies style obj directives
* elements are created to validate and store data
* these are then passed to the writer who is responsible for using the data as it sees fit
* all element creation is done in the scope of the workbook
* mixins, partials, templates, and styles all build in a consistant manner with the new api changes
Conflicts:
	Gemfile.lock
* using the builder render approach
* using the updated Xmlss API that is Osheet compatible
* adding in to_s, to_data, and to_file workbook meths
* removing all view handler stuff (addresses #17)
* getting name, colspan, rowspan attribute setting hooked up
* updating the examples to run on the new API
kellyredding added a commit that referenced this pull request Mar 15, 2012
@kellyredding kellyredding merged commit db39788 into 1.0rc Mar 15, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant