cpee-model-management 1.0.9 → 1.0.10
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/cpee-model-management.gemspec +1 -1
- data/tools/cpee-moma +17 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9be3465ba484376cc2be761b4d4af2882bfdb5b64d13cb4630e33919682054d4
|
|
4
|
+
data.tar.gz: e34f9311c42ff440cc4a8e00f082027b6810d17446e431e1f556e510455a39f1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 907fff8cc59838e2c9272368ef4606d11324fcb5dcf9f9218e67c0c9a30f0ce462a920f56e9d5d5da19854eb73b7eec6670868672a1cca7c4022a49429776563
|
|
7
|
+
data.tar.gz: 9039e345f7f75f631d0485702db06aba021fa4412623793ca8a628c31efcee9841c732debb65943ef9d8b88b9f07bc97a8542119086b9a493900e53ec76728ec
|
data/tools/cpee-moma
CHANGED
|
@@ -66,6 +66,19 @@ elsif command == 'convert'
|
|
|
66
66
|
name = File.basename(f,'.xml')
|
|
67
67
|
creator = author = design_dir = design_stage = nil
|
|
68
68
|
|
|
69
|
+
if doc.find('/x:testset/x:attributes').length == 0
|
|
70
|
+
n = doc.root.add('x:attributes')
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if doc.find('/x:testset/x:attributes/x:theme').length == 0
|
|
74
|
+
n = doc.find('/x:testset/x:attributes').first
|
|
75
|
+
n.add('x:theme','extended')
|
|
76
|
+
end
|
|
77
|
+
if doc.find('/x:testset/x:attributes/x:info').length == 0
|
|
78
|
+
n = doc.find('/x:testset/x:attributes').first
|
|
79
|
+
n.add('x:info',name)
|
|
80
|
+
end
|
|
81
|
+
|
|
69
82
|
if (dt = doc.find('/x:testset/x:attributes/x:creator')).length > 0
|
|
70
83
|
dt.each do |e|
|
|
71
84
|
creator = e.text
|
|
@@ -102,12 +115,14 @@ elsif command == 'convert'
|
|
|
102
115
|
end
|
|
103
116
|
File.write(f + '.stage',design_stage)
|
|
104
117
|
|
|
118
|
+
dd = ENV['PWD'] || Dir.pwd
|
|
119
|
+
ma = dd.scan(/\/([^\/]+\.dir)/)
|
|
120
|
+
design_dir = ma.join('/')
|
|
105
121
|
if (dt = doc.find('/x:testset/x:attributes/x:design_dir')).length > 0
|
|
106
122
|
dt.each do |e|
|
|
107
|
-
|
|
123
|
+
e.text = design_dir
|
|
108
124
|
end
|
|
109
125
|
else
|
|
110
|
-
design_dir = Dir.pwd.sub(/^.*?models\/?/,'')
|
|
111
126
|
doc.find('/x:testset/x:attributes').each do |e|
|
|
112
127
|
e.add('x:design_dir',design_dir)
|
|
113
128
|
end
|