riddl 0.102 → 0.103

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02d6544bef02c48146f11bcce856f60a78b782678028a61d877c8e191b26a9c3
4
- data.tar.gz: 03f040ece9e74f900ecb93e4961afe7a8f26951b84f33a083c9acc2f30cca1c0
3
+ metadata.gz: 6c0661d1fa0c6aff0b54ffdfbec1090c8741944219a8ba2e304acecf07d97b7b
4
+ data.tar.gz: 2beac525a71017e0a558a155fa61d54dc0bec133063253d7b7460311c2d89ee6
5
5
  SHA512:
6
- metadata.gz: 405ed0327b0e51c6dba40b3e08476fce1f3888d05719e3741ec67d75d2061106c8a41d75e0c09beb2318e9ac06cbf49e922389737e614906be14c033e6daabf5
7
- data.tar.gz: 89ecf78f0fb11bf552bc9fd8d1b4bb5585c04c266903c19531544e7fe15679f9b617d89e6263d2805d583bb80c5cf6fe69a498fb4c6642164cb9ac859c33fc1b
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-01T22:38:07+02:00">running</state>
14
+ <state changed="2020-10-01T20:41:21+02:00">stopped</state>
15
15
  <transformation>xxx</transformation>
16
16
  </properties>
@@ -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)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.102"
3
+ s.version = "0.103"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3.0"
6
6
  s.summary = "restful interface description and declaration language: tools and client/server libs"
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.102'
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-01 00:00:00.000000000 Z
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