Method: LibGems::Specification#normalize

Defined in:
lib/libgems/specification.rb

#normalizeObject

Normalize the list of files so that:

  • All file lists have redundancies removed.

  • Files referenced in the extra_rdoc_files are included in the package file list.



946
947
948
949
950
951
952
953
# File 'lib/libgems/specification.rb', line 946

def normalize
  if defined?(@extra_rdoc_files) and @extra_rdoc_files then
    @extra_rdoc_files.uniq!
    @files ||= []
    @files.concat(@extra_rdoc_files)
  end
  @files.uniq! if @files
end