Permalink
Browse files

Added rdoc ~> 4.0 as a development_dependency, since we allow rdoc+ma…

…rkdown.
  • Loading branch information...
1 parent a6ea8ef commit cc738f5a0edc990e864e47088f876249cf199483 @postmodern postmodern committed Apr 30, 2012
@@ -35,6 +35,8 @@ Gem::Specification.new do |gem|
gem.add_development_dependency "bundler", <%= @development_dependencies['bundler'].inspect %>
<%- if yard? -%>
gem.add_development_dependency "yard", <%= @development_dependencies['yard'].inspect %>
+<%- elsif rdoc? -%>
+ gem.add_development_dependency "rdoc", <%= @development_dependencies['rdoc'].inspect %>
<%- end -%>
<%- else -%>
<%- unless @development_dependencies.empty? -%>
@@ -30,6 +30,8 @@ development_dependencies:
bundler: <%= @development_dependencies['bundler'] %>
<%- if yard? -%>
yard: <%= @development_dependencies['yard'] %>
+ <%- elsif rdoc? -%>
+ rdoc: <%= @development_dependencies['rdoc'] %>
<%- end -%>
<%- else -%>
<%- unless @development_dependencies.empty? -%>
@@ -1,4 +1,8 @@
+<%- unless bundler? -%>
+gem 'rdoc', '<%= @development_dependencies['rdoc'] %>'
+<%- end -%>
require 'rdoc/task'
+
RDoc::Task.new do |rdoc|
rdoc.title = <%= @name.dump %>
<%- if @markdown == :markdown -%>
@@ -3,3 +3,6 @@ disable:
ignore:
- html/
+
+development_dependencies:
+ rdoc: ~> 4.0
View
@@ -258,6 +258,10 @@
@path.should have_file('.document')
end
+ it "should add the rdoc development dependency" do
+ @gemspec.should have_development_dependency('rdoc')
+ end
+
context ".document" do
it "should include 'lib/**/*.rb'" do
document.should include('lib/**/*.rb')

0 comments on commit cc738f5

Please sign in to comment.