Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link github project on ?pp=help menu #510

Merged
merged 2 commits into from Aug 30, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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 the <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