cpee-instantiation 1.0.16 → 1.0.21

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: d556a9e76088551f9335eb97aa22db0b851198d4d5f58f78035841513a43ac80
4
- data.tar.gz: 4d11049fba6354acad20244af8300859c21d293e3d41ba87253628a4d332fff7
3
+ metadata.gz: 48b61fe23e043cfed4157b397aa1af88953fa552533af459799e5171f30a98fa
4
+ data.tar.gz: 6b88eecca4869e1b98bab5c3f3d85196817682a1e916abb668f707498b1ea53c
5
5
  SHA512:
6
- metadata.gz: 697a43f1f77571d08284745129b3645be9050155dcb0abfa88a62755111278cd6a18271bfc27379286ae8f44ba17e7b8954bc260c1593459c567e7641dab05a7
7
- data.tar.gz: 9b1e2bc53ed83ea3fd9b6042b710fd1d69ee6676aa5b56716c59bf6507cab432ff2ff0d8bb8206873ca0d5047fbdb3f8ce609cb52942bb454a5b1cde97c89f12
6
+ metadata.gz: 3e741fd88a4e9409523dc96754ab15d7d1236bc82239f487fce88e4d8d58e6a0ea00928928adb921e291bbf4e7832da1f23d1dc56ba16c0345c1e3d9c5d3966c
7
+ data.tar.gz: 44e0644281f0dffcd8e143549513563d0cce7d34f481299b0e9ed60050f6a2e4417a39384f63fafc4c9a4e4fffa5cd555e65397a041b239f65144ada56529de2
data/AUTHORS CHANGED
@@ -1 +1,2 @@
1
1
  Jürgen Mangler <juergen.mangler@gmail.com>
2
+ Heinrich Fenkart <hnrch02@gmail.com>
data/README.md CHANGED
@@ -4,7 +4,7 @@ To install the instatiation service go to the commandline
4
4
 
5
5
  ```bash
6
6
  gem install cpee-instantiation
7
- cpee-instantiation instantiation
7
+ cpee-instantiation new instantiation
8
8
  cd instantiation
9
9
  ./instantiation start
10
10
  ```
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-instantiation"
3
- s.version = "1.0.16"
3
+ s.version = "1.0.21"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "Subprocess instantiation service for the cloud process execution engine (cpee.org)"
@@ -15,13 +15,13 @@ Gem::Specification.new do |s|
15
15
 
16
16
  s.required_ruby_version = '>=2.4.0'
17
17
 
18
- s.authors = ['Juergen eTM Mangler']
18
+ s.authors = ['Juergen eTM Mangler', 'Heinrich Fenkart']
19
19
 
20
20
  s.email = 'juergen.mangler@gmail.com'
21
21
  s.homepage = 'http://cpee.org/'
22
22
 
23
- s.add_runtime_dependency 'riddl', '~> 0.99'
23
+ s.add_runtime_dependency 'riddl', '~> 1.0'
24
24
  s.add_runtime_dependency 'json', '~> 2.1'
25
- s.add_runtime_dependency 'redis', '~> 4.1'
25
+ s.add_runtime_dependency 'redis', '~> 5.0'
26
26
  s.add_runtime_dependency 'cpee', '~> 2.1', '>= 2.1.4'
27
27
  end
@@ -38,7 +38,12 @@ module CPEE
38
38
  ele.first.text = CPEE::ValueHelper::generate(v)
39
39
  else
40
40
  ele = tdoc.find("/*/prop:#{what}")
41
- ele.first.add(k,CPEE::ValueHelper::generate(v)) if ele.any?
41
+ ele = if ele.any?
42
+ ele.first
43
+ else
44
+ tdoc.root.add("prop:#{what}")
45
+ end
46
+ ele.add(k,CPEE::ValueHelper::generate(v))
42
47
  end
43
48
  end
44
49
  end
@@ -26,24 +26,28 @@ end
26
26
  ARGV.options { |opt|
27
27
  opt.summary_indent = ' ' * 2
28
28
  opt.summary_width = 15
29
- opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [DIR]\n"
29
+ opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] new DIR\n"
30
30
  opt.on("Options:")
31
31
  opt.on("--help", "-h", "This text") { puts opt; exit }
32
32
  opt.on("")
33
- opt.on(wrap("[DIR] scaffolds a sample instantiation service. Post a testset to a model to keep going in one operation."))
33
+ opt.on(wrap("[new DIR] scaffolds a sample instantiation service. Post a testset to a model to keep going in one operation."))
34
34
  opt.parse!
35
35
  }
36
- if (ARGV.length != 1)
36
+ if (ARGV.length < 2) ||
37
+ (ARGV.length == 2 && !(%w(new).include?(ARGV[0]))) ||
38
+ (ARGV.length > 2)
37
39
  puts ARGV.options
38
40
  exit
39
- else
40
- p1 = ARGV[0]
41
41
  end
42
+ command = ARGV[0]
43
+ p1 = ARGV[1]
42
44
 
43
- insta = "#{curpath}/../server/"
44
- if !File.exist?(p1)
45
- FileUtils.cp_r(insta,p1)
46
- else
47
- FileUtils.cp_r(Dir.glob(File.join(insta,'*')).delete_if{|e| e =~ /\.conf/ },p1,remove_destination: true)
48
- puts 'Directory already exists, updating ...'
45
+ if command == 'new'
46
+ insta = "#{curpath}/../server/"
47
+ if !File.exist?(p1)
48
+ FileUtils.cp_r(insta,p1)
49
+ else
50
+ FileUtils.cp_r(Dir.glob(File.join(insta,'*')).delete_if{|e| e =~ /\.conf/ },p1,remove_destination: true)
51
+ puts 'Directory already exists, updating ...'
52
+ end
49
53
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-instantiation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.16
4
+ version: 1.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
8
+ - Heinrich Fenkart
8
9
  autorequire:
9
10
  bindir: tools
10
11
  cert_chain: []
11
- date: 2023-03-16 00:00:00.000000000 Z
12
+ date: 2024-07-02 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: riddl
@@ -16,14 +17,14 @@ dependencies:
16
17
  requirements:
17
18
  - - "~>"
18
19
  - !ruby/object:Gem::Version
19
- version: '0.99'
20
+ version: '1.0'
20
21
  type: :runtime
21
22
  prerelease: false
22
23
  version_requirements: !ruby/object:Gem::Requirement
23
24
  requirements:
24
25
  - - "~>"
25
26
  - !ruby/object:Gem::Version
26
- version: '0.99'
27
+ version: '1.0'
27
28
  - !ruby/object:Gem::Dependency
28
29
  name: json
29
30
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +45,14 @@ dependencies:
44
45
  requirements:
45
46
  - - "~>"
46
47
  - !ruby/object:Gem::Version
47
- version: '4.1'
48
+ version: '5.0'
48
49
  type: :runtime
49
50
  prerelease: false
50
51
  version_requirements: !ruby/object:Gem::Requirement
51
52
  requirements:
52
53
  - - "~>"
53
54
  - !ruby/object:Gem::Version
54
- version: '4.1'
55
+ version: '5.0'
55
56
  - !ruby/object:Gem::Dependency
56
57
  name: cpee
57
58
  requirement: !ruby/object:Gem::Requirement
@@ -108,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
109
  - !ruby/object:Gem::Version
109
110
  version: '0'
110
111
  requirements: []
111
- rubygems_version: 3.4.6
112
+ rubygems_version: 3.5.9
112
113
  signing_key:
113
114
  specification_version: 4
114
115
  summary: Subprocess instantiation service for the cloud process execution engine (cpee.org)