diff options
| author | LeFnord | 2012-02-17 21:18:37 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2012-02-17 18:59:36 -0800 |
| commit | b0ece7613fe2a41f394666bf2946dd03fc2ea30b (patch) | |
| tree | 79206901f7be52c38a4e211f4085aad71dd36a38 /Library | |
| parent | e1461b9d2055f893a0693c695ac89d787ab5178c (diff) | |
| download | brew-b0ece7613fe2a41f394666bf2946dd03fc2ea30b.tar.bz2 | |
cast `name` to string
Some times a Pathname is passed in here
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 512dafaf0..d6a80ddc1 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -347,6 +347,9 @@ class Formula # If an instance of Formula is passed, just return it return name if name.kind_of? Formula + # Otherwise, convert to String in case a Pathname comes in + name = name.to_s + # If a URL is passed, download to the cache and install if name =~ %r[(https?|ftp)://] url = name |
