riddl 0.99.175 → 0.99.176

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
  SHA1:
3
- metadata.gz: f21a7b09394201f5579e2731af7ef0f6c853ba42
4
- data.tar.gz: 7ee2f6e1bba0af5bb95d4245afa208d98acf5c04
3
+ metadata.gz: cf300a71efe89060416671c1583ffcd61cd75a9a
4
+ data.tar.gz: ba1f25b8ebc188cecd744d4cda23760c8e406dca
5
5
  SHA512:
6
- metadata.gz: a9aca30c09aacc97f42b1a7b28b3b4d8a23eeccaece23f0903d9a6b1057bdb526b73ba2dca72be89c8b15e6eb1584d23dcb09638e6bbfd106144e4a9ff16c752
7
- data.tar.gz: 2c4d4d787d8b8f35af47511144c19b9ea3635fa764245c088732b59b6cd3b596999f327f0dfbf73a2d5622cc3f0a34dffb378450d7f2b8504c607eaa6bec36a5
6
+ metadata.gz: 2438b32baa43ac7713c5b80c8e8548b84c673f5b69895f3a79e7302ea809351bebcbafe26c7464692a8ffff43fff74685d685c98a73c3148303b66e529545f73
7
+ data.tar.gz: b73d7e126c6e695bc93548ac5684e44e4b896e0189116c514e5abf1be36d9b50097c451175087187e6289f1f0834440ee56fccbbe76dcd0e736bb9acd319ddd2
@@ -140,37 +140,26 @@ module Riddl
140
140
  app.use Rack::CommonLogger, @riddl_logger
141
141
  end
142
142
 
143
- server = if verbose
144
- Rack::Server.new(
145
- :app => app,
146
- :Host => '0.0.0.0',
147
- :Port => @riddl_opts[:port],
148
- :environment => 'deployment',
149
- :server => 'thin',
150
- :pid => File.expand_path(@riddl_opts[:basepath] + '/' + @riddl_opts[:pidfile])
151
- )
152
- else
153
- Rack::Server.new(
154
- :app => app,
155
- :Host => '0.0.0.0',
156
- :Port => @riddl_opts[:port],
157
- :environment => 'none',
158
- :server => 'thin',
159
- :pid => File.expand_path(@riddl_opts[:basepath] + '/' + @riddl_opts[:pidfile]),
160
- :daemonize => true
161
- )
162
- end
163
-
143
+ server = Rack::Server.new(
144
+ :app => app,
145
+ :Host => '0.0.0.0',
146
+ :Port => @riddl_opts[:port],
147
+ :environment => verbose ? 'deployment' : 'none',
148
+ :server => 'thin',
149
+ :pid => File.expand_path(@riddl_opts[:basepath] + '/' + @riddl_opts[:pidfile]),
150
+ :signals => false
151
+ )
152
+
153
+ puts "Server (#{@riddl_opts[:url]}) started as PID:#{Process.pid}"
154
+ puts "XMPP support (#{@riddl_xmpp_jid}) active" if @riddl_xmpp_jid && @riddl_xmpp_pass && !http_only
155
+ Process.daemon unless verbose
164
156
  ::Kernel::at_exit do
165
157
  @riddl_at_exit.call
166
158
  end
167
-
168
159
  begin
169
160
  EM.run do
170
- puts "Server (#{@riddl_opts[:url]}) started as PID:#{Process.pid}"
171
161
  server.start
172
162
 
173
- puts "XMPP support (#{@riddl_xmpp_jid}) active" if @riddl_xmpp_jid && @riddl_xmpp_pass && !http_only
174
163
  @riddl_opts[:xmpp] = nil
175
164
  if @riddl_xmpp_jid && @riddl_xmpp_pass && !http_only
176
165
  xmpp = Blather::Client.setup @riddl_xmpp_jid, @riddl_xmpp_pass
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.175"
3
+ s.version = "0.99.176"
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.175
4
+ version: 0.99.176
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-13 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xml-smart