hooves 0.4 → 0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/hooves/unicorn.rb +3 -3
  2. metadata +6 -6
@@ -8,7 +8,7 @@ module Hooves
8
8
  class << self
9
9
  def run(app, options={})
10
10
  options[:listeners] = ["#{options.delete(:Host)}:#{options.delete(:Port)}"]
11
- options[:worker_processes] = 3
11
+ options[:worker_processes] ||= 3
12
12
 
13
13
  if options.delete(:debugger)
14
14
  $DEBUG = true
@@ -25,12 +25,12 @@ module Hooves
25
25
  options[:config_file] = find_config_file
26
26
 
27
27
  # :pid option is stronly discouraged except in unicorn config file
28
- uni_options = options.slice(:listeners, :worker_processes, :config_file, :timeout)
28
+ uni_options = options.select { |k, v| [:listeners, :worker_processes, :config_file, :timeout].include?(k) }
29
29
 
30
30
  if daemonize
31
31
  ::Unicorn::Launcher.daemonize!(uni_options)
32
32
  else
33
- ::Unicorn.run(app, uni_options)
33
+ ::Unicorn::HttpServer.new(app, uni_options).start.join
34
34
  end
35
35
  end
36
36
 
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hooves
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 4
9
- version: "0.4"
8
+ - 5
9
+ version: "0.5"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jesse Storimer
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-09-21 00:00:00 -04:00
17
+ date: 2011-10-24 00:00:00 -04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -43,7 +43,7 @@ files:
43
43
  - README.md
44
44
  - lib/hooves/unicorn.rb
45
45
  - lib/hooves.rb
46
- has_rdoc: false
46
+ has_rdoc: true
47
47
  homepage: http://github.com/jstorimer/hooves
48
48
  licenses: []
49
49
 
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  requirements: []
74
74
 
75
75
  rubyforge_project:
76
- rubygems_version: 1.3.9.3
76
+ rubygems_version: 1.6.2
77
77
  signing_key:
78
78
  specification_version: 3
79
79
  summary: A simple Rack handler for unicorn meant to be used with the `rails server` command