caracal 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -2
- data/README.md +14 -1
- data/lib/caracal/renderers/footer_renderer.rb +1 -1
- data/lib/caracal/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c6abd29861f9145e2661e53aa4d7628fbbf5acc8
|
|
4
|
+
data.tar.gz: 0fa3c5ece4838b263306efd2f19f2d163c41b017
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6738303388e63ea0488b20395859249af3238cdeda4ee394db37f5c8c943a63528d910d192c4b089f07f6e1e766b7b8aefd3cb859a1e74efd5fa342b8d346735
|
|
7
|
+
data.tar.gz: b52abcdae9a71ec3c6fd3c3e432fabfc8005d22f77c0175a0404ef26beafa867f83b8847985fc7ca523cb94a0fb7affc8007257f064ef5152619d3309b6349fd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,13 +1,19 @@
|
|
|
1
|
+
#### v1.0.12
|
|
2
|
+
|
|
3
|
+
* Bug Fixes
|
|
4
|
+
* Removed unintended use of Active Support method in footer renderer. (@jdugan).
|
|
5
|
+
|
|
6
|
+
|
|
1
7
|
#### v1.0.11
|
|
2
8
|
|
|
3
9
|
* Bug Fixes
|
|
4
|
-
* Cleaned up experimental feature for iframes. (@
|
|
10
|
+
* Cleaned up experimental feature for iframes. (@jdugan).
|
|
5
11
|
|
|
6
12
|
|
|
7
13
|
#### v1.0.10
|
|
8
14
|
|
|
9
15
|
* Enhancements
|
|
10
|
-
* Added experimental feature for iframes. (@
|
|
16
|
+
* Added experimental feature for iframes. (@jdugan).
|
|
11
17
|
|
|
12
18
|
|
|
13
19
|
#### v1.0.8
|
data/README.md
CHANGED
|
@@ -692,9 +692,22 @@ docx.iframe url: 'http://www.some-website.org/snippet.docx'
|
|
|
692
692
|
|
|
693
693
|
# this example loads the data directly
|
|
694
694
|
docx.iframe data: File.read('my/path/to/snippet.docx')
|
|
695
|
-
|
|
696
695
|
```
|
|
697
696
|
|
|
697
|
+
Caracal is pretty smart about including the external document, at least as it relates to images. As long as the external
|
|
698
|
+
document only uses the feature set Caracal supports natively, you should be okay.
|
|
699
|
+
|
|
700
|
+
But if the external document uses more advanced Word features, the `iframe` directive may or may not work. Again, a
|
|
701
|
+
Word document is really just a dozen or so XML files zipped up with the extension `.docx`. Most of the commands you issue in a Word document only add OOXML to one of these internal files. But some commands--like inserting an image--modify several of
|
|
702
|
+
the internal files. So, when you include an external file, what Caracal is doing under the hood is grabbing the contents
|
|
703
|
+
of the main internal XML file and copying that OOXML into the Caracal document's main internal file. Caracal is smart enough
|
|
704
|
+
to look for any images in the external file and make the corresponding entries in its own internal files, but if other
|
|
705
|
+
advanced features of Word require similar adjustments, Caracal won't know to do that. Probably those advanced features
|
|
706
|
+
will not operate as expected in the parent Caracal document.
|
|
707
|
+
|
|
708
|
+
Again, this feature is considered experimental. Use at your own risk/discretion.
|
|
709
|
+
|
|
710
|
+
|
|
698
711
|
## Template Rendering
|
|
699
712
|
|
|
700
713
|
Caracal includes [Tilt](https://github.com/rtomayko/tilt) integration to facilitate its inclusion in other frameworks.
|
|
@@ -22,7 +22,7 @@ module Caracal
|
|
|
22
22
|
xml.send 'w:contextualSpacing', { 'w:val' => '0' }
|
|
23
23
|
xml.send 'w:jc', { 'w:val' => "#{ document.page_number_align }" }
|
|
24
24
|
end
|
|
25
|
-
|
|
25
|
+
unless document.page_number_label.nil?
|
|
26
26
|
xml.send 'w:r', run_options do
|
|
27
27
|
xml.send 'w:rPr' do
|
|
28
28
|
xml.send 'w:rStyle', { 'w:val' => 'PageNumber' }
|
data/lib/caracal/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: caracal
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Trade Infomatics
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2017-06-
|
|
12
|
+
date: 2017-06-17 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: nokogiri
|