ea 0.6.152 → 0.6.154
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 85f736573ec684b3cb22e2522943f21f4d1d0c967cd88a86d75f735c48bd2954
|
|
4
|
+
data.tar.gz: fed42f499db4879f242f0a2764fdcfd69b6f6aeea113415db4fbba1e68bc51b4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4dddfd5705d66b289a85e879c26561424a228e369f22e338ac560f896f131ea1682140c575228017978214f24ea43ed52d9e564450ef6e7e1fe7bd5a051379b4
|
|
7
|
+
data.tar.gz: 471b1a9ced25c4717c5020b99b6b238c7d0c1254b5263848a3ca2b13001966689bc2b58489635ebeb9dc1be7727778a78efc935bacff64835416b8ba7ee44464
|
|
@@ -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?
|
|
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)
|
data/lib/ea/version.rb
CHANGED
|
@@ -111,9 +111,9 @@ module Ea
|
|
|
111
111
|
|
|
112
112
|
def build_dependency_index(&key)
|
|
113
113
|
index = {}
|
|
114
|
-
parser.xmi_index
|
|
115
|
-
|
|
116
|
-
|
|
114
|
+
@parser.xmi_index
|
|
115
|
+
.packaged_elements_of_type("uml:Dependency")
|
|
116
|
+
.each do |dep|
|
|
117
117
|
(index[key.call(dep)] ||= []) << dep
|
|
118
118
|
end
|
|
119
119
|
index
|