tab: include HOMEBREW_VERSION
This commit is contained in:
parent
0f529dae10
commit
7544a9afc7
@ -20,6 +20,7 @@ class Tab < OpenStruct
|
|||||||
def self.create(formula, compiler, stdlib)
|
def self.create(formula, compiler, stdlib)
|
||||||
build = formula.build
|
build = formula.build
|
||||||
attributes = {
|
attributes = {
|
||||||
|
"homebrew_version" => HOMEBREW_VERSION,
|
||||||
"used_options" => build.used_options.as_flags,
|
"used_options" => build.used_options.as_flags,
|
||||||
"unused_options" => build.unused_options.as_flags,
|
"unused_options" => build.unused_options.as_flags,
|
||||||
"tabfile" => formula.prefix.join(FILENAME),
|
"tabfile" => formula.prefix.join(FILENAME),
|
||||||
@ -299,6 +300,7 @@ class Tab < OpenStruct
|
|||||||
|
|
||||||
def to_json
|
def to_json
|
||||||
attributes = {
|
attributes = {
|
||||||
|
"homebrew_version" => homebrew_version,
|
||||||
"used_options" => used_options.as_flags,
|
"used_options" => used_options.as_flags,
|
||||||
"unused_options" => unused_options.as_flags,
|
"unused_options" => unused_options.as_flags,
|
||||||
"built_as_bottle" => built_as_bottle,
|
"built_as_bottle" => built_as_bottle,
|
||||||
@ -317,6 +319,9 @@ class Tab < OpenStruct
|
|||||||
end
|
end
|
||||||
|
|
||||||
def write
|
def write
|
||||||
|
require 'pry-byebug'
|
||||||
|
binding.pry
|
||||||
|
|
||||||
# If this is a new installation, the cache of installed formulae
|
# If this is a new installation, the cache of installed formulae
|
||||||
# will no longer be valid.
|
# will no longer be valid.
|
||||||
Formula.clear_installed_formulae_cache unless tabfile.exist?
|
Formula.clear_installed_formulae_cache unless tabfile.exist?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user