Created
May 7, 2012 13:56
-
-
Save voxik/2627919 to your computer and use it in GitHub Desktop.
Debug.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/yard/server/adapter.rb b/lib/yard/server/adapter.rb | |
index d2296f9..b592055 100644 | |
--- a/lib/yard/server/adapter.rb | |
+++ b/lib/yard/server/adapter.rb | |
@@ -46,16 +46,26 @@ module YARD | |
# @note If you subclass this method, make sure to call +super+. | |
# @return [void] | |
def self.setup | |
+puts "*** YARD::Server::Adapter.setup" | |
+puts "1. #{Templates::Template.extra_includes}" | |
+puts "2. #{Templates::Engine.template_paths}" | |
Templates::Template.extra_includes |= [YARD::Server::DocServerHelper] | |
Templates::Engine.template_paths |= [File.dirname(__FILE__) + '/templates'] | |
+puts "3. #{Templates::Template.extra_includes}" | |
+puts "4. #{Templates::Engine.template_paths}" | |
end | |
# Performs any global shutdown procedures for the adapter. | |
# @note If you subclass this method, make sure to call +super+. | |
# @return [void] | |
def self.shutdown | |
+puts "*** YARD::Server::Adapter.shutdown" | |
+puts "1. #{Templates::Template.extra_includes}" | |
+puts "2. #{Templates::Engine.template_paths}" | |
Templates::Template.extra_includes -= [YARD::Server::DocServerHelper] | |
Templates::Engine.template_paths -= [File.dirname(__FILE__) + '/templates'] | |
+puts "3. #{Templates::Template.extra_includes}" | |
+puts "4. #{Templates::Engine.template_paths}" | |
end | |
# Creates a new adapter object | |
diff --git a/lib/yard/templates/helpers/html_helper.rb b/lib/yard/templates/helpers/html_helper.rb | |
index ba660fe..29b36f1 100644 | |
--- a/lib/yard/templates/helpers/html_helper.rb | |
+++ b/lib/yard/templates/helpers/html_helper.rb | |
@@ -491,6 +491,7 @@ module YARD | |
link_title = "#{h name} (#{meth.type})" | |
end | |
obj = meth.respond_to?(:object) ? meth.object : meth | |
+puts "*** signature" | |
url = url_for(object, obj) | |
link_url(url, title, :title => link_title) + extras_text | |
else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment