Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
B
brew
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
KMSCAKKSCFKA AKFACAMADCAS
brew
Commits
6ff5e194
Commit
6ff5e194
authored
14 years ago
by
Jamie Macey
Committed by
Adam Vandenberg
14 years ago
Browse files
Options
Downloads
Patches
Plain Diff
fix warnings: splat is redundant for puts
Signed-off-by:
Adam Vandenberg
<
flangy@gmail.com
>
parent
1e41264f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Library/Homebrew/brew.h.rb
+1
-1
1 addition, 1 deletion
Library/Homebrew/brew.h.rb
Library/Homebrew/utils.rb
+3
-3
3 additions, 3 deletions
Library/Homebrew/utils.rb
bin/brew
+6
-6
6 additions, 6 deletions
bin/brew
with
10 additions
and
10 deletions
Library/Homebrew/brew.h.rb
+
1
−
1
View file @
6ff5e194
...
...
@@ -537,7 +537,7 @@ private
when 0
# noop
when 1
puts
*
files
puts files
else
puts "
#{
root
}
/ (
#{
files
.
length
}
#{
other
}
files)"
end
...
...
This diff is collapsed.
Click to expand it.
Library/Homebrew/utils.rb
+
3
−
3
View file @
6ff5e194
...
...
@@ -63,7 +63,7 @@ end
def
ohai
title
,
*
sput
title
=
title
.
to_s
[
0
,
`/usr/bin/tput cols`
.
strip
.
to_i
-
4
]
unless
ARGV
.
verbose?
puts
"
#{
Tty
.
blue
}
==>
#{
Tty
.
white
}
#{
title
}#{
Tty
.
reset
}
"
puts
*
sput
unless
sput
.
empty?
puts
sput
unless
sput
.
empty?
end
def
opoo
warning
...
...
@@ -73,7 +73,7 @@ end
def
onoe
error
lines
=
error
.
to_s
.
split
'\n'
puts
"
#{
Tty
.
red
}
Error
#{
Tty
.
reset
}
:
#{
lines
.
shift
}
"
puts
*
lines
unless
lines
.
empty?
puts
lines
unless
lines
.
empty?
end
def
pretty_duration
s
...
...
@@ -140,7 +140,7 @@ def puts_columns items, cols = 4
IO
.
popen
(
"/usr/bin/pr -
#{
cols
}
-t -w
#{
console_width
}
"
,
"w"
){
|
io
|
io
.
puts
(
items
)
}
else
puts
*
items
puts
items
end
end
...
...
This diff is collapsed.
Click to expand it.
bin/brew
+
6
−
6
View file @
6ff5e194
...
...
@@ -81,13 +81,13 @@ begin
if
ARGV
.
named
.
empty?
puts
HOMEBREW_CACHE
else
puts
*
ARGV
.
formulae
.
collect
{
|
f
|
f
.
cached_download
}
puts
ARGV
.
formulae
.
collect
{
|
f
|
f
.
cached_download
}
end
when
'--prefix'
if
ARGV
.
named
.
empty?
puts
HOMEBREW_PREFIX
else
puts
*
ARGV
.
formulae
.
collect
{
|
f
|
f
.
prefix
}
puts
ARGV
.
formulae
.
collect
{
|
f
|
f
.
prefix
}
end
when
'--repository'
puts
HOMEBREW_REPOSITORY
...
...
@@ -95,7 +95,7 @@ begin
if
ARGV
.
named
.
empty?
puts
HOMEBREW_CELLAR
else
puts
*
ARGV
.
formulae
.
collect
{
|
f
|
HOMEBREW_CELLAR
+
f
.
name
}
puts
ARGV
.
formulae
.
collect
{
|
f
|
HOMEBREW_CELLAR
+
f
.
name
}
end
when
'--config'
dump_config
...
...
@@ -287,7 +287,7 @@ begin
if ARGV.include? "--installed"
uses = uses.select { |f| f = HOMEBREW_CELLAR+f; f.directory? and not f.subdirs.empty? }
end
puts
*
uses.sort
puts uses.sort
when 'deps'
if ARGV.include?('--all')
...
...
@@ -296,10 +296,10 @@ begin
puts "
#{
f
.
name
}
:
#{
f
.
deps
.
join
(
' '
)
}
"
end
elsif ARGV.include?("-1") or ARGV.include?("--1")
puts
*
ARGV.formulae.map
{
|f| f.deps or []
}.flatten.uniq.sort
puts ARGV.formulae.map
{
|f| f.deps or []}.flatten.uniq.sort
else
require 'formula_installer'
puts
*
ARGV.formulae.map
{
|f| FormulaInstaller.expand_deps(f).map{|f| f.name} }.flatten.uniq.sort
puts ARGV.formulae.map
{
|f| FormulaInstaller.expand_deps(f).map
{|f| f.name} }.flatten.uniq.sort
end
when 'cat'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment