ea 0.6.152 → 0.6.153

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: 619c998e5245d2b76148b6e415b621938329e6820daa8aed43075c5050c7afaa
4
- data.tar.gz: 4eb30a53665596f2e41f72f4249da9c2efd51d574d5cafe505d2402f91b5925e
3
+ metadata.gz: 2ef7fb38e9a4c96a78c198a369e93065867cc0e8926cecf529a427bcec406e6c
4
+ data.tar.gz: 30e9bc2f91423a2b21787868d10bd78eee8ed97de160c4b72ec021696be1cc62
5
5
  SHA512:
6
- metadata.gz: 1d7aed8a33f9020649c188440ef26cef82853ad89409d63a19c2635feb24358b2da46d0024c63bd49d7eccbb697efcfe117f1e6fb7c5ced7830313f405c24b2c
7
- data.tar.gz: c613ef3892c841bb5d6568ca84576ddb5f31c0e6c10a9c2af58ee0718658668502a8e4aedbcd7ebec58ad332ae0781115d6dbd2f4611e0918362024fdd38d12b
6
+ metadata.gz: 0c88a3bcde34d1e9ec516ac410a2ea130990810d5d473a7fea491024f4026efaa3d011accf1d9de9042a7b678df37a27f38aa3583ebb578dfc68efe5e38921bd
7
+ data.tar.gz: a30bf0e6faa31a95be9133b494c7f131f7cc882cc265e86d349cf8c4bd9136eb8257c8b0fd6158be375727868e3e03b9e70f4cc0c64d6cab5258ac56c82e7c72
@@ -414,7 +414,7 @@ module Ea
414
414
  if note.nil? || note.empty?
415
415
  "\t\t\t\t\t<documentation/>"
416
416
  else
417
- %(\t\t\t\t\t<documentation value="#{escape(note)}"/>)
417
+ %(\t\t\t\t\t<documentation value="#{escape(Ea::Rtf.to_text(note))}"/>)
418
418
  end
419
419
  end
420
420
 
@@ -673,8 +673,12 @@ module Ea
673
673
  # Returns the documentation string for a record. Package notes
674
674
  # and object notes come from different columns; both flow
675
675
  # through here as the <properties documentation="..."> value.
676
+ # EA stores styled notes as RTF; export plain text like EA's
677
+ # own XMI output does.
676
678
  def record_documentation(note)
677
- note.nil? || note.empty? ? nil : note
679
+ return nil if note.nil? || note.empty?
680
+
681
+ Ea::Rtf.to_text(note)
678
682
  end
679
683
 
680
684
  def escape(text)
@@ -464,7 +464,8 @@ module Ea
464
464
  ::Xmi::Uml::OwnedComment.new(
465
465
  type: "uml:Comment",
466
466
  id: @context.xmi_id_for(obj),
467
- body_element: obj.note || obj.name || "",
467
+ body_element: (Ea::Rtf.to_text(obj.note) if obj.note) ||
468
+ obj.name || "",
468
469
  )
469
470
  end
470
471
 
data/lib/ea/version.rb CHANGED
@@ -4,5 +4,5 @@ module Ea
4
4
  # Gem release version. Extracted to its own file so the
5
5
  # `gem-release` tool's `gem bump` can find and update it via the
6
6
  # standard `lib/<gem>/version.rb` convention.
7
- VERSION = "0.6.152"
7
+ VERSION = "0.6.153"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.152
4
+ version: 0.6.153
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.