cpee-model-management 1.0.9 → 1.0.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ff58402244bdf7eadbd79cebb7c4ef42f302b45354da3bc1634bd866ba273eec
4
- data.tar.gz: 3dc2729da1856011a97a42c487117fe2cc7f4e6587e6e54934559bccc68b7148
3
+ metadata.gz: 9be3465ba484376cc2be761b4d4af2882bfdb5b64d13cb4630e33919682054d4
4
+ data.tar.gz: e34f9311c42ff440cc4a8e00f082027b6810d17446e431e1f556e510455a39f1
5
5
  SHA512:
6
- metadata.gz: 130154f25420d1901fa5dd8e83f15e2eecb6609660d7fd2e30f43e202b7a1a25fbc02e408bcf0575e5d4de6dffad5cdd2561926a4824a6127b9a72c2854e0267
7
- data.tar.gz: 6be4a1c311486e3364ce6e96192ca4b654e625ae102204150b34989384ba617abe5b7ba77c40b9f59233f61dfa7185c3d88917dd685629cbd1355c2b87bc62b3
6
+ metadata.gz: 907fff8cc59838e2c9272368ef4606d11324fcb5dcf9f9218e67c0c9a30f0ce462a920f56e9d5d5da19854eb73b7eec6670868672a1cca7c4022a49429776563
7
+ data.tar.gz: 9039e345f7f75f631d0485702db06aba021fa4412623793ca8a628c31efcee9841c732debb65943ef9d8b88b9f07bc97a8542119086b9a493900e53ec76728ec
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-model-management"
3
- s.version = "1.0.9"
3
+ s.version = "1.0.10"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "(Lifecycle) manage your process models in a directory or git repo."
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
- design_dir = e.text
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-model-management
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler