riddl 0.99.173 → 0.99.174

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
  SHA1:
3
- metadata.gz: 2fca21fe199bf797a81050fe7aab8fa9604bd547
4
- data.tar.gz: 823fcccf95a4f6c16dbab599956359c776599dc8
3
+ metadata.gz: 112fb5907f32b28e6451dfa78a7240ace84653c4
4
+ data.tar.gz: 6e2b6d2339cb5509c188c449323d019e7ceb796f
5
5
  SHA512:
6
- metadata.gz: 929036192795261afc5bffae53fdf3204e71f27125deb8a2e32d05fed41bcbd365dbe6e086637b53a9c1b5b637e6ae7ebed8e6801fb57e52b8c3a2c51ee8b423
7
- data.tar.gz: b9caa92cd15b94ae8a3d7cc54e08bae0406b0bed91fd6012ebae12384196a5b3019cdfd1c6502a500878b4dff5edc930990047cd31ce1ccd6d0f8db82315a1b4
6
+ metadata.gz: 32b90da2a6e4ebe443aff76a4ababe83434f3ede0a4d91c7f49e1cd890ed35f36dc8cfb0fcca37d1bebd2e7ccf7442db83303977bfaf42b5444062a8c44e8047
7
+ data.tar.gz: 043e2f798a4a338ace6b8c7a87b2737ca7ab28bef19f047976df8432a29228b29343a71b329b7d9141421c010c4e39c120a8e8e05652a61f5fada005f2f2a897
@@ -145,7 +145,7 @@ module Riddl
145
145
  :app => app,
146
146
  :Host => '0.0.0.0',
147
147
  :Port => @riddl_opts[:port],
148
- :environment => (@riddl_opts[:mode] == :debug ? 'development' : 'deployment'),
148
+ :environment => 'deployment',
149
149
  :server => 'thin',
150
150
  :pid => File.expand_path(@riddl_opts[:basepath] + '/' + @riddl_opts[:pidfile])
151
151
  )
@@ -161,6 +161,10 @@ module Riddl
161
161
  )
162
162
  end
163
163
 
164
+ ::Kernel::at_exit do
165
+ @riddl_at_exit.call
166
+ end
167
+
164
168
  begin
165
169
  EM.run do
166
170
  puts "Server (#{@riddl_opts[:url]}) started as PID:#{Process.pid}"
@@ -227,6 +231,8 @@ module Riddl
227
231
  @riddl_description_string = ''
228
232
  @riddl_paths = []
229
233
 
234
+ @riddl_at_exit = nil
235
+
230
236
  @riddl_interfaces = {}
231
237
  instance_exec(@riddl_opts,&blk) if block_given?
232
238
 
@@ -245,6 +251,10 @@ module Riddl
245
251
  @riddl_paths = @riddl.paths
246
252
  end# }}}
247
253
 
254
+ def at_exit(&blk)
255
+ @riddl_exit = blk
256
+ end
257
+
248
258
  def call(env)# {{{
249
259
  dup.__http_call(env)
250
260
  end# }}}
data/riddl.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "riddl"
3
- s.version = "0.99.173"
3
+ s.version = "0.99.174"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.license = "LGPL-3"
6
6
  s.summary = "restful interface description and declaration language: tools and client/server libs"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riddl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.173
4
+ version: 0.99.174
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juergen eTM Mangler
8
8
  autorequire:
9
9
  bindir: tools
10
10
  cert_chain: []
11
- date: 2015-01-09 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-smart