uniword 1.0.5 → 1.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bf213950306833f5f1b647478fcbdf3d3567510a34ed6329e0d0d1ed6eedf6a
4
- data.tar.gz: d9b9e0ef1afffe36923b9dcd55831ce4a35441f5bbd4277d821a491b0b0f008d
3
+ metadata.gz: 5dfe381dc7497d65a3df658a648fd09f7f3f5f1f66d68c27578cb3c1a8e226b3
4
+ data.tar.gz: c3ae36a30164bb6161a4a7b6d00525ae129b1230ee215941fa8deda61fdea557
5
5
  SHA512:
6
- metadata.gz: ead9275e412cabb6d6f6ac359fec7d2ac4b2fcd298886ac8fa5e5623532d9bb8b8fb56fe957552fef12d296cd066c440ba225bff7816a690dc63c1323d4db5ce
7
- data.tar.gz: ac185de3d3411ff440d9d2651f3d5d88c101c35d19a05cbe9e886e7afdb7f42cd8780f907bdfedcc17ab439a54a4ac926fb8a99286b844b59f0ad87c2d447143
6
+ metadata.gz: 5942b178fdc0d078e2db920574940daf79dd8fe84fab759bb9265cf4ba4cefee28ed15129c876192d9ff923bd3888f2a598f456787b90360ee2d72b234e393a8
7
+ data.tar.gz: b15407d92eb46a750a842f0d38998d4ff49fcb374e5ed8c24ec94b0037fcf6cd10ac64855c490e07ded64381ad867fa1241867303192d09213e5da2b419b35aa
@@ -390,12 +390,7 @@ module Uniword
390
390
  record_fix("R2", "Generated w15:docId in GUID format")
391
391
  end
392
392
 
393
- unless settings.mc_ignorable
394
- settings.mc_ignorable = Ooxml::Types::McIgnorable.new(
395
- "w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du",
396
- )
397
- record_fix("R1", "Added mc:Ignorable to settings")
398
- end
393
+ settings.mc_ignorable = nil
399
394
  end
400
395
 
401
396
  def reconcile_font_table
@@ -436,9 +431,7 @@ module Uniword
436
431
  font_table.fonts << font
437
432
  end
438
433
 
439
- font_table.mc_ignorable ||= Ooxml::Types::McIgnorable.new(
440
- "w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du",
441
- )
434
+ font_table.mc_ignorable = nil
442
435
  record_fix("R13",
443
436
  "Populated font table with profile fonts and signatures")
444
437
  end
@@ -457,9 +450,7 @@ module Uniword
457
450
 
458
451
  ensure_default_styles(styles)
459
452
 
460
- styles.mc_ignorable ||= Ooxml::Types::McIgnorable.new(
461
- "w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du",
462
- )
453
+ styles.mc_ignorable = nil
463
454
  record_fix("R10",
464
455
  "Ensured styles have docDefaults, latentStyles, and default styles")
465
456
  end
@@ -468,12 +459,7 @@ module Uniword
468
459
  return unless profile
469
460
  return unless package.numbering
470
461
 
471
- unless package.numbering.mc_ignorable
472
- package.numbering.mc_ignorable = Ooxml::Types::McIgnorable.new(
473
- "w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14",
474
- )
475
- record_fix("R1", "Added mc:Ignorable to numbering")
476
- end
462
+ package.numbering.mc_ignorable = nil
477
463
 
478
464
  # Validate instance → definition references
479
465
  package.numbering.instances.each do |inst|
@@ -499,10 +485,8 @@ module Uniword
499
485
  package.web_settings
500
486
  end
501
487
 
502
- ws.mc_ignorable ||= Ooxml::Types::McIgnorable.new(
503
- "w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du",
504
- )
505
- record_fix("R1", "Added mc:Ignorable to webSettings")
488
+ ws.mc_ignorable = nil
489
+ record_fix("R1", "Cleared mc:Ignorable on webSettings")
506
490
  end
507
491
 
508
492
  def reconcile_app_properties
@@ -596,9 +580,7 @@ module Uniword
596
580
  return unless package.document&.body
597
581
 
598
582
  doc = package.document
599
- doc.mc_ignorable ||= Ooxml::Types::McIgnorable.new(
600
- "w14 w15 w16se w16cid w16 w16cex w16sdtdh w16sdtfl w16du wp14",
601
- )
583
+ doc.mc_ignorable = Ooxml::Types::McIgnorable.new("w14")
602
584
 
603
585
  record_fix("R1", "Added mc:Ignorable to document body")
604
586
  record_fix("R12", "Assigned rsid and paraId to paragraphs")
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uniword
4
- VERSION = "1.0.5"
4
+ VERSION = "1.0.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uniword
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.