Skip to content

Commit

Permalink
Rename lib/mini_profiler/profiler.rb to lib/mini_profiler.rb
Browse files Browse the repository at this point in the history
This file contains Rack::MiniProfiler, not Rack::MiniProfiler::Profiler.
  • Loading branch information
gmcgibbon authored and nateberkopec committed Apr 5, 2023
1 parent 420bc92 commit 7a26aae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/mini_profiler/profiler.rb → lib/mini_profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}\\}")
Expand Down
2 changes: 1 addition & 1 deletion lib/rack-mini-profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand Down

0 comments on commit 7a26aae

Please sign in to comment.