diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-02 03:14:56 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-02 03:14:56 -0700 |
commit | d6087cacfb1b40199637fc8877f1fa93bb314257 (patch) | |
tree | b16cb3e79e5e626cf1174530798dee405d715b97 | |
parent | 99a1de487400577affdc5e22da253cc710735956 (diff) | |
download | unicorn-d6087cacfb1b40199637fc8877f1fa93bb314257.tar.gz |
Just because I know regular expressions doesn't mean I *have* to use them...
-rw-r--r-- | lib/unicorn.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/unicorn.rb b/lib/unicorn.rb index 02e0363..d73317d 100644 --- a/lib/unicorn.rb +++ b/lib/unicorn.rb @@ -589,7 +589,7 @@ module Unicorn end def proc_name(tag) - $0 = ([ @start_ctx[:zero].sub(%r{\A.*?([^/]+)\z}, '\1'), tag ] + + $0 = ([ File.basename(@start_ctx[:zero]), tag ] + @start_ctx[:argv]).join(' ') end |