Repository navigation
Expand file tree
/
Copy pathChangelog
More file actions
48 lines (41 loc) · 2.21 KB
/
Copy pathChangelog
File metadata and controls
48 lines (41 loc) · 2.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
2010-02-17 Tomas Kramar, version 0.1.0
* initial release
2010-02-20 Tomas Kramar, version 0.1.1
* XML special characters are properly escaped. If your template data
contained '<', '>' or '&', the document generated by previous version would be
invalid. The characters are now escaped to '<', '>' and '''
* minor test refactoring
2010-03-30 Thomas Ritz
* Support changes in the header
* new matcher "contain_in"
2010-09-22 Tomas Kramar, version 0.2.0
* ruby 1.9 support
* use instance variables in templates
2010-11-3 Ed Hirgelt, version 0.2.1
* do not remove whitespace when processing the template - this was causing
problems
2026-07-10 version 0.2.3
* performance: OdtEruby#convert is now O(n) instead of O(n^2) in the number of
template nodes. It was appending each node's compiled lines with
"buffer << arr; buffer.flatten!", rescanning the whole (growing) buffer on
every node; switched to "buffer.concat(arr)". Large ODT bodies compile
dramatically faster (e.g. ~37x at 10k nodes).
* compatibility: works with rubyzip >= 1.0 (Zip::File). Requiring the gem
previously failed on any modern setup because rubyzip removed the "zip/zip"
require path and renamed Zip::ZipFile to Zip::File.
* tests: run on RSpec 3 and modern Ruby.
2026-07-10 version 0.4.0
* feature: meta.xml is now processed too, so template markup placed in the
document metadata (e.g. a templated dc:title) is filled in like anywhere
else. Implements the enhancement from #5 (thanks leavengood).
2026-07-10 version 0.3.0
* feature: embedded objects (e.g. charts) placed inside a loop are now
duplicated once per iteration, each evaluated against that iteration's
binding. References in the draw:frame are rewritten to unique "Object N"
directories, supporting files (meta.xml, ObjectReplacements) are copied and
the new entries are registered in META-INF/manifest.xml. Ported from #18
(thanks luizloja).
* bugfix: String#escape_xml and #convert_newlines no longer raise
FrozenError on Ruby 2.7+ when handed a frozen string. They now use
non-mutating gsub instead of gsub!, so the substitution is always applied
(previously the only proposed workaround silently skipped it).