Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: jstorimer/hooves
base: c17919fe99
...
head fork: jstorimer/hooves
compare: 218dcfb737
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Commits on Mar 30, 2012
@lramos85 lramos85 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.
601ea64
@jstorimer Merge pull request #5 from lramos85/master
Hooves does not start unicorn correctly when using Ruby 1.8
218dcfb
Showing with 2 additions and 1 deletion.
  1. +1 −0  hooves.gemspec
  2. +1 −1  lib/hooves/unicorn.rb
View
1  hooves.gemspec
@@ -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
2  lib/hooves/unicorn.rb
@@ -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)

No commit comments for this range

Something went wrong with that request. Please try again.