From 472b6e4fe1f4d7d8a64fde8bc66f11c990b21bc9 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Mon, 1 Jul 2013 16:45:27 -0700 Subject: [PATCH] versions: pass string to factory Closes Homebrew/homebrew#20951. --- Library/Homebrew/cmd/versions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index 778e92ac80..86a184d947 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -88,7 +88,7 @@ class Formula # Unload the class so Formula#version returns the correct value begin Formulary.unload_formula name - nostdout { Formula.factory(path).version } + nostdout { Formula.factory(path.to_s).version } rescue *IGNORED_EXCEPTIONS => e # We rescue these so that we can skip bad versions and # continue walking the history