yard (0.8.2.1-2) set-templates-path.patch

Summary

 lib/yard/templates/engine.rb |    2 ++
 1 file changed, 2 insertions(+)

    
download this patch

Patch contents

Description: set templates path to /usr/share/yard/templates
 Put a relative path instead of an absolute one makes also the tests happy
Author: Lucas Nussbaum <lucas@debian.org>
Last-Update: 2012-05-03

--- a/lib/yard/templates/engine.rb
+++ b/lib/yard/templates/engine.rb
@@ -181,5 +181,7 @@
     end
 
     Engine.register_template_path(File.join(YARD::ROOT, '..', 'templates'))
+    # add /usr/share/yard/templates
+    Engine.register_template_path(File.join(YARD::ROOT, '../../../', 'share/yard/templates'))
   end
 end