History

Formatting

Jasper van Merle committed 7 years ago

Commit 52e982b1 parent 5dc14371 file · +8 −8Browse files

Unified · Split

lib/app.rb+8−8
@@ -215,18 +215,18 @@ class App < Sinatra::Application · 214 unmodified lines
215 end215 end
216 216
217 digest = Sprockets::Manifest217 digest = Sprockets::Manifest
218 .new(nil, App.assets_manifest_path)218 .new(nil, App.assets_manifest_path)
219 .files219 .files
220 .values220 .values
221 .map {|file| file["digest"]}221 .map {|file| file["digest"]}
222 .join222 .join
223 223
224 return @@service_worker_cache_name ||= Digest::MD5.hexdigest(digest)224 return @@service_worker_cache_name ||= Digest::MD5.hexdigest(digest)
225 else225 else
226 paths = App.sprockets226 paths = App.sprockets
227 .each_file227 .each_file
228 .to_a228 .to_a
229 .reject {|file| file.start_with?(App.docs_path)}229 .reject {|file| file.start_with?(App.docs_path)}
230 230
231 return App.sprockets.pack_hexdigest(App.sprockets.files_digest(paths))231 return App.sprockets.pack_hexdigest(App.sprockets.files_digest(paths))
232 end232 end