Fix keg version in Formula#to_hash

Closes Homebrew/homebrew#28550.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Finn Smith 2014-04-20 00:03:18 -04:00 committed by Jack Nagel
parent 23400ec217
commit eed3368039

View File

@ -469,8 +469,9 @@ class Formula
} }
if rack.directory? if rack.directory?
rack.subdirs.each do |keg| rack.subdirs.each do |keg_path|
tab = Tab.for_keg keg keg = Keg.new keg_path
tab = Tab.for_keg keg_path
hsh["installed"] << { hsh["installed"] << {
"version" => keg.version.to_s, "version" => keg.version.to_s,