Skip to content

Releases: sandrods/odf-report

0.9.0

16 Feb 21:11

Choose a tag to compare

Internal Modernization

This release brings a significant internal modernization of the codebase. No breaking changes or new user-facing features — the public API remains the same.

The goal was to simplify the internals, reduce duplication, and expand test coverage, laying the groundwork for easier maintenance and future development of the gem.

Refactored

  • Extracted shared DSL (add_field, add_text, add_image, add_table, add_section) into Composable module, included by both Report and Nestable
  • Unified DataSource to use lazy evaluation — set_source stores the record, value decides extraction strategy at read time
  • Broke up Report#generate into focused private methods (replace_placeholders!, include_images)
  • Simplified Table internals: renamed methods, removed redundant code
  • Cleaned up Image, Template, Text, Field, and Parser::Default

Testing

  • Added RSpec specs for nested tables, sub-sections, table headers, fields inside text, and rich text in sections/tables (19 → 38 examples)
  • Organized specs and templates into grouped subfolders
  • Decoupled spec templates from legacy test directory

Full Changelog: 0.8.1...0.9.0

0.8.1

22 Mar 17:41

Choose a tag to compare

What's Changed

Full Changelog: v0.8.0...0.8.1

v0.8.0

21 Mar 19:27
0a7fac1

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.7.3...v0.8.0

v0.7.3

23 Feb 18:29

Choose a tag to compare

Fixed

  • newer versions (> 1.3.0) of Nokogiri where presenting "Nokogiri::CSS::SyntaxError: unexpected '|'" #120
  • prevent unnecessary memory expensive operations with missing placeholders #117

What's Changed

New Contributors

Full Changelog: v0.7.2...v0.7.3

v0.7.2

02 Jun 16:44

Choose a tag to compare

fixes files being recognized as "broken file" in Microsoft Word

closes #104 and #106

v0.7.1

01 Jun 19:37
77ee55a

Choose a tag to compare

  • remove image if path is null
  • remove section if collection is empty/null

v0.7.0

01 Jun 16:50

Choose a tag to compare

  • allow nested images inside tables and sections
  • allow sections inside tables