riddl 0.102 → 0.103
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/examples/properties/server.properties.xml +1 -1
- data/lib/ruby/riddl/server.rb +6 -1
- data/riddl.gemspec +1 -1
- metadata +2 -3
- data/examples/properties/properties.schema.xsl +0 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6c0661d1fa0c6aff0b54ffdfbec1090c8741944219a8ba2e304acecf07d97b7b
|
|
4
|
+
data.tar.gz: 2beac525a71017e0a558a155fa61d54dc0bec133063253d7b7460311c2d89ee6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75d47eb2d1e59cfa43199f468c706b1e06109149082f136b57faec2b3516dd5b724827edbd6a60198d5a27bd816c55ddf0063678436e645d72a406541708c646
|
|
7
|
+
data.tar.gz: 1f267f56fa67c847b3e146c9d2fc5918065094e0071990c46e7ffdb93083907f69812dab816770139c844e3323e6bb1abdb4d225d934b0aa00095e95f5e35e17
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
</endpoints>
|
|
12
12
|
<handlerwrapper>Test</handlerwrapper>
|
|
13
13
|
<description>lala</description>
|
|
14
|
-
<state changed="2020-10-
|
|
14
|
+
<state changed="2020-10-01T20:41:21+02:00">stopped</state>
|
|
15
15
|
<transformation>xxx</transformation>
|
|
16
16
|
</properties>
|
data/lib/ruby/riddl/server.rb
CHANGED
|
@@ -130,6 +130,9 @@ module Riddl
|
|
|
130
130
|
|
|
131
131
|
[:INT, :TERM].each do |signal|
|
|
132
132
|
Signal.trap(signal) do
|
|
133
|
+
if @riddl_opts[:cleanup]
|
|
134
|
+
@riddl_opts[:cleanup].call
|
|
135
|
+
end
|
|
133
136
|
EM.stop
|
|
134
137
|
end
|
|
135
138
|
end
|
|
@@ -140,7 +143,6 @@ module Riddl
|
|
|
140
143
|
end
|
|
141
144
|
end
|
|
142
145
|
end
|
|
143
|
-
|
|
144
146
|
rescue => e
|
|
145
147
|
if @riddl_opts[:custom_protocol] && !@riddl_opts[:http_only]
|
|
146
148
|
@riddl_opts[:custom_protocol].error_handling(e)
|
|
@@ -152,6 +154,9 @@ module Riddl
|
|
|
152
154
|
def parallel(&blk)
|
|
153
155
|
@riddl_opts[:parallel] = blk
|
|
154
156
|
end
|
|
157
|
+
def cleanup(&blk)
|
|
158
|
+
@riddl_opts[:cleanup] = blk
|
|
159
|
+
end
|
|
155
160
|
|
|
156
161
|
def call(env)# {{{
|
|
157
162
|
dup.__http_call(env)
|
data/riddl.gemspec
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: riddl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '0.
|
|
4
|
+
version: '0.103'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juergen 'eTM' Mangler
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: tools
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2020-10-
|
|
13
|
+
date: 2020-10-03 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: daemonite
|
|
@@ -395,7 +395,6 @@ files:
|
|
|
395
395
|
- examples/pass-test/structure.xml
|
|
396
396
|
- examples/properties/description.conf
|
|
397
397
|
- examples/properties/description.rb
|
|
398
|
-
- examples/properties/properties.schema.xsl
|
|
399
398
|
- examples/properties/properties.xml
|
|
400
399
|
- examples/properties/server.properties.schema
|
|
401
400
|
- examples/properties/server.properties.xml
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
../../ns/common-patterns/properties/1.0/properties.schema.xsl
|