emmy-engine 0.2.11 → 0.2.12

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: 07f2de113179fedab7b02233781c505b375cd911
4
- data.tar.gz: 099b0d2322c96fe72b13ab50f05a383de9c9a06d
3
+ metadata.gz: 0214e3559c17d808c8b258a6275a0b379c03601a
4
+ data.tar.gz: e4ce42ae4fd039c7d63d69b66e7a5769575e895e
5
5
  SHA512:
6
- metadata.gz: 598bf3ec073091d822d014e83208609a01c40142cce2d4c748afb984721a153ddc6639eff3c9d63449ae4f97f6d593792aecd7190d5f36878ea699506352ded3
7
- data.tar.gz: e1da1289c5027bcfde85ac157cc961ca8fe99b98fd39edc869b411c8715c48cbb6b6fdbb2d6fa0e42065440d855944760c783962c290c0e1e05b1b0a358cfdb3
6
+ metadata.gz: d782395dd4c7bd7435386c2f7362d345ffd7563c18764e7a836b0216d81fdd8191c3908061081a69b134366e773c168e278cee7b31e52c34d38c64e930a57ae0
7
+ data.tar.gz: c2a26cdef7e15ec34c15468d89b86b301f14b1f361b3f27480890426d71c0c665bed8e8db8c7ac6e3d7cdf9c1edcf38ca9587153a114717ce2e4b8195dd0bf3e
data/lib/emmy/runner.rb CHANGED
@@ -126,8 +126,6 @@ module Emmy
126
126
  # Boot instance
127
127
  instance!
128
128
 
129
- set_effective_user
130
-
131
129
  scope_pid(Process.pid) do |pid|
132
130
  puts pid
133
131
  File.umask(0000)
@@ -221,12 +219,6 @@ module Emmy
221
219
  end
222
220
  end
223
221
 
224
- def set_effective_user
225
- EventMachine.set_effective_user config.user if config.user
226
- config.user = nil
227
- config.group = nil
228
- end
229
-
230
222
  def backend_file
231
223
  thin = (config.backend == 'backend') ? EmmyExtends::Thin::EMMY_BACKEND : nil rescue nil
232
224
  backends = [
@@ -242,7 +234,7 @@ module Emmy
242
234
  end
243
235
 
244
236
  def scope_pid(pid)
245
- FileUtils.mkdir_p(File.dirname(config.pid)) rescue
237
+ FileUtils.mkdir_p(File.dirname(config.pid))
246
238
  stop_pid(config.pid)
247
239
  File.open(config.pid, 'w') { |f| f.write(pid) }
248
240
  if block_given?
@@ -272,12 +264,12 @@ module Emmy
272
264
 
273
265
  def bind_standard_streams
274
266
  STDIN.reopen("/dev/null")
275
- STDOUT.reopen(config.stdout, "a")
267
+ STDOUT.reopen(config.stdout, "a") if config.stdout
276
268
 
277
269
  if config.stdout == config.stderr
278
270
  STDERR.reopen(STDOUT)
279
271
  else
280
- STDERR.reopen(config.stderr, "a")
272
+ STDERR.reopen(config.stderr, "a") if config.stderr
281
273
  end
282
274
  end
283
275
 
data/lib/emmy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Emmy
2
- VERSION = "0.2.11"
2
+ VERSION = "0.2.12"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emmy-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - inre