aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/cmd/search.rb2
-rw-r--r--Library/Homebrew/utils.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/cmd/search.rb b/Library/Homebrew/cmd/search.rb
index 52a13516b..96bc14db3 100644
--- a/Library/Homebrew/cmd/search.rb
+++ b/Library/Homebrew/cmd/search.rb
@@ -62,7 +62,7 @@ module Homebrew extend self
if count == 0 and not blacklisted? query
puts "No formula found for #{query.inspect}."
begin
- GitHub.find_pull_requests(query) { |pull| puts pull }
+ GitHub.print_pull_requests_matching(query)
rescue GitHub::Error => e
opoo e.message
end
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index f0ff2f123..6d13d0583 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -322,7 +322,7 @@ module GitHub extend self
issues_matching(name, :state => "open")
end
- def find_pull_requests query
+ def print_pull_requests_matching(query)
return if ENV['HOMEBREW_NO_GITHUB_API']
puts "Searching pull requests..."
@@ -339,7 +339,7 @@ module GitHub extend self
return
end
- prs.each { |i| yield "#{i["title"]} (#{i["html_url"]})" }
+ prs.each { |i| puts "#{i["title"]} (#{i["html_url"]})" }
end
def private_repo?(user, repo)