emmy-engine 0.2.9 → 0.2.10

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: 7de6c9da1251c209b2a72734a97f4f2e6714ab77
4
- data.tar.gz: d232969593cd5abf02d31fc18755d8243e9e4208
3
+ metadata.gz: 20a80e5c735f8cc86dbdbaacbfcfccf63daa5ee9
4
+ data.tar.gz: 482aecd48f6af1deb88d89c5cfac4698a753d82f
5
5
  SHA512:
6
- metadata.gz: 507fdcd91c0488c3f02ee06a6cfc64039e2f704cdb2708ed3767cba1f54dd40620a2ef20924e7c58aee8c56ddbe4e3eab9acb2032947ebd29550c91ed83ba154
7
- data.tar.gz: c4c7f93925386fe5cc74108b2ac8e3d6265c3f9c2bf89c5018285239bf1ca9dc0f2eb2e8020a3563be1e6689c1cbd19dd106fe2e3113fc1e66d6a275ecffb03b
6
+ metadata.gz: 42cd330e2e2f90e5c439f55ac967a9eaf35f56a4fb58deb80565fe9c9e3f44dd5397df78db3d6fbf45c4331518dec0ce173f273a76fe11b69ff1682c24407980
7
+ data.tar.gz: 1675b304f69cff368b26d711849269337eabada83d478a35e0f42016fe973b102cc2556b3c3f5317c677c33c145b5d767e55bbdf933b256fb828deb5563d8338
data/lib/emmy/runner.rb CHANGED
@@ -126,6 +126,8 @@ module Emmy
126
126
  # Boot instance
127
127
  instance!
128
128
 
129
+ set_effective_user
130
+
129
131
  scope_pid(Process.pid) do |pid|
130
132
  puts pid
131
133
  File.umask(0000)
@@ -219,6 +221,12 @@ module Emmy
219
221
  end
220
222
  end
221
223
 
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
+
222
230
  def backend_file
223
231
  thin = (config.backend == 'backend') ? EmmyExtends::Thin::EMMY_BACKEND : nil rescue nil
224
232
  backends = [
data/lib/emmy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Emmy
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.10"
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.9
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - inre