mirror of
https://github.com/wahyd4/emoji-cheat-sheet.com.git
synced 2026-08-13 15:16:03 +10:00
Appends the md5 digest value of files to their filenames. This is currently only affecting stylesheets and background images refered to in stylesheets.
23 lines
299 B
Ruby
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
|