Sha256: 6d3dee7d13af78440feefcab85e232e88102a6b07055ac37547e038b656bef4f

Contents?: true

Size: 843 Bytes

Versions: 5

Compression:

Stored size: 843 Bytes

Contents

module Spire
  class Mime
    def self.return_mimes
       return {
          ".html" => "text/html",
          ".text" => "text/plain",
          ".js" => "text/javascript",
          ".css" => "text/css",
          ".ics" => "text/calendar",
          ".csv" => "text/csv",
          
          ".png" => "image/png",
          ".jpeg" => "image/jpeg",
          ".gif" => "image/gif",
          ".bmp" => "image/bmp",
          ".tiff" => "image/tiff",
          ".ico" => "image/x-icon",

          ".mpeg" => "video/mpeg",

          ".xml" => "application/xml",
          ".rss" => "application/rss+xml",
          ".atom" => "application/atom+xml",
          ".yaml" => "application/x-yaml",

          ".json" => "application/json",
          ".pdf" => "application/pdf",
          ".zip" => "application/zip"
      }
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spire-0.4.11 lib/spire/resource/mime.rb
spire-0.4.10 lib/spire/resource/mime.rb
spire-0.4.9 lib/spire/resource/mime.rb
spire-0.4.8 lib/spire/resource/mime.rb
spire-0.4.7 lib/spire/resource/mime.rb