mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
[rubygems/rubygems] util/rubocop -A --only Layout/AssignmentIndentation
8e64298989
This commit is contained in:
parent
9ffd73523d
commit
4b285e5c6f
3 changed files with 22 additions and 22 deletions
|
@ -144,15 +144,15 @@ class Gem::BasicSpecification
|
|||
|
||||
def full_require_paths
|
||||
@full_require_paths ||=
|
||||
begin
|
||||
full_paths = raw_require_paths.map do |path|
|
||||
File.join full_gem_path, path.tap(&Gem::UNTAINT)
|
||||
begin
|
||||
full_paths = raw_require_paths.map do |path|
|
||||
File.join full_gem_path, path.tap(&Gem::UNTAINT)
|
||||
end
|
||||
|
||||
full_paths << extension_dir if have_extensions?
|
||||
|
||||
full_paths
|
||||
end
|
||||
|
||||
full_paths << extension_dir if have_extensions?
|
||||
|
||||
full_paths
|
||||
end
|
||||
end
|
||||
|
||||
##
|
||||
|
@ -171,15 +171,15 @@ class Gem::BasicSpecification
|
|||
if activated?
|
||||
@paths_map ||= {}
|
||||
@paths_map[path] ||=
|
||||
begin
|
||||
fullpath = nil
|
||||
suffixes = Gem.suffixes
|
||||
suffixes.find do |suf|
|
||||
full_require_paths.find do |dir|
|
||||
File.file?(fullpath = "#{dir}/#{path}#{suf}")
|
||||
end
|
||||
end ? fullpath : nil
|
||||
end
|
||||
begin
|
||||
fullpath = nil
|
||||
suffixes = Gem.suffixes
|
||||
suffixes.find do |suf|
|
||||
full_require_paths.find do |dir|
|
||||
File.file?(fullpath = "#{dir}/#{path}#{suf}")
|
||||
end
|
||||
end ? fullpath : nil
|
||||
end
|
||||
else
|
||||
nil
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue