From a6efe5ebc466ef4410d42b616a44a4e9b8535e97 Mon Sep 17 00:00:00 2001 From: Jose Galisteo Date: Fri, 27 Aug 2021 15:47:02 +0200 Subject: [PATCH] Link github project on ?pp=help menu Closes https://github.com/MiniProfiler/rack-mini-profiler/issues/503 --- lib/mini_profiler/profiler.rb | 2 +- lib/mini_profiler/version.rb | 1 + rack-mini-profiler.gemspec | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/mini_profiler/profiler.rb b/lib/mini_profiler/profiler.rb index 3485981d..226c2a53 100644 --- a/lib/mini_profiler/profiler.rb +++ b/lib/mini_profiler/profiler.rb @@ -643,7 +643,7 @@ def help(client_settings, env) headers = { 'Content-Type' => 'text/html' } body = "
-Append the following to your query string:
+This is the help menu of rack-mini-profiler 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
diff --git a/lib/mini_profiler/version.rb b/lib/mini_profiler/version.rb
index 9b6b72c8..f70c3585 100644
--- a/lib/mini_profiler/version.rb
+++ b/lib/mini_profiler/version.rb
@@ -3,5 +3,6 @@
 module Rack
   class MiniProfiler
     VERSION = '2.3.2'
+    SOURCE_CODE_URI = 'https://github.com/MiniProfiler/rack-mini-profiler'
   end
 end
diff --git a/rack-mini-profiler.gemspec b/rack-mini-profiler.gemspec
index 79278b80..4354552a 100644
--- a/rack-mini-profiler.gemspec
+++ b/rack-mini-profiler.gemspec
@@ -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'
   }