Sha256: 3051b92d1dee0ffae5432983c09fc98c70eea1e14aa778c1f94a22deeb0e49ad
Contents?: true
Size: 1.21 KB
Versions: 3
Compression:
Stored size: 1.21 KB
Contents
# Copyright 2013 Google Inc. All Rights Reserved. # Licensed under the Apache License, Version 2.0, found in the LICENSE file. class Rack::AllocationStats::Formatters::HTML < Rack::AllocationStats::Formatters::Base def format interactive_dir = File.join(__dir__, "..", "interactive") index_html_erb = ERB.new(File.read(File.join(interactive_dir, "index.html.erb"))) jquery_min_js = File.read(File.join(interactive_dir, "jquery-2.0.3.min.js")) jquery_ui_min_js = File.read(File.join(interactive_dir, "jquery-ui-1.10.3.custom.min.js")) underscore_min_js = File.read(File.join(interactive_dir, "underscore-min.js")) allocations_js_erb = ERB.new(File.read(File.join(interactive_dir, "allocations.js.erb"))) allocations_js = allocations_js_erb.result(binding) interactive_js = File.read(File.join(interactive_dir, "interactive.js")) jquery_ui_min_css = File.read(File.join(interactive_dir, "jquery-ui-1.10.3.custom.min.css")) style_css = File.read(File.join(interactive_dir, "style.css")) allocating_gems = ["no gems allocated any objects"] html_body = index_html_erb.result(binding) return [html_body] end end
Version data entries
3 entries across 3 versions & 1 rubygems