diff options
author | David RodrÃguez <[email protected]> | 2019-06-04 10:21:14 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2019-07-31 07:47:02 +0800 |
commit | 0817d95714bc73cef7a4eb6cdfc50a1c5ea4a6c1 (patch) | |
tree | acecf94c5190048e2ac943a2b6241574f15d5431 /lib | |
parent | 3cc814bdf629c457cc3899675c4cb1418594d47e (diff) |
[rubygems/rubygems] Enable `Layout/EmptyLinesAroundAccessModifier`
https://github.com/rubygems/rubygems/commit/41b1cebc33
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/ext/ext_conf_builder.rb | 1 | ||||
-rw-r--r-- | lib/rubygems/test_case.rb | 1 | ||||
-rw-r--r-- | lib/rubygems/user_interaction.rb | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb index 9068f9a5df..97681fa1ac 100644 --- a/lib/rubygems/ext/ext_conf_builder.rb +++ b/lib/rubygems/ext/ext_conf_builder.rb @@ -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 diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb index 708d1d4606..b6bb7ca93e 100644 --- a/lib/rubygems/test_case.rb +++ b/lib/rubygems/test_case.rb @@ -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 diff --git a/lib/rubygems/user_interaction.rb b/lib/rubygems/user_interaction.rb index a0f74f1079..93f528a763 100644 --- a/lib/rubygems/user_interaction.rb +++ b/lib/rubygems/user_interaction.rb @@ -604,6 +604,7 @@ class Gem::StreamUI end private + def locked_puts(message) MUTEX.synchronize do @out.puts message |