cpee-resources 1.0.1 → 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 +4 -4
- data/README.md +6 -0
- data/cpee-resources.gemspec +1 -1
- data/lib/cpee-resources/implementation.rb +10 -1
- data/lib/cpee-resources/implementation.xml +3 -2
- data/server/data/modifiers/01_Model%20Type/01_Signavio%20BPMN2/patch.xml +3 -3
- data/server/data/modifiers/01_Model%20Type/02_ChatGPT%20Mermaid/patch.xml +1 -1
- data/server/data/modifiers/01_Model%20Type/03_ChatGPT%20Graphviz/patch.xml +1 -1
- data/tools/cpee-resources +2 -2
- metadata +3 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f4b15a42bbfec373265af8072b83039a159c0f2da3cb2a61ed25e755f95d878f
|
4
|
+
data.tar.gz: 8fe2ff417e1ed3e6b8010d28418f714232bbdb29d36e09bce328a661d5c69d48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 52dfd64c30e4866075d4fd218d9bec439d0c02a44b028870472788cb9099e96dba95d71fa6a5ff8ce46af0e13eac09b18632624158aca4c6f8cd2fc8c48b4e77
|
7
|
+
data.tar.gz: b86a6b97054fe9d19f1e78ef0e5cd22bee8efa3e19c1d4ae91374ad319c440c1ad11c33ba31b8c0597a3f837983e08b043d3023c0a2981debee8e1742e77f48d
|
data/README.md
CHANGED
data/cpee-resources.gemspec
CHANGED
@@ -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))
|
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>
|
data/tools/cpee-resources
CHANGED
@@ -43,11 +43,11 @@ end
|
|
43
43
|
ARGV.options { |opt|
|
44
44
|
opt.summary_indent = ' ' * 2
|
45
45
|
opt.summary_width = 15
|
46
|
-
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [DIR
|
46
|
+
opt.banner = "Usage:\n#{opt.summary_indent}#{File.basename($0)} [options] new DIR\n"
|
47
47
|
opt.on("Options:")
|
48
48
|
opt.on("--help", "-h", "This text") { puts opt; exit }
|
49
49
|
opt.on("")
|
50
|
-
opt.on(wrap("[DIR]
|
50
|
+
opt.on(wrap("[new DIR] scaffolds a sample resources service."))
|
51
51
|
opt.parse!
|
52
52
|
}
|
53
53
|
if (ARGV.length < 2) ||
|
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.
|
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:
|
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.
|
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: []
|