aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAlyssa Ross2016-12-03 19:46:38 +0000
committerAlyssa Ross2016-12-03 19:46:38 +0000
commit7544a9afc7be23dbeed88f9a6c28da9b7beeaf80 (patch)
tree0fab403ffaff673f7e281043b2942a6b2a06696b /Library
parent0f529dae1043639058130092cf35e68d18907cb8 (diff)
downloadbrew-7544a9afc7be23dbeed88f9a6c28da9b7beeaf80.tar.bz2
tab: include HOMEBREW_VERSION
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/tab.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 28f29aaad..5588a14c6 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -20,6 +20,7 @@ class Tab < OpenStruct
def self.create(formula, compiler, stdlib)
build = formula.build
attributes = {
+ "homebrew_version" => HOMEBREW_VERSION,
"used_options" => build.used_options.as_flags,
"unused_options" => build.unused_options.as_flags,
"tabfile" => formula.prefix.join(FILENAME),
@@ -299,6 +300,7 @@ class Tab < OpenStruct
def to_json
attributes = {
+ "homebrew_version" => homebrew_version,
"used_options" => used_options.as_flags,
"unused_options" => unused_options.as_flags,
"built_as_bottle" => built_as_bottle,
@@ -317,6 +319,9 @@ class Tab < OpenStruct
end
def write
+ require 'pry-byebug'
+ binding.pry
+
# If this is a new installation, the cache of installed formulae
# will no longer be valid.
Formula.clear_installed_formulae_cache unless tabfile.exist?