From 7544a9afc7be23dbeed88f9a6c28da9b7beeaf80 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 3 Dec 2016 19:46:38 +0000 Subject: [PATCH 1/2] tab: include HOMEBREW_VERSION --- Library/Homebrew/tab.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 28f29aaad1..5588a14c6d 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? From 5cf97e5603456a6d9dc407b5e3bf7ba31c69b6d6 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sat, 3 Dec 2016 23:26:52 +0000 Subject: [PATCH 2/2] tab: remove debugging --- Library/Homebrew/tab.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index 5588a14c6d..d355e838d7 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -319,9 +319,6 @@ 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?