Permalink
Browse files

update fixme tasks with markdown support

  • Loading branch information...
1 parent 67d1847 commit c8163a4d717bf821391910908b5cae244bd9c392 @copiousfreetime committed Mar 12, 2013
Showing with 7 additions and 6 deletions.
  1. +3 −2 tasks/default.rake
  2. +4 −4 tasks/this.rb
View
@@ -74,9 +74,10 @@ begin
RDoc::Task.new do |t|
t.markup = 'tomdoc'
t.rdoc_dir = 'doc'
- t.main = 'README.rdoc'
+ t.main = 'README.md'
t.title = "#{This.name} #{This.version}"
- t.rdoc_files.include( '*.rdoc', 'lib/**/*.rb' )
+ t.rdoc_files.include( FileList['*.{rdoc,md,txt}'], FileList['ext/**/*.c'],
+ FileList['lib/**/*.rb'] )
end
rescue LoadError => le
This.task_warning( 'rdoc' )
View
@@ -54,7 +54,7 @@ def version
#
# Retuns the text of the section as an array of paragrphs.
def section_of( file, section_name )
- re = /^=+ (.*)$/
+ re = /^[=#]+ (.*)$/
sectional = project_path( file )
parts = sectional.read.split( re )[1..-1]
parts.map! { |p| p.strip }
@@ -137,8 +137,8 @@ def core_gemspec
spec.executables = spec.files.grep(/^bin/) { |f| File.basename(f) }
spec.test_files = spec.files.grep(/^spec/)
- spec.extra_rdoc_files += spec.files.grep(/(txt|rdoc)$/)
- spec.rdoc_options = [ "--main" , 'README.rdoc',
+ spec.extra_rdoc_files += spec.files.grep(/(txt|rdoc|md)$/)
+ spec.rdoc_options = [ "--main" , 'README.md',
"--markup", "tomdoc" ]
end
end
@@ -187,7 +187,7 @@ def platform
# Internal: Return the DESCRIPTION section of the README.rdoc file
def description_section
- section_of( 'README.rdoc', 'DESCRIPTION')
+ section_of( 'README.md', 'DESCRIPTION')
end
# Internal: Return the summary text from the README

0 comments on commit c8163a4

Please sign in to comment.