yard-gherkin-turnip 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +6 -0
  3. data/.rspec +3 -0
  4. data/.ruby-gemset +1 -0
  5. data/.ruby-version +1 -0
  6. data/.yardopts +1 -0
  7. data/Gemfile +6 -0
  8. data/Gemfile.lock +48 -0
  9. data/History.txt +293 -0
  10. data/LICENSE.txt +22 -0
  11. data/README.md +182 -0
  12. data/Rakefile +24 -0
  13. data/example/README.md +8 -0
  14. data/example/child_feature/README.md +21 -0
  15. data/example/child_feature/child.feature +11 -0
  16. data/example/child_feature/grandchild_feature/grandchild.feature +12 -0
  17. data/example/empty.feature +2 -0
  18. data/example/placeholder.feature +34 -0
  19. data/example/scenario.feature +63 -0
  20. data/example/scenario_outline.feature +100 -0
  21. data/example/scenario_outline_multi.feature +15 -0
  22. data/example/step_definitions/customer.step.rb +16 -0
  23. data/example/step_definitions/duck.step.rb +6 -0
  24. data/example/step_definitions/placeholder.step.rb +70 -0
  25. data/example/step_definitions/text.step.rb +11 -0
  26. data/example/tags.feature +18 -0
  27. data/lib/cucumber/city_builder.rb +412 -0
  28. data/lib/docserver/default/fulldoc/html/js/cucumber.js +88 -0
  29. data/lib/docserver/default/layout/html/headers.erb +13 -0
  30. data/lib/docserver/doc_server/full_list/html/full_list.erb +39 -0
  31. data/lib/docserver/doc_server/full_list/html/setup.rb +18 -0
  32. data/lib/templates/default/feature/html/feature.erb +39 -0
  33. data/lib/templates/default/feature/html/no_steps_defined.erb +1 -0
  34. data/lib/templates/default/feature/html/outline.erb +59 -0
  35. data/lib/templates/default/feature/html/pystring.erb +3 -0
  36. data/lib/templates/default/feature/html/scenario.erb +55 -0
  37. data/lib/templates/default/feature/html/setup.rb +54 -0
  38. data/lib/templates/default/feature/html/steps.erb +39 -0
  39. data/lib/templates/default/feature/html/table.erb +20 -0
  40. data/lib/templates/default/featuredirectory/html/alpha_table.erb +30 -0
  41. data/lib/templates/default/featuredirectory/html/directory.erb +32 -0
  42. data/lib/templates/default/featuredirectory/html/setup.rb +41 -0
  43. data/lib/templates/default/featuretags/html/namespace.erb +159 -0
  44. data/lib/templates/default/featuretags/html/setup.rb +34 -0
  45. data/lib/templates/default/fulldoc/html/css/cucumber.css +226 -0
  46. data/lib/templates/default/fulldoc/html/directories.erb +27 -0
  47. data/lib/templates/default/fulldoc/html/full_list_featuredirectories.erb +11 -0
  48. data/lib/templates/default/fulldoc/html/full_list_features.erb +37 -0
  49. data/lib/templates/default/fulldoc/html/full_list_stepdefinitions.erb +20 -0
  50. data/lib/templates/default/fulldoc/html/full_list_steps.erb +20 -0
  51. data/lib/templates/default/fulldoc/html/full_list_tags.erb +16 -0
  52. data/lib/templates/default/fulldoc/html/js/cucumber.js +331 -0
  53. data/lib/templates/default/fulldoc/html/setup.rb +208 -0
  54. data/lib/templates/default/layout/html/setup.rb +131 -0
  55. data/lib/templates/default/requirements/html/alpha_table.erb +26 -0
  56. data/lib/templates/default/requirements/html/requirements.erb +50 -0
  57. data/lib/templates/default/requirements/html/setup.rb +51 -0
  58. data/lib/templates/default/steptransformers/html/header.erb +12 -0
  59. data/lib/templates/default/steptransformers/html/index.erb +10 -0
  60. data/lib/templates/default/steptransformers/html/placeholders.erb +79 -0
  61. data/lib/templates/default/steptransformers/html/setup.rb +107 -0
  62. data/lib/templates/default/steptransformers/html/step_definitions.erb +79 -0
  63. data/lib/templates/default/steptransformers/html/undefined_steps.erb +26 -0
  64. data/lib/templates/default/tag/html/alpha_table.erb +33 -0
  65. data/lib/templates/default/tag/html/setup.rb +27 -0
  66. data/lib/templates/default/tag/html/tag.erb +35 -0
  67. data/lib/yard-gherkin-turnip.rb +42 -0
  68. data/lib/yard-gherkin-turnip/version.rb +3 -0
  69. data/lib/yard/code_objects/cucumber/base.rb +24 -0
  70. data/lib/yard/code_objects/cucumber/feature.rb +16 -0
  71. data/lib/yard/code_objects/cucumber/namespace_object.rb +55 -0
  72. data/lib/yard/code_objects/cucumber/scenario.rb +22 -0
  73. data/lib/yard/code_objects/cucumber/scenario_outline.rb +68 -0
  74. data/lib/yard/code_objects/cucumber/step.rb +46 -0
  75. data/lib/yard/code_objects/cucumber/tag.rb +31 -0
  76. data/lib/yard/code_objects/placeholder.rb +45 -0
  77. data/lib/yard/code_objects/step_definition.rb +46 -0
  78. data/lib/yard/code_objects/step_transformer.rb +32 -0
  79. data/lib/yard/handlers/cucumber/base.rb +21 -0
  80. data/lib/yard/handlers/cucumber/feature_handler.rb +96 -0
  81. data/lib/yard/handlers/placeholder_handler.rb +28 -0
  82. data/lib/yard/handlers/placeholder_match_handler.rb +17 -0
  83. data/lib/yard/handlers/step_definition_handler.rb +55 -0
  84. data/lib/yard/parser/cucumber/feature.rb +72 -0
  85. data/lib/yard/server/adapter.rb +43 -0
  86. data/lib/yard/server/commands/list_command.rb +31 -0
  87. data/lib/yard/server/router.rb +31 -0
  88. data/lib/yard/templates/helpers/base_helper.rb +26 -0
  89. data/yard-gherkin-turnip.gemspec +67 -0
  90. metadata +216 -0
