summaryrefslogtreecommitdiff
path: root/support/apache_mime_types.rb
diff options
context:
space:
mode:
Diffstat (limited to 'support/apache_mime_types.rb')
-rw-r--r--support/apache_mime_types.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/support/apache_mime_types.rb b/support/apache_mime_types.rb
index 1786fa4..3a3a11b 100644
--- a/support/apache_mime_types.rb
+++ b/support/apache_mime_types.rb
@@ -25,7 +25,7 @@ class ApacheMIMETypes
dest = Pathname(options[:to] || DEFAULTS[:to]).expand_path
url = options.fetch(:url, DEFAULTS[:url])
- puts "Downloading Apache MIME type list."
+ puts 'Downloading Apache MIME type list.'
puts "\t#{url}"
data = open(url) { |f| f.read }.split($/)
data.delete_if { |line| line =~ /\A#/ }
@@ -91,6 +91,7 @@ class ApacheMIMETypes
end
private
+
def mime_types_for(file)
if file.exist?
MIME::Types::Loader.load_from_yaml(file)