caracal_the_curve 1.4.1 → 1.4.2

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.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/caracal.gemspec +2 -2
  3. data/lib/caracal/core/fields.rb +34 -0
  4. data/lib/caracal/core/footer.rb +33 -0
  5. data/lib/caracal/core/header.rb +32 -0
  6. data/lib/caracal/core/models/field_model.rb +124 -0
  7. data/lib/caracal/core/models/footer_model.rb +42 -0
  8. data/lib/caracal/core/models/header_model.rb +42 -0
  9. data/lib/caracal/core/models/page_flip_model.rb +41 -0
  10. data/lib/caracal/core/models/paragraph_model.rb +15 -0
  11. data/lib/caracal/core/models/relationship_model.rb +1 -0
  12. data/lib/caracal/core/models/style_model.rb +6 -2
  13. data/lib/caracal/core/page_flips.rb +34 -0
  14. data/lib/caracal/core/relationships.rb +1 -0
  15. data/lib/caracal/core/styles.rb +7 -7
  16. data/lib/caracal/document.rb +24 -0
  17. data/lib/caracal/renderers/content_types_renderer.rb +1 -0
  18. data/lib/caracal/renderers/document_renderer.rb +52 -4
  19. data/lib/caracal/renderers/footer_renderer.rb +42 -29
  20. data/lib/caracal/renderers/header_renderer.rb +61 -0
  21. data/lib/caracal/renderers/settings_renderer.rb +2 -1
  22. data/lib/caracal/renderers/styles_renderer.rb +2 -0
  23. data/lib/caracal/version.rb +1 -1
  24. data/lib/caracal.rb +24 -0
  25. data/spec/lib/caracal/core/fields_spec.rb +25 -0
  26. data/spec/lib/caracal/core/footer_spec.rb +31 -0
  27. data/spec/lib/caracal/core/header_spec.rb +31 -0
  28. data/spec/lib/caracal/core/models/footer_model_spec.rb +40 -0
  29. data/spec/lib/caracal/core/models/header_model_spec.rb +40 -0
  30. data/spec/lib/caracal/core/models/page_flip_model_spec.rb +34 -0
  31. data/spec/lib/caracal/core/models/paragraph_model_spec.rb +18 -1
  32. data/spec/lib/caracal/core/models/style_model_spec.rb +8 -1
  33. data/spec/lib/caracal/core/page_flip_spec.rb +27 -0
  34. data/spec/lib/caracal/core/relationships_spec.rb +2 -2
  35. metadata +30 -3
metadata CHANGED
@@ -1,15 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caracal_the_curve
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 1.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trade Infomatics
8
8
  - John Dugan
9
+ - James Ridgway
10
+ - Matthew Barber
9
11
  autorequire:
10
12
  bindir: bin
11
13
  cert_chain: []
12
- date: 2023-08-05 00:00:00.000000000 Z
14
+ date: 2024-02-06 00:00:00.000000000 Z
13
15
  dependencies:
14
16
  - !ruby/object:Gem::Dependency
15
17
  name: nokogiri
@@ -105,6 +107,8 @@ description: " Caracal is a pure Ruby Microsoft Word generation library that pro
105
107
  professional quality MSWord documents (docx) using a simple, HTML-style DSL. "
106
108
  email:
107
109
  - jpdugan@gmail.com
110
+ - james.ridgway@tccs.io
111
+ - matthew.barber@tccs.io
108
112
  executables: []
109
113
  extensions: []
110
114
  extra_rdoc_files: []
@@ -122,8 +126,11 @@ files:
122
126
  - lib/caracal.rb
123
127
  - lib/caracal/core/bookmarks.rb
124
128
  - lib/caracal/core/custom_properties.rb
129
+ - lib/caracal/core/fields.rb
125
130
  - lib/caracal/core/file_name.rb
126
131
  - lib/caracal/core/fonts.rb
