diff --git a/lib/mini_profiler/profiler.rb b/lib/mini_profiler.rb similarity index 99% rename from lib/mini_profiler/profiler.rb rename to lib/mini_profiler.rb index 9b762122..f7f73211 100644 --- a/lib/mini_profiler/profiler.rb +++ b/lib/mini_profiler.rb @@ -27,11 +27,11 @@ def config end def resources_root - @resources_root ||= ::File.expand_path("../../html", __FILE__) + @resources_root ||= ::File.expand_path("../html", __FILE__) end def share_template - @share_template ||= ERB.new(::File.read(::File.expand_path("../html/share.html", ::File.dirname(__FILE__)))) + @share_template ||= ERB.new(::File.read(::File.expand_path("html/share.html", ::File.dirname(__FILE__)))) end def current @@ -789,7 +789,7 @@ def get_profile_script(env) end # TODO : cache this snippet - script = ::File.read(::File.expand_path('../html/profile_handler.js', ::File.dirname(__FILE__))) + script = ::File.read(::File.expand_path('html/profile_handler.js', ::File.dirname(__FILE__))) # replace the variables settings.each do |k, v| regex = Regexp.new("\\{#{k.to_s}\\}") diff --git a/lib/rack-mini-profiler.rb b/lib/rack-mini-profiler.rb index da864e5b..ad023f3f 100644 --- a/lib/rack-mini-profiler.rb +++ b/lib/rack-mini-profiler.rb @@ -28,7 +28,7 @@ require 'mini_profiler/client_settings' require 'mini_profiler/gc_profiler' require 'mini_profiler/snapshots_transporter' -require 'mini_profiler/profiler' +require 'mini_profiler' require 'patches/sql_patches' require 'patches/net_patches'