Sha256: 3c17ddeaaea5410823288381b348e4596fd9494f779cc5269ab465ae26ce952e

Contents?: true

Size: 852 Bytes

Versions: 4

Compression:

Stored size: 852 Bytes

Contents

module Spire
  class Mime
    def return_mimes
       return @mime_types = {
          ".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

4 entries across 4 versions & 1 rubygems

Version Path
spire-0.4.6 lib/spire/resource/mime.rb
spire-0.4.5 lib/spire/resource/mime.rb
spire-0.4.4 lib/spire/resource/mime.rb
spire-0.4.3 lib/spire/resource/mime.rb