diff options
author | Hiroshi SHIBATA <[email protected]> | 2023-03-16 13:28:31 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-17 18:50:55 +0900 |
commit | 03b82d1865db32da8d69e91881675d9d6153872f (patch) | |
tree | ee0831a7e200d4949d0ec4581881e005fd998635 /lib | |
parent | d2cebb4e31b95b2bd02e5dec1c990c28f0f83bf4 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/SingleLineMethods
https://github.com/rubygems/rubygems/commit/fa2e835ed2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rubygems/basic_specification.rb | 8 | ||||
-rw-r--r-- | lib/rubygems/request.rb | 9 |
2 files changed, 13 insertions, 4 deletions
diff --git a/lib/rubygems/basic_specification.rb b/lib/rubygems/basic_specification.rb index 4dba9a4e45..e33c2bc915 100644 --- a/lib/rubygems/basic_specification.rb +++ b/lib/rubygems/basic_specification.rb @@ -323,11 +323,15 @@ class Gem::BasicSpecification raise NotImplementedError end - def this; self; end + def this + self + end private - def have_extensions?; !extensions.empty?; end + def have_extensions? + !extensions.empty? + end def have_file?(file, suffixes) return true if raw_require_paths.any? do |path| diff --git a/lib/rubygems/request.rb b/lib/rubygems/request.rb index d900d52452..1eeaa416fc 100644 --- a/lib/rubygems/request.rb +++ b/lib/rubygems/request.rb @@ -35,8 +35,13 @@ class Gem::Request @connection_pool = pool end - def proxy_uri; @connection_pool.proxy_uri; end - def cert_files; @connection_pool.cert_files; end + def proxy_uri + @connection_pool.proxy_uri + end + + def cert_files + @connection_pool.cert_files + end def self.get_cert_files pattern = File.expand_path("./ssl_certs/*/*.pem", __dir__) |