method

files_in_default_gem

ruby latest stable - Class: Gem::Commands::ContentsCommand
files_in_default_gem(spec)
public

No documentation available.

# File lib/rubygems/commands/contents_command.rb, line 105
  def files_in_default_gem spec
    spec.files.map do |file|
      case file
      when /\A#{spec.bindir}\//
        [RbConfig::CONFIG['bindir'], $POSTMATCH]
      when /\.so\z/
        [RbConfig::CONFIG['archdir'], file]
      else
        [RbConfig::CONFIG['rubylibdir'], file]
      end
    end
  end