Files
Joel Junström fa0c7f9635 [#46] Added cache busting mechanism
Appends the md5 digest value of files to their filenames.

This is currently only affecting stylesheets and background images
refered to in stylesheets.
2012-09-21 09:35:06 +02:00

23 lines
299 B
Ruby

module SimpleS3Deploy
module Asset
attr_accessor :path
def initialize(path)
@path = path
end
def filename
File.basename path
end
def extension
File.extname filename
end
def mime_type
MIME::Types.type_for(path)[0].to_s
end
end
end