* Re: [PATCH] Add -N or --no-default-middleware option.
@ 2013-01-29 4:02 7% ` Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2013-01-29 4:02 UTC (permalink / raw)
To: unicorn list; +Cc: Lin Jen-Shin
Eric Wong <normalperson@yhbt.net> wrote:
> Lin Jen-Shin <godfat@godfat.org> wrote:
> > + opts.on("-N", "--no-default-middleware",
> > + "no default middleware even if RACK_ENV is development") do |e|
>
> RACK_ENV=deployment also loads middleware, so I think it's more accurate
> with:
>
> do not load middleware implied by RACK_ENV
>
> This also puts us back within the 80-column limit imposed by "test_help"
> in test/exec/test_exec.rb
Heh, turns out there's a bug in test_exec.rb (but I still don't think
mentioning "development" for this help is correct)
>From ee3ada3c697311ab0a799fcdc492ae062e7d5128 Mon Sep 17 00:00:00 2001
From: Eric Wong <normalperson@yhbt.net>
Date: Tue, 29 Jan 2013 03:56:16 +0000
Subject: [PATCH] test_exec: do not count '\n' as column width
This off-by-one error was incorrectly rejecting a line which
would've been readable without wrapping on an 80-column terminal.
---
test/exec/test_exec.rb | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/exec/test_exec.rb b/test/exec/test_exec.rb
index 1cee2b7..10a1bae 100644
--- a/test/exec/test_exec.rb
+++ b/test/exec/test_exec.rb
@@ -323,6 +323,7 @@ EOF
# mobile phone or netbook on a slow connection :)
assert lines.size <= 24, "help height fits in an ANSI terminal window"
lines.each do |line|
+ line.chomp!
assert line.size <= 80, "help width fits in an ANSI terminal window"
end
end
--
1.8.1.1.253.g2934a48
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2013-01-29 3:21 [PATCH] Add -N or --no-default-middleware option Lin Jen-Shin
2013-01-29 3:52 ` Eric Wong
2013-01-29 4:02 7% ` Eric Wong
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).