unicorn-rails 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module Rack
13
13
  def run(app, options = {})
14
14
  unicorn_options = {}
15
15
  unicorn_options[:listeners] = ["#{options[:Host]}:#{options[:Port]}"]
16
- unicorn_options[:worker_processes] = 1
16
+ unicorn_options[:worker_processes] = (ENV["UNICORN_WORKERS"] || "1").to_i
17
17
  unicorn_options[:timeout] = 31 * 24 * 60 * 60
18
18
 
19
19
  ::Unicorn::Launcher.daemonize!(unicorn_options) if options[:daemonize]
@@ -25,7 +25,7 @@ module Rack
25
25
  register "unicorn", "Rack::Handler::Unicorn"
26
26
 
27
27
  def self.default(options = {})
28
- Rack::Handler::Unicorn
28
+ Rack::Handler::Unicorn
29
29
  end
30
30
  end
31
31
  end
@@ -1,5 +1,5 @@
1
1
  module Unicorn
2
2
  module Rails
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unicorn-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-12-20 00:00:00.000000000 Z
12
+ date: 2013-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  requirements: []
76
76
  rubyforge_project:
77
- rubygems_version: 1.8.24
77
+ rubygems_version: 1.8.25
78
78
  signing_key:
79
79
  specification_version: 3
80
80
  summary: unicorn-rails is a simple gem that sets the default server for rack (and