@@ -0,0 +1,12 @@
1
+ <div class="title">
2
+ <% if @item_type %>
3
+ <a class="control" id="<%= @item_type.gsub(/\s/,'') %>">[Collapse All]</a>
4
+ <div style="clear: right;"></div>
5
+ <% end %>
6
+
7
+ <% if @item_anchor_name %>
8
+ <a name="<%= @item_anchor_name %>">
9
+ <% end %>
10
+ <div class="name"><%= @item_title %></div>
11
+ </div>
12
+
@@ -0,0 +1,10 @@
1
+ <div class="requirements">
2
+ <div class="title">Step Definitions &amp; Placeholders</div>
3
+
4
+ <div class="summary">
5
+ <div><%= step_definitions.length %><a href="#step_definitions">Step Definitions</a></div>
6
+ <div><%= placeholders.length %><a href="#placeholders">Placeholders</a></div>
7
+ <div><%= undefined_steps.length %><a href="#undefined_steps">Undefined Steps</a></div>
8
+ </div>
9
+
10
+ </div>
@@ -0,0 +1,79 @@
1
+ <% @items.each do |item| %>
2
+
3
+ <div class="transformer <%= @item_type.gsub(/\s/,'') %>
4
+ <%= "nodefinitions" if item.steps.nil? || item.steps.empty? %>
5
+ <%= "pending" if item.pending %>">
6
+ <a name="<%= anchor_for item %>"></a>
7
+ <div class="title">
8
+ <span class="pre"><%= h item.keyword %></span>
9
+ <span class="name"><%= h item.literal_value %></span>
10
+ <div style="float: right;">
11
+ <a href="http://rubular.com/?regex=<%= urlencode item.value %>" target="_blank">Rubular</a>
12
+ <%= "| PENDING" if item.pending %>
13
+ <%= "| UNUSED" if item.steps.nil? || item.steps.empty? %>
14
+ <a class="stepdef" href="#">[Collapse]</a>
15
+ </div>
16
+ <div style="clear: both;"></div>
17
+ </div>
18
+
19
+ <div class="details">
20
+
21
+ <div class="meta" style="clear: right;">
22
+ <div class="file"><%= h item.location %></div>
23
+ </div>
24
+
25
+ <!-- Comments -->
26
+ <div>
27
+ <%= display_comments_for item %>
28
+ </div>
29
+
30
+ <!-- Source Code -->
31
+ <div class="method_details_list">
32
+ <table class="source_code">
33
+ <tr>
34
+ <td>
35
+ <pre class="lines"><%= "" %><%= h format_lines(item) %></pre>
36
+ </td>
37
+ <td>
38
+ <pre class="code"><%= "" %><%= html_syntax_highlight item.source %></pre>
39
+ </td>
40
+ </tr>
41
+ </table>
42
+ </div>
43
+
44
+ <!-- Matching Step Instances -->
45
+ <% if item.steps.length > 0 %>
46
+ <div class='showSteps'>
47
+ [<a href='#' class='toggleSteps' alt="<%= item.steps.length %> steps">View <%= item.steps.length %> steps</a>]
48
+ </div>
49
+ <% end %>
50
+ <div class="steps" style="display:none">
51
+ <% if item.steps && !item.steps.empty? %>
52
+ <% unique_steps(item.steps).each_with_index do |uniq_step,step_index| %>
53
+ <div class="step <%= (step_index + 1) % 2 == 0 ? 'even' : 'odd' %>">
54
+ <div>
55
+ <span class="predicate">
56
+ <%= h uniq_step.last.first.keyword %>
57
+ </span>
58
+ <span class="defined">
59
+ <%= highlight_transformed_step(uniq_step.last.first, item) %>
60
+ </span>
61
+ </div>
62
+ <% uniq_step.last.each do |step| %>
63
+ <a class="definition" style="clear: right;" href="<%= url_for step.scenario.feature %>"><%= h step.location %></a>
64
+ <% end %>
65
+ <div style="clear: both;"></div>
66
+ </div>
67
+ <% end %>
68
+ <% else %>
69
+ <div class="undefined">No steps were found to match this <%= @item_type %>.</div>
70
+ <% end%>
71
+ </div>
72
+
73
+ </div>
74
+
75
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
76
+
77
+ </div>
78
+
79
+ <% end %>
@@ -0,0 +1,107 @@
1
+ def init
2
+ super
3
+ sections.push :index, :step_definitions_section, :placeholders_section, :undefined_steps_section
4
+ end
5
+
6
+ def step_definitions
7
+ @step_definitions ||= begin
8
+ YARD::Registry.all(:stepdefinition).sort_by {|definition| definition.steps.length * -1 }
9
+ end
10
+ end
11
+
12
+ def placeholders
13
+ @placeholders ||= begin
14
+ YARD::Registry.all(:placeholder).sort_by {|definition| definition.steps.length * -1 }
15
+ end
16
+ end
17
+
18
+ def undefined_steps
19
+ @undefined_steps ||= begin
20
+ unique_steps(Registry.all(:step).reject {|s| s.definition || s.scenario.outline? }).sort_by{|steps| steps.last.length * -1 }
21
+ end
22
+ end
23
+
24
+ def step_definitions_section
25
+ @item_title = "Step Definitions"
26
+ @item_anchor_name = "step_definitions"
27
+ @item_type = "step definition"
28
+ @items = step_definitions
29
+ erb(:header) + erb(:step_definitions)
30
+ end
31
+
32
+ def placeholders_section
33
+ @item_title = "Placeholders"
34
+ @item_anchor_name = "placeholders"
35
+ @item_type = "placeholder"
36
+ @items = placeholders
37
+ erb(:header) + erb(:placeholders)
38
+ end
39
+
40
+ def undefined_steps_section
41
+ @item_title = "Undefined Steps"
42
+ @item_anchor_name = "undefined_steps"
43
+ @item_type = nil
44
+ @items = undefined_steps
45
+ erb(:header) + erb(:undefined_steps)
46
+ end
47
+
48
+
49
+ def unique_steps(steps)
50
+ uniq_steps = {}
51
+ steps.each {|s| (uniq_steps[s.value.to_s] ||= []) << s }
52
+ uniq_steps
53
+ end
54
+
55
+ def display_comments_for(item)
56
+ begin
57
+ T('docstring').run(options.dup.merge({:object => item}))
58
+ rescue
59
+ log.warn %{An error occurred while attempting to render the comments for: #{item.location} }
60
+ return ""
61
+ end
62
+
63
+ end
64
+
65
+ def link_step_definition_name(step_definition)
66
+ value = step_definition.literal_value.dup
67
+
68
+ if step_definition.placeholders
69
+ value.gsub!(/:[\w]+/) do |match|
70
+ placeholder = step_definition.placeholders.find {|placeholder| placeholder.literal_value == match }
71
+ placeholder ? "<a href='#{url_for(placeholder)}'>#{h(match)}</a>" : "<span class='match'>#{match}</span>"
72
+ end
73
+ end
74
+ value
75
+ end
76
+
77
+
78
+ def link_transformed_step(step)
79
+ value = step.value.dup
80
+
81
+ if step.definition
82
+ matches = step.definition.regex.match(step.value)
83
+
84
+ if matches
85
+ matches[1..-1].reverse.each_with_index do |match,index|
86
+ next if match == nil
87
+ placeholder = step.placeholders.find {|placeholder| placeholder.regex.match(match) }
88
+
89
+ value[matches.begin((matches.size - 1) - index)..(matches.end((matches.size - 1) - index) - 1)] = placeholder ? "<a href='#{url_for(placeholder)}'>#{h(match)}</a>" : "<span class='match'>#{h(match)}</span>"
90
+ end
91
+ end
92
+ end
93
+ value
94
+ end
95
+
96
+ def highlight_transformed_step(step, placeholder)
97
+ value = step.value.dup
98
+ if step.definition
99
+ matches = step.definition.regex.match(value)
100
+ matches[1..-1].reverse.each_with_index do |match,index|
101
+ next if match == nil
102
+ next unless placeholder.regex.match?(match)
103
+ value[matches.begin((matches.size - 1) - index)..(matches.end((matches.size - 1) - index) - 1)] = "<span class='match'>#{match}</span>"
104
+ end
105
+ end
106
+ value
107
+ end
@@ -0,0 +1,79 @@
1
+ <% @items.each do |item| %>
2
+
3
+ <div class="transformer <%= @item_type.gsub(/\s/,'') %>
4
+ <%= "nodefinitions" if item.steps.nil? || item.steps.empty? %>
5
+ <%= "pending" if item.pending %>">
6
+ <a name="<%= anchor_for item %>"></a>
7
+ <div class="title">
8
+ <span class="pre"><%= h item.keyword %></span>
9
+ <span class="name"><%= link_step_definition_name(item) %></span>
10
+ <div style="float: right;">
11
+ <a href="http://rubular.com/?regex=<%= urlencode item.value %>" target="_blank">Rubular</a>
12
+ <%= "| PENDING" if item.pending %>
13
+ <%= "| UNUSED" if item.steps.nil? || item.steps.empty? %>
14
+ <a class="stepdef" href="#">[Collapse]</a>
15
+ </div>
16
+ <div style="clear: both;"></div>
17
+ </div>
18
+
19
+ <div class="details">
20
+
21
+ <div class="meta" style="clear: right;">
22
+ <div class="file"><%= h item.location %></div>
23
+ </div>
24
+
25
+ <!-- Comments -->
26
+ <div>
27
+ <%= display_comments_for item %>
28
+ </div>
29
+
30
+ <!-- Source Code -->
31
+ <div class="method_details_list">
32
+ <table class="source_code">
33
+ <tr>
34
+ <td>
35
+ <pre class="lines"><%= "" %><%= h format_lines(item) %></pre>
36
+ </td>
37
+ <td>
38
+ <pre class="code"><%= "" %><%= html_syntax_highlight item.source %></pre>
39
+ </td>
40
+ </tr>
41
+ </table>
42
+ </div>
43
+
44
+ <!-- Matching Step Instances -->
45
+ <% if item.steps.length > 0 %>
46
+ <div class='showSteps'>
47
+ [<a href='#' class='toggleSteps' alt="<%= item.steps.length %> steps">View <%= item.steps.length %> steps</a>]
48
+ </div>
49
+ <% end %>
50
+ <div class="steps" style="display:none">
51
+ <% if item.steps && !item.steps.empty? %>
52
+ <% unique_steps(item.steps).each_with_index do |uniq_step,step_index| %>
53
+ <div class="step <%= (step_index + 1) % 2 == 0 ? 'even' : 'odd' %>">
54
+ <div>
55
+ <span class="predicate">
56
+ <%= h uniq_step.last.first.keyword %>
57
+ </span>
58
+ <span class="defined">
59
+ <%= link_transformed_step(uniq_step.last.first) %>
60
+ </span>
61
+ </div>
62
+ <% uniq_step.last.each do |step| %>
63
+ <a class="definition" style="clear: right;" href="<%= url_for step.scenario.feature %>"><%= h step.location %></a>
64
+ <% end %>
65
+ <div style="clear: both;"></div>
66
+ </div>
67
+ <% end %>
68
+ <% else %>
69
+ <div class="undefined">No steps were found to match this <%= @item_type %>.</div>
70
+ <% end%>
71
+ </div>
72
+
73
+ </div>
74
+
75
+ <div style="margin: 30px 20px; border-top: 1px dotted #AAA;"></div>
76
+
77
+ </div>
78
+
79
+ <% end %>
@@ -0,0 +1,26 @@
1
+ <div class="transformer">
2
+ <div class="steps">
3
+ <% if @undefined_steps && !@undefined_steps.empty? %>
4
+ <% @undefined_steps.each_with_index do |uniq_step,step_index| %>
5
+ <div class="step <%= (step_index + 1) % 2 == 0 ? 'even' : 'odd' %>">
6
+ <div>
7
+ <span class="predicate"><%= uniq_step.last.first.keyword %></span>
8
+ <span class="undefined">
9
+ <%= h uniq_step.last.first.value %>
10
+ </span>
11
+ </div>
12
+ <% uniq_step.last.each do |step| %>
13
+ <a class="definition" style="clear: right;" href="<%= url_for step.scenario.feature %>">
14
+ <%= h step.location %>
15
+ </a>
16
+ <% end%>
17
+ <div style="clear: both;"></div>
18
+ </div>
19
+ <% end %>
20
+ <% else %>
21
+ <div class="steps">
22
+ <div class="undefined">No undefined steps</div>
23
+ </div>
24
+ <% end%>
25
+ </div>
26
+ </div>
@@ -0,0 +1,33 @@
1
+ <% if @elements && !@elements.empty? %>
2
+ <% i = (@elements.length % 2 == 0 ? 1 : 0) %>
3
+ <table style="margin-left: 10px; width: 100%;">
4
+ <tr>
5
+ <td valign='top' width="50%">
6
+ <% @elements.each do |letter, objects| %>
7
+ <% if (i += 1) > (@elements.length / 2 + 1) %>
8
+ </td><td valign='top' width="50%">
9
+ <% i = 0 %>
10
+ <% end %>
11
+ <ul id="alpha_<%= letter %>" class="alpha">
12
+ <li class="letter"><%= letter %></li>
13
+ <ul>
14
+ <% objects.each do |obj| %>
15
+ <li>
16
+ <% if obj.is_a?(YARD::CodeObjects::Cucumber::Scenario) || obj.is_a?(YARD::CodeObjects::Cucumber::ScenarioOutline) %>
17
+ <% index = obj.path[(/.+_(\d+)$/),1].to_i - 1 %>
18
+ <a href="<%= url_for(obj.feature,"scenario_#{index}") %>">
19
+ <%= h obj.value %>
20
+ </a>
21
+ <% else %>
22
+ <%= linkify obj, obj.value %>
23
+ <% end %>
24
+ <small>(<%= obj.file %>)</small>
25
+ </li>
26
+ <% end %>
27
+ </ul>
28
+ </ul>
29
+ <% end %>
30
+ </td>
31
+ </tr>
32
+ </table>
33
+ <% end %>
@@ -0,0 +1,27 @@
1
+ def init
2
+ super
3
+ @tag = object
4
+
5
+ sections.push :tag
6
+ end
7
+
8
+ def features
9
+ @tag.features
10
+ end
11
+
12
+ def scenarios
13
+ @tag.scenarios
14
+ end
15
+
16
+
17
+ def alpha_table(objects)
18
+ @elements = Hash.new
19
+
20
+ objects = run_verifier(objects)
21
+ objects.each {|o| (@elements[o.value.to_s[0,1].upcase] ||= []) << o }
22
+ @elements.values.each {|v| v.sort! {|a,b| b.value.to_s <=> a.value.to_s } }
23
+ @elements = @elements.sort_by {|l,o| l.to_s }
24
+
25
+ @elements.each {|letter,objects| objects.sort! {|a,b| b.value.to_s <=> a.value.to_s }}
26
+ erb(:alpha_table)
27
+ end
@@ -0,0 +1,35 @@
1
+ <div class="tag">
2
+ <div class="title">
3
+ <span class="pre">Tag:</span>
4
+ <span class="name"><%= @tag.value %></span>
5
+
6
+ </div>
7
+
8
+ <div class="meta">
9
+ <div class="file">
10
+ <%= @tag.features.size > 0 ? "#{@tag.features.size} feature#{@tag.features.size > 1 ? 's' : ''} (with #{@tag.indirect_scenarios.size} scenario#{@tag.indirect_scenarios.size > 1 ? 's' : ''})" : "" %>
11
+ <%= " and " if @tag.features.size > 0 && @tag.scenarios.size > 0 %>
12
+ <%= @tag.scenarios.size > 0 ? "#{@tag.scenarios.size} scenario#{@tag.scenarios.size > 1 ? 's' : ''}" : "" %>
13
+ </div>
14
+ </div>
15
+
16
+ <div style="margin-top: 20px;">&nbsp;</div>
17
+
18
+ <% if features && !features.empty? %>
19
+ <div id="features" style="margin-left: 40px;">
20
+ <div class="title"><span class="name">Features</span></div>
21
+ </div>
22
+ <%= alpha_table(features) %>
23
+
24
+ <% end %>
25
+
26
+ <% if scenarios && !scenarios.empty? %>
27
+ <div id="features" style="margin-left: 40px;">
28
+ <div class="title"><span class="name">Scenarios</span></div>
29
+ </div>
30
+ <%= alpha_table(scenarios) %>
31
+
32
+ <% end %>
33
+
34
+
35
+ </div>
@@ -0,0 +1,42 @@
1
+ require 'yard'
2
+ require 'cucumber/platform'
3
+ require 'gherkin/parser'
4
+
5
+ require File.dirname(__FILE__) + "/yard-gherkin-turnip/version.rb"
6
+
7
+ require File.dirname(__FILE__) + "/yard/code_objects/cucumber/base.rb"
8
+ require File.dirname(__FILE__) + "/yard/code_objects/cucumber/namespace_object.rb"
9
+ require File.dirname(__FILE__) + "/yard/code_objects/cucumber/feature.rb"
10
+ require File.dirname(__FILE__) + "/yard/code_objects/cucumber/scenario_outline.rb"
11
+ require File.dirname(__FILE__) + "/yard/code_objects/cucumber/scenario.rb"
12
+ require File.dirname(__FILE__) + "/yard/code_objects/cucumber/step.rb"
13
+ require File.dirname(__FILE__) + "/yard/code_objects/cucumber/tag.rb"
14
+
15
+ require File.dirname(__FILE__) + "/cucumber/city_builder.rb"
16
+
17
+ require File.dirname(__FILE__) + "/yard/code_objects/step_transformer.rb"
18
+ require File.dirname(__FILE__) + "/yard/code_objects/step_definition.rb"
19
+ require File.dirname(__FILE__) + "/yard/code_objects/placeholder.rb"
20
+
21
+ require File.dirname(__FILE__) + "/yard/parser/cucumber/feature.rb"
22
+
23
+ require File.dirname(__FILE__) + "/yard/handlers/cucumber/base.rb"
24
+ require File.dirname(__FILE__) + "/yard/handlers/cucumber/feature_handler.rb"
25
+
26
+ require File.dirname(__FILE__) + "/yard/handlers/step_definition_handler.rb"
27
+ require File.dirname(__FILE__) + "/yard/handlers/placeholder_handler.rb"
28
+ require File.dirname(__FILE__) + "/yard/handlers/placeholder_match_handler.rb"
29
+
30
+ require File.dirname(__FILE__) + "/yard/templates/helpers/base_helper.rb"
31
+
32
+ require File.dirname(__FILE__) + "/yard/server/adapter.rb"
33
+ require File.dirname(__FILE__) + "/yard/server/commands/list_command.rb"
34
+ require File.dirname(__FILE__) + "/yard/server/router.rb"
35
+
36
+
37
+ # This registered template works for yardoc
38
+ YARD::Templates::Engine.register_template_path File.dirname(__FILE__) + '/templates'
39
+
40
+ # The following static paths and templates are for yard server
41
+ YARD::Server.register_static_path File.dirname(__FILE__) + "/templates/default/fulldoc/html"
42
+ YARD::Server.register_static_path File.dirname(__FILE__) + "/docserver/default/fulldoc/html"