Skip to content

Commit

Permalink
tab: fix Tab.for_formula versions (#687)
Browse files Browse the repository at this point in the history
versions should be initialized even if formula is not installed
  • Loading branch information
vladshablinsky authored and xu-cheng committed Aug 13, 2016
1 parent 1e76a20 commit b40b072
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Library/Homebrew/tab.rb
Expand Up @@ -138,6 +138,11 @@ def self.for_formula(f)
"path" => f.path.to_s,
"tap" => f.tap ? f.tap.name : f.tap,
"spec" => f.active_spec_sym.to_s,
"versions" => {
"stable" => f.stable ? f.stable.version.to_s : nil,
"devel" => f.devel ? f.devel.version.to_s : nil,
"head" => f.head ? f.head.version.to_s : nil,
}
}
end

Expand Down

0 comments on commit b40b072

Please sign in to comment.