tab: fix Tab.for_formula versions (#687)
versions should be initialized even if formula is not installed
This commit is contained in:
parent
1e76a207b5
commit
b40b072ed8
@ -138,6 +138,11 @@ class Tab < OpenStruct
|
|||||||
"path" => f.path.to_s,
|
"path" => f.path.to_s,
|
||||||
"tap" => f.tap ? f.tap.name : f.tap,
|
"tap" => f.tap ? f.tap.name : f.tap,
|
||||||
"spec" => f.active_spec_sym.to_s,
|
"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
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user