mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Use space inside block braces everywhere
To make rubygems code style consistent with bundler.
This commit is contained in:
parent
ef481c120c
commit
955f1837a1
Notes:
git
2020-06-15 21:21:04 +09:00
99 changed files with 469 additions and 469 deletions
|
|
@ -90,7 +90,7 @@ class Gem::SourceList
|
|||
# Yields each source URI in the list.
|
||||
|
||||
def each
|
||||
@sources.each { |s| yield s.uri.to_s }
|
||||
@sources.each {|s| yield s.uri.to_s }
|
||||
end
|
||||
|
||||
##
|
||||
|
|
@ -115,7 +115,7 @@ class Gem::SourceList
|
|||
# Returns an Array of source URI Strings.
|
||||
|
||||
def to_a
|
||||
@sources.map { |x| x.uri.to_s }
|
||||
@sources.map {|x| x.uri.to_s }
|
||||
end
|
||||
|
||||
alias_method :to_ary, :to_a
|
||||
|
|
@ -135,7 +135,7 @@ class Gem::SourceList
|
|||
if other.kind_of? Gem::Source
|
||||
@sources.include? other
|
||||
else
|
||||
@sources.find { |x| x.uri.to_s == other.to_s }
|
||||
@sources.find {|x| x.uri.to_s == other.to_s }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
@ -146,7 +146,7 @@ class Gem::SourceList
|
|||
if source.kind_of? Gem::Source
|
||||
@sources.delete source
|
||||
else
|
||||
@sources.delete_if { |x| x.uri.to_s == source.to_s }
|
||||
@sources.delete_if {|x| x.uri.to_s == source.to_s }
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue