lib/sinatra/assetpack.rb in sinatra-assetpack-0.3.1 vs lib/sinatra/assetpack.rb in sinatra-assetpack-0.3.2

- old
+ new

@@ -7,11 +7,11 @@ end # Returns a list of formats that can be served. # Anything not in this list will be rejected. def self.supported_formats - @supported_formats ||= %w(css js png jpg gif svg otf eot ttf woff htc) + @supported_formats ||= %w(css js png jpg gif svg otf eot ttf woff htc ico) end # Returns a map of what MIME format each Tilt type returns. def self.tilt_formats @formats ||= begin @@ -35,10 +35,10 @@ re = Hash.new { |h, k| h[k] = Array.new } formats.each { |tilt, out| re[out] << tilt } out end - # Clear Tilt::Cache (used for primarily for tests) + # Clear Tilt::Cache (used primarily for tests) def self.clear_tilt_cache!(cache, app) cache.clear #app.clear_tilt_cache = false # Maybe it can be an option on app we can enable/disable? end