cpee-resources 1.0.2 → 1.0.3

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: 7c92683f7ab22dc0df755e682c252413fa11bea895c714aec38709d36bff6b49
4
- data.tar.gz: 313953754f94d95d4cccc8f39369f0a8c1a1eb0d848072b54e005a443256bddb
3
+ metadata.gz: f4b15a42bbfec373265af8072b83039a159c0f2da3cb2a61ed25e755f95d878f
4
+ data.tar.gz: 8fe2ff417e1ed3e6b8010d28418f714232bbdb29d36e09bce328a661d5c69d48
5
5
  SHA512:
6
- metadata.gz: a55bbb3a98061c299f00e5febabbc090358d0fab751f52c95671f001bee7e793ba3dba559cb82d1d11d8ecb78a305350cc2f518fd21a3ed484f276f591a005bb
7
- data.tar.gz: 62917c79aac0df5fc636e6559427ddd5df45558063c990c34640edca68d57aead216eb7e3b5dcf009d68b6928ef468b8d3a66dc644b6248e46e2dcd9ee72099e
6
+ metadata.gz: 52dfd64c30e4866075d4fd218d9bec439d0c02a44b028870472788cb9099e96dba95d71fa6a5ff8ce46af0e13eac09b18632624158aca4c6f8cd2fc8c48b4e77
7
+ data.tar.gz: b86a6b97054fe9d19f1e78ef0e5cd22bee8efa3e19c1d4ae91374ad319c440c1ad11c33ba31b8c0597a3f837983e08b043d3023c0a2981debee8e1742e77f48d
data/README.md CHANGED
@@ -8,3 +8,9 @@ OS Dependencies:
8
8
  Ruby dependencies:
9
9
 
10
10
  * gem install riddl
11
+
12
+ Scaffold local install:
13
+
14
+
15
+ * cd ~/run
16
+ * cpee-resource new resources
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cpee-resources"
3
- s.version = "1.0.2"
3
+ s.version = "1.0.3"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0-or-later"
6
6
  s.summary = "Resources list for the cloud process execution engine (cpee.org)"
@@ -66,7 +66,7 @@ module CPEE
66
66
  data = @a[1]
67
67
  file = File.join(data,@a[0],*(@r[@a[2]].map{|e| Riddl::Protocols::Utils::escape(e)}))
68
68
  if File.exist?(file)
69
- Riddl::Parameter::Complex.new(@a[3],@a[4],File.read(file)) if File.exist?(file)
69
+ Riddl::Parameter::Complex.new(@a[3],@a[4],File.read(file))
70
70
  else
71
71
  @status = 404
72
72
  Riddl::Parameter::Complex.new('exists','text/plain','Existence really is an imperfect tense that never becomes a present. (Friedrich Nietzsche)')
@@ -88,6 +88,14 @@ module CPEE
88
88
  end
89
89
  end #}}}
90
90
 
91
+ class DoFile < Riddl::Implementation #{{{
92
+ def response
93
+ data = @a[1]
94
+ file = File.join(data,@a[0],*(@r[@a[2]].map{|e| Riddl::Protocols::Utils::escape(e)}))
95
+ File.write(file,@p[0])
96
+ end
97
+ end #}}}
98
+
91
99
  def self::implementation(opts)
92
100
  opts[:data_dir] ||= File.expand_path(File.join(__dir__,'data'))
93
101
 
@@ -123,6 +131,7 @@ module CPEE
123
131
  end
124
132
  on resource 'schema.rng' do
125
133
  run DoFile, 'endpoints', opts[:data_dir], (-2..-1), 'rng', 'text/xml' if get
134
+ run SaveFile, 'endpoints', opts[:data_dir], (-2..-1), 'rng', 'text/xml' if put 'schema'
126
135
  end
127
136
  on resource 'properties.json' do
128
137
  run DoFile, 'endpoints', opts[:data_dir], (-2..-1), 'json', 'application/json' if get
@@ -52,7 +52,7 @@
52
52
  </message>
53
53
 
54
54
  <resource>
55
- <resource relative='modifiers'>
55
+ <resource relative='modifiers'> <!--{{{-->
56
56
  <get out="list"/>
57
57
  <resource>
58
58
  <get out="list"/>
@@ -72,7 +72,7 @@
72
72
  </resource>
73
73
  </resource>
74
74
  </resource>
75
- </resource>
75
+ </resource> <!--}}}-->
76
76
  <resource relative='endpoints'>
77
77
  <get out="list"/>
78
78
  <resource>
@@ -82,6 +82,7 @@
82
82
  </resource>
83
83
  <resource relative="schema.rng">
84
84
  <get out="schema"/>
85
+ <put in="schema"/>
85
86
  </resource>
86
87
  <resource relative="properties.json">
87
88
  <get out="json"/>
@@ -4,8 +4,8 @@
4
4
  <modeltype>Signavio</modeltype>
5
5
  </attributes>
6
6
  <transformation>
7
- <description type='rest'>http://localhost:9295/bpmn2/</description>
8
- <dataelements type='rest'>http://localhost:9295/bpmn2/</dataelements>
9
- <endpoints type='rest'>http://localhost:9295/bpmn2/</endpoints>
7
+ <description type='rest'>http://localhost:9295/cpee/bpmn2/</description>
8
+ <dataelements type='rest'>http://localhost:9295/cpee/bpmn2/</dataelements>
9
+ <endpoints type='rest'>http://localhost:9295/cpee/bpmn2/</endpoints>
10
10
  </transformation>
11
11
  </testset>
@@ -4,7 +4,7 @@
4
4
  <modeltype>ChatGPT_Mermaid</modeltype>
5
5
  </attributes>
6
6
  <transformation>
7
- <description type='rest'>http://localhost:9295/mermaid/</description>
7
+ <description type='rest'>http://localhost:9295/cpee/mermaid/</description>
8
8
  <dataelements type='none'/>
9
9
  <endpoints type='none'/>
10
10
  </transformation>
@@ -4,7 +4,7 @@
4
4
  <modeltype>ChatGPT_Graphviz</modeltype>
5
5
  </attributes>
6
6
  <transformation>
7
- <description type='rest'>http://localhost:9295/graphviz/</description>
7
+ <description type='rest'>http://localhost:9295/cpee/graphviz/</description>
8
8
  <dataelements type='none'/>
9
9
  <endpoints type='none'/>
10
10
  </transformation>
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cpee-resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
8
8
  - Ralph Vigne
9
- autorequire:
10
9
  bindir: tools
11
10
  cert_chain: []
12
- date: 2024-07-02 00:00:00.000000000 Z
11
+ date: 2025-05-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: riddl
@@ -132,7 +131,6 @@ homepage: http://cpee.org/
132
131
  licenses:
133
132
  - LGPL-3.0-or-later
134
133
  metadata: {}
135
- post_install_message:
136
134
  rdoc_options: []
137
135
  require_paths:
138
136
  - lib
@@ -147,8 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
145
  - !ruby/object:Gem::Version
148
146
  version: '0'
149
147
  requirements: []
150
- rubygems_version: 3.5.9
151
- signing_key:
148
+ rubygems_version: 3.6.2
152
149
  specification_version: 4
153
150
  summary: Resources list for the cloud process execution engine (cpee.org)
154
151
  test_files: []