End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Specification#normalize
normalize
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/specification.rb, line 2185
def normalize
if defined?(@extra_rdoc_files) && @extra_rdoc_files
@extra_rdoc_files.uniq!
@files ||= []
@files.concat(@extra_rdoc_files)
end
@files = @files.uniq if @files
@extensions = @extensions.uniq if @extensions
@test_files = @test_files.uniq if @test_files
@executables = @executables.uniq if @executables
@extra_rdoc_files = @extra_rdoc_files.uniq if @extra_rdoc_files
end
Normalize the list of files so that:
-
All file lists have redundancies removed.
-
Files referenced in the
extra_rdoc_filesare included in the package file list.
See also
#name_tuple
#platform
#missing_extensions?
#platform=
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0