From ca1a6492bc7921c3ad269f434be5b927802ada64 Mon Sep 17 00:00:00 2001 From: Max Howell Date: Thu, 15 Oct 2009 09:07:12 +0100 Subject: [PATCH] s/require 'brewkit'/require 'formula'/g brewkit.rb changes ENV destructively, so lets not do that everytime a formula is required. Now it's possible for other tools to require a formula description without worrying about side-effects. --- Library/Homebrew/brew.h.rb | 2 +- Library/Homebrew/brewkit.rb | 4 ---- Library/Homebrew/formula.rb | 2 ++ Library/Homebrew/install.rb | 8 ++++++-- Library/Homebrew/unittest.rb | 2 +- bin/brew | 2 -- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 83cb79c509..24f9046a94 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -30,7 +30,7 @@ def __make url, name raise "#{path} already exists" if path.exist? template=<<-EOS - require 'brewkit' + require 'formula' class #{Formula.class_s name} 1 # the reason for this is interactive mode is a little tricky to do # with more than one formula, AND I can't think of a time where you'd