From 3d69a6f064078eeb28c1819725d3715ce6905374 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 27 Jan 2016 00:08:19 +0000 Subject: rack is optional at runtime, required for dev 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 Thanks-to: Aaron Patterson --- unicorn.gemspec | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'unicorn.gemspec') 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) + # 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) + s.add_dependency(%q, '~> 2.6') s.add_dependency(%q, '~> 0.7') -- cgit v1.2.3-24-ge0c7