diff options
-rw-r--r-- | bin/rainbows | 5 | ||||
-rw-r--r-- | rainbows.gemspec | 6 |
2 files changed, 4 insertions, 7 deletions
diff --git a/bin/rainbows b/bin/rainbows index 75c361f..685dd09 100644 --- a/bin/rainbows +++ b/bin/rainbows @@ -110,10 +110,7 @@ opts = OptionParser.new("", 24, ' ') do |opts| opts.parse! ARGV end -config = ARGV[0] || "config.ru" -abort "configuration file #{config} not found" unless File.exist?(config) - -app = Unicorn.builder(config, opts) +app = Unicorn.builder(ARGV[0] || 'config.ru', opts) listeners << "#{host}:#{port}" if set_listener if $DEBUG diff --git a/rainbows.gemspec b/rainbows.gemspec index c2f83c2..4726987 100644 --- a/rainbows.gemspec +++ b/rainbows.gemspec @@ -41,9 +41,9 @@ Gem::Specification.new do |s| s.test_files = test_files # we need Unicorn for the HTTP parser and process management - # The HTTP parser in Unicorn <= 0.97.0 was vulnerable to a remote DoS - # when exposed directly to untrusted clients. - s.add_dependency(%q<unicorn>, [">= 0.990.0", "< 2.0.0"]) + # Unicorn 0.991.0 handles config.ru when started outside of + # the prespecified working_directory + s.add_dependency(%q<unicorn>, [">= 0.991.0", "< 2.0.0"]) s.add_development_dependency(%q<isolate>, "~> 2.0.2") # Unicorn already depends on Rack |