Permalink
Browse files

Changes to make hooves behave nicely with both Ruby 1.8 and 1.9, prob…

…lem was Hash#select is an array in Ruby 1.8.
  • Loading branch information...
1 parent c17919f commit 601ea6497c5980e465b305f5c4988a885e56e7e1 @6Sack 6Sack committed Mar 30, 2012
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 601ea64

Please sign in to comment.