зеркало из https://github.com/github/ruby.git
[rubygems/rubygems] Enable `Layout/EmptyLinesAroundAccessModifier`
https://github.com/rubygems/rubygems/commit/41b1cebc33
This commit is contained in:
Родитель
3cc814bdf6
Коммит
0817d95714
|
@ -88,6 +88,7 @@ class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def self.get_relative_path(path)
|
||||
path[0..Dir.pwd.length - 1] = '.' if path.start_with?(Dir.pwd)
|
||||
path
|
||||
|
|
|
@ -1209,6 +1209,7 @@ Also, a list:
|
|||
# Return the join path, with escaping backticks, dollars, and
|
||||
# double-quotes. Unlike `shellescape`, equal-sign is not escaped.
|
||||
private
|
||||
|
||||
def escape_path(*path)
|
||||
path = File.join(*path)
|
||||
if %r'\A[-+:/=@,.\w]+\z' =~ path
|
||||
|
|
|
@ -604,6 +604,7 @@ class Gem::StreamUI
|
|||
end
|
||||
|
||||
private
|
||||
|
||||
def locked_puts(message)
|
||||
MUTEX.synchronize do
|
||||
@out.puts message
|
||||
|
|
Загрузка…
Ссылка в новой задаче