132
+ - lib/caracal/core/footer.rb
133
+ - lib/caracal/core/header.rb
127
134
  - lib/caracal/core/iframes.rb
128
135
  - lib/caracal/core/ignorables.rb
129
136
  - lib/caracal/core/images.rb
@@ -133,7 +140,10 @@ files:
133
140
  - lib/caracal/core/models/bookmark_model.rb
134
141
  - lib/caracal/core/models/border_model.rb
135
142
  - lib/caracal/core/models/custom_property_model.rb
143
+ - lib/caracal/core/models/field_model.rb
136
144
  - lib/caracal/core/models/font_model.rb
145
+ - lib/caracal/core/models/footer_model.rb
146
+ - lib/caracal/core/models/header_model.rb
137
147
  - lib/caracal/core/models/iframe_model.rb
138
148
  - lib/caracal/core/models/image_model.rb
139
149
  - lib/caracal/core/models/line_break_model.rb
@@ -144,6 +154,7 @@ files:
144
154
  - lib/caracal/core/models/margin_model.rb
145
155
  - lib/caracal/core/models/namespace_model.rb
146
156
  - lib/caracal/core/models/page_break_model.rb
157
+ - lib/caracal/core/models/page_flip_model.rb
147
158
  - lib/caracal/core/models/page_number_model.rb
148
159
  - lib/caracal/core/models/page_size_model.rb
149
160
  - lib/caracal/core/models/paragraph_model.rb
@@ -155,6 +166,7 @@ files:
155
166
  - lib/caracal/core/models/text_model.rb
156
167
  - lib/caracal/core/namespaces.rb
157
168
  - lib/caracal/core/page_breaks.rb
169
+ - lib/caracal/core/page_flips.rb
158
170
  - lib/caracal/core/page_numbers.rb
159
171
  - lib/caracal/core/page_settings.rb
160
172
  - lib/caracal/core/relationships.rb
@@ -171,6 +183,7 @@ files:
171
183
  - lib/caracal/renderers/document_renderer.rb
172
184
  - lib/caracal/renderers/fonts_renderer.rb
173
185
  - lib/caracal/renderers/footer_renderer.rb
186
+ - lib/caracal/renderers/header_renderer.rb
174
187
  - lib/caracal/renderers/numbering_renderer.rb
175
188
  - lib/caracal/renderers/package_relationships_renderer.rb
176
189
  - lib/caracal/renderers/relationships_renderer.rb
@@ -181,8 +194,11 @@ files:
181
194
  - lib/caracal/version.rb
182
195
  - lib/tilt/caracal.rb
183
196
  - spec/lib/caracal/core/bookmarks_spec.rb
197
+ - spec/lib/caracal/core/fields_spec.rb
184
198
  - spec/lib/caracal/core/file_name_spec.rb
185
199
  - spec/lib/caracal/core/fonts_spec.rb
200
+ - spec/lib/caracal/core/footer_spec.rb
201
+ - spec/lib/caracal/core/header_spec.rb
186
202
  - spec/lib/caracal/core/iframes_spec.rb
187
203
  - spec/lib/caracal/core/ignorables_spec.rb
188
204
  - spec/lib/caracal/core/images_spec.rb
@@ -192,6 +208,8 @@ files:
192
208
  - spec/lib/caracal/core/models/bookmark_model_spec.rb
193
209
  - spec/lib/caracal/core/models/border_model_spec.rb
194
210
  - spec/lib/caracal/core/models/font_model_spec.rb
211
+ - spec/lib/caracal/core/models/footer_model_spec.rb
212
+ - spec/lib/caracal/core/models/header_model_spec.rb
195
213
  - spec/lib/caracal/core/models/iframe_model_spec.rb
196
214
  - spec/lib/caracal/core/models/image_model_spec.rb
197
215
  - spec/lib/caracal/core/models/line_break_model_spec.rb
@@ -202,6 +220,7 @@ files:
202
220
  - spec/lib/caracal/core/models/margin_model_spec.rb
203
221
  - spec/lib/caracal/core/models/namespace_model_spec.rb
204
222
  - spec/lib/caracal/core/models/page_break_model_spec.rb
223
+ - spec/lib/caracal/core/models/page_flip_model_spec.rb
205
224
  - spec/lib/caracal/core/models/page_number_model_spec.rb
206
225
  - spec/lib/caracal/core/models/page_size_model_spec.rb
207
226
  - spec/lib/caracal/core/models/paragraph_model_spec.rb
@@ -213,6 +232,7 @@ files:
213
232
  - spec/lib/caracal/core/models/text_model_spec.rb
214
233
  - spec/lib/caracal/core/namespaces_spec.rb
215
234
  - spec/lib/caracal/core/page_breaks_spec.rb
235
+ - spec/lib/caracal/core/page_flip_spec.rb
216
236
  - spec/lib/caracal/core/page_numbers_spec.rb
217
237
  - spec/lib/caracal/core/page_settings_spec.rb
218
238
  - spec/lib/caracal/core/relationships_spec.rb
@@ -242,14 +262,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
262
  - !ruby/object:Gem::Version
243
263
  version: '0'
244
264
  requirements: []
245
- rubygems_version: 3.4.10
265
+ rubygems_version: 3.4.19
246
266
  signing_key:
247
267
  specification_version: 4
248
268
  summary: Fast, professional Microsoft Word (docx) writer for Ruby.
249
269
  test_files:
250
270
  - spec/lib/caracal/core/bookmarks_spec.rb
271
+ - spec/lib/caracal/core/fields_spec.rb
251
272
  - spec/lib/caracal/core/file_name_spec.rb
252
273
  - spec/lib/caracal/core/fonts_spec.rb
274
+ - spec/lib/caracal/core/footer_spec.rb
275
+ - spec/lib/caracal/core/header_spec.rb
253
276
  - spec/lib/caracal/core/iframes_spec.rb
254
277
  - spec/lib/caracal/core/ignorables_spec.rb
255
278
  - spec/lib/caracal/core/images_spec.rb
@@ -259,6 +282,8 @@ test_files:
259
282
  - spec/lib/caracal/core/models/bookmark_model_spec.rb
260
283
  - spec/lib/caracal/core/models/border_model_spec.rb
261
284
  - spec/lib/caracal/core/models/font_model_spec.rb
285
+ - spec/lib/caracal/core/models/footer_model_spec.rb
286
+ - spec/lib/caracal/core/models/header_model_spec.rb
262
287
  - spec/lib/caracal/core/models/iframe_model_spec.rb
263
288
  - spec/lib/caracal/core/models/image_model_spec.rb
264
289
  - spec/lib/caracal/core/models/line_break_model_spec.rb
@@ -269,6 +294,7 @@ test_files:
269
294
  - spec/lib/caracal/core/models/margin_model_spec.rb
270
295
  - spec/lib/caracal/core/models/namespace_model_spec.rb
271
296
  - spec/lib/caracal/core/models/page_break_model_spec.rb
297
+ - spec/lib/caracal/core/models/page_flip_model_spec.rb
272
298
  - spec/lib/caracal/core/models/page_number_model_spec.rb
273
299
  - spec/lib/caracal/core/models/page_size_model_spec.rb
274
300
  - spec/lib/caracal/core/models/paragraph_model_spec.rb
@@ -280,6 +306,7 @@ test_files:
280
306
  - spec/lib/caracal/core/models/text_model_spec.rb
281
307
  - spec/lib/caracal/core/namespaces_spec.rb
282
308
  - spec/lib/caracal/core/page_breaks_spec.rb
309
+ - spec/lib/caracal/core/page_flip_spec.rb
283
310
  - spec/lib/caracal/core/page_numbers_spec.rb
284
311
  - spec/lib/caracal/core/page_settings_spec.rb
285
312
  - spec/lib/caracal/core/relationships_spec.rb