Skip to content

Commit

Permalink
Link github project on ?pp=help menu
Browse files Browse the repository at this point in the history
Closes #503
  • Loading branch information
ceritium committed Aug 27, 2021
1 parent 5f29900 commit a6efe5e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/mini_profiler/profiler.rb
Expand Up @@ -643,7 +643,7 @@ def help(client_settings, env)
headers = { 'Content-Type' => 'text/html' }
body = "<html><body>
<pre style='line-height: 30px; font-size: 16px;'>
Append the following to your query string:
This is the help menu of <a href='#{Rack::MiniProfiler::SOURCE_CODE_URI}'>rack-mini-profiler</a> gem, append the following to your query string for more options:
#{make_link "help", env} : display this screen
#{make_link "env", env} : display the rack environment
Expand Down
1 change: 1 addition & 0 deletions lib/mini_profiler/version.rb
Expand Up @@ -3,5 +3,6 @@
module Rack
class MiniProfiler
VERSION = '2.3.2'
SOURCE_CODE_URI = 'https://github.com/MiniProfiler/rack-mini-profiler'
end
end
2 changes: 1 addition & 1 deletion rack-mini-profiler.gemspec
Expand Up @@ -24,7 +24,7 @@ Gem::Specification.new do |s|
s.required_ruby_version = '>= 2.4.0'

s.metadata = {
'source_code_uri' => 'https://github.com/MiniProfiler/rack-mini-profiler',
'source_code_uri' => Rack::MiniProfiler::SOURCE_CODE_URI,
'changelog_uri' => 'https://github.com/MiniProfiler/rack-mini-profiler/blob/master/CHANGELOG.md'
}

Expand Down

0 comments on commit a6efe5e

Please sign in to comment.