about summary refs log tree commit homepage
path: root/unicorn.gemspec
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2016-01-27 00:08:19 +0000
committerEric Wong <e@80x24.org>2016-01-27 00:28:01 +0000
commit3d69a6f064078eeb28c1819725d3715ce6905374 (patch)
treefc8400bf722ae60869043711df57a932c5137c01 /unicorn.gemspec
parent7c0271ef26dd41eb0fc1ca3370883c49a45b2dec (diff)
downloadunicorn-3d69a6f064078eeb28c1819725d3715ce6905374.tar.gz
We do not want to pull in a newer or older version of rack depending
on an the application running under it requires.  Furthermore, it
has always been possible to use unicorn without any middleware at
all.

Without rack, we'll be missing descriptive status text in the first
response line, but any valid HTTP/1.x parser should be able to
handle it properly.

ref:
 http://bogomips.org/unicorn-public/20160121201255.GA6186@dcvr.yhbt.net/t/#u

Thanks-to: Adam Duke <adam.v.duke@gmail.com>
Thanks-to: Aaron Patterson <tenderlove@ruby-lang.org>
Diffstat (limited to 'unicorn.gemspec')
-rw-r--r--unicorn.gemspec10
1 files changed, 5 insertions, 5 deletions
diff --git a/unicorn.gemspec b/unicorn.gemspec
index 2728373..cf65aef 100644
--- a/unicorn.gemspec
+++ b/unicorn.gemspec
@@ -31,11 +31,11 @@ Gem::Specification.new do |s|
   # version requirements here.
   s.required_ruby_version = '< 3.0'
 
-  # for people that are absolutely stuck on Rails 2.3.2 and can't
-  # up/downgrade to any other version, the Rack dependency may be
-  # commented out.  Nevertheless, upgrading to Rails 2.3.4 or later is
-  # *strongly* recommended for security reasons.
-  s.add_dependency(%q<rack>)
+  # We do not have a hard dependency on rack, it's possible to load
+  # things which respond to #call.  HTTP status lines in responses
+  # won't have descriptive text, only the numeric status.
+  s.add_development_dependency(%q<rack>)
+
   s.add_dependency(%q<kgio>, '~> 2.6')
   s.add_dependency(%q<raindrops>, '~> 0.7')