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 +4 -4
- data/lib/ruby/riddl/server.rb +13 -24
- data/riddl.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cf300a71efe89060416671c1583ffcd61cd75a9a
|
4
|
+
data.tar.gz: ba1f25b8ebc188cecd744d4cda23760c8e406dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2438b32baa43ac7713c5b80c8e8548b84c673f5b69895f3a79e7302ea809351bebcbafe26c7464692a8ffff43fff74685d685c98a73c3148303b66e529545f73
|
7
|
+
data.tar.gz: b73d7e126c6e695bc93548ac5684e44e4b896e0189116c514e5abf1be36d9b50097c451175087187e6289f1f0834440ee56fccbbe76dcd0e736bb9acd319ddd2
|
data/lib/ruby/riddl/server.rb
CHANGED
@@ -140,37 +140,26 @@ module Riddl
|
|
140
140
|
app.use Rack::CommonLogger, @riddl_logger
|
141
141
|
end
|
142
142
|
|
143
|
-
server =
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
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
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.
|
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-
|
11
|
+
date: 2015-01-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xml-smart
|