cpee-model-management 1.0.12 → 1.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cpee-model-management.gemspec +1 -1
- data/lib/cpee-model-management/implementation.rb +4 -0
- data/server/model.xml +4 -0
- data/server/testset.xml +4 -0
- data/tools/cpee-moma +5 -0
- data/ui/css/design.css +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9db0f107cad7e45a47d7d197523ebfcc9f493512f614777573c3d567c3270b6c
|
4
|
+
data.tar.gz: fed6d38fc3a757e2dd074bad56f579a5a0b7d3863bb14a2ef325a5df28ca2526
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 30d3c26a3b7a13afacf601ae8fa99178610ec37296be9ae4de888770a07245df77f031b5368f95dbd338cef03752d0c34c3e2ee7c62e79b05775dfc89bd53123
|
7
|
+
data.tar.gz: e958d85ebbdf708c35accd0fcaed6fdd79f34702042c00f67aee5d3d39f6dcbfdd0fd81b8a64c0bce9728bbd1b55161a8fe85d8832bb98de55b4015153867f3e
|
@@ -24,6 +24,7 @@ require 'riddl/protocols/utils'
|
|
24
24
|
require 'fileutils'
|
25
25
|
require 'pathname'
|
26
26
|
require 'shellwords'
|
27
|
+
require 'securerandom'
|
27
28
|
|
28
29
|
module CPEE
|
29
30
|
module ModelManagement
|
@@ -389,6 +390,9 @@ module CPEE
|
|
389
390
|
doc.find('/p:testset/p:attributes/p:design_dir').each do |ele|
|
390
391
|
ele.text = where
|
391
392
|
end
|
393
|
+
doc.find('/p:testset/p:attributes/p:model_uuid').each do |ele|
|
394
|
+
ele.text = SecureRandom.uuid
|
395
|
+
end
|
392
396
|
if stage
|
393
397
|
doc.find('/p:testset/p:attributes/p:design_stage').each do |ele|
|
394
398
|
ele.text = stage
|
data/server/model.xml
CHANGED
@@ -25,6 +25,10 @@
|
|
25
25
|
<info>none</info>
|
26
26
|
<creator>Juergen Mangler</creator>
|
27
27
|
<author>Juergen Mangler</author>
|
28
|
+
<resource_restriction>none</resource_restriction>
|
29
|
+
<resource_id></resource_id>
|
30
|
+
<model_uuid></model_uuid>
|
31
|
+
<model_version></model_version>
|
28
32
|
<modeltype>CPEE</modeltype>
|
29
33
|
<theme>model</theme>
|
30
34
|
<design_dir></design_dir>
|
data/server/testset.xml
CHANGED
@@ -18,6 +18,10 @@
|
|
18
18
|
<creator>Juergen Mangler</creator>
|
19
19
|
<author>Juergen Mangler</author>
|
20
20
|
<modeltype>CPEE</modeltype>
|
21
|
+
<resource_restriction>none</resource_restriction>
|
22
|
+
<resource_id></resource_id>
|
23
|
+
<model_uuid></model_uuid>
|
24
|
+
<model_version></model_version>
|
21
25
|
<theme>extended</theme>
|
22
26
|
<design_dir></design_dir>
|
23
27
|
<design_stage>draft</design_stage>
|
data/tools/cpee-moma
CHANGED
@@ -6,6 +6,7 @@ require 'fileutils'
|
|
6
6
|
require 'xml/smart'
|
7
7
|
require 'zip'
|
8
8
|
require 'typhoeus'
|
9
|
+
require 'securerandom'
|
9
10
|
|
10
11
|
def wrap(s, width=78, indent=18)
|
11
12
|
lines = []
|
@@ -94,6 +95,10 @@ elsif command == 'convert'
|
|
94
95
|
n = doc.root.add('x:attributes')
|
95
96
|
end
|
96
97
|
|
98
|
+
if doc.find('/x:testset/x:attributes/x:model_uuid').length == 0
|
99
|
+
n = doc.find('/x:testset/x:attributes').first
|
100
|
+
n.add('x:model_uuid',SecureRandom.uuid)
|
101
|
+
end
|
97
102
|
if doc.find('/x:testset/x:attributes/x:theme').length == 0
|
98
103
|
n = doc.find('/x:testset/x:attributes').first
|
99
104
|
n.add('x:theme','extended')
|
data/ui/css/design.css
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cpee-model-management
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juergen eTM Mangler
|
8
8
|
autorequire:
|
9
9
|
bindir: tools
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: riddl
|