From c95b90a02224473446f22b59f4aae6630ab387c8 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 27 Dec 2013 16:19:43 -0600 Subject: [PATCH] Don't send, just call the method directly --- Library/Homebrew/cmd/bottle.rb | 2 +- Library/Homebrew/cmd/versions.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 7e44b606ba..9135af414f 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -204,7 +204,7 @@ module Homebrew extend self f = Formula.factory formula_name formula_relative_path = "Library/Formula/#{f.name}.rb" formula_path = HOMEBREW_REPOSITORY+formula_relative_path - has_bottle_block = f.class.send(:bottle).checksums.any? + has_bottle_block = f.class.bottle.checksums.any? inreplace formula_path do |s| if has_bottle_block s.sub!(/ bottle do.+?end\n/m, output) diff --git a/Library/Homebrew/cmd/versions.rb b/Library/Homebrew/cmd/versions.rb index f76c7b8bba..d646f8aef4 100644 --- a/Library/Homebrew/cmd/versions.rb +++ b/Library/Homebrew/cmd/versions.rb @@ -45,7 +45,7 @@ class Formula map = Hash.new { |h, k| h[k] = [] } rev_list(branch) do |rev| formula_for_sha(rev) do |f| - bottle = f.class.send(:bottle) + bottle = f.class.bottle unless bottle.checksums.empty? map[bottle.version] << bottle.revision end