Skip to content

Commit

Permalink
[rubygems/rubygems] Enable Layout/EmptyLinesAroundAccessModifier
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and hsbt committed Jul 30, 2019
1 parent 3cc814b commit 0817d95
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/rubygems/ext/ext_conf_builder.rb
Expand Up @@ -88,6 +88,7 @@ def self.build(extension, dest_path, results, args=[], lib_dir=nil)
end

private

def self.get_relative_path(path)
path[0..Dir.pwd.length - 1] = '.' if path.start_with?(Dir.pwd)
path
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/test_case.rb
Expand Up @@ -1209,6 +1209,7 @@ class << self
# 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
Expand Down
1 change: 1 addition & 0 deletions lib/rubygems/user_interaction.rb
Expand Up @@ -604,6 +604,7 @@ def done
end

private

def locked_puts(message)
MUTEX.synchronize do
@out.puts message
Expand Down

0 comments on commit 0817d95

Please sign in to comment.