Permalink
Browse files

Merge pull request #5 from lramos85/master

Hooves does not start unicorn correctly when using Ruby 1.8
  • Loading branch information...
jstorimer committed Mar 30, 2012
2 parents c17919f + 601ea64 commit 218dcfb737cd0493145f450278d69df2d87eb2c5
Showing with 2 additions and 1 deletion.
  1. +1 −0 hooves.gemspec
  2. +1 −1 lib/hooves/unicorn.rb
View
@@ -3,6 +3,7 @@ Gem::Specification.new do |s|
s.name = 'hooves'
s.version = '0.6'
s.summary = "A simple Rack handler for unicorn meant to be used with the `rails server` command"
+ s.description = "Rack handler for unicorn meant to be used with the `rails server` command"
s.date = Time.now.strftime('%Y-%m-%d')
View
@@ -25,7 +25,7 @@ def run(app, options={})
options[:config_file] = find_config_file
# :pid option is stronly discouraged except in unicorn config file
- uni_options = options.select { |k, v| [:listeners, :worker_processes, :config_file, :timeout].include?(k) }
+ uni_options = Hash[options.select { |k, v| [:listeners, :worker_processes, :config_file, :timeout].include?(k) }]
if daemonize
::Unicorn::Launcher.daemonize!(uni_options)

0 comments on commit 218dcfb

Please sign in to comment.