Add dependency status (a la build status) to the README

This commit is contained in:
Steve Richert
2011-12-08 09:39:08 -05:00
parent 7b1930a9b2
commit 255c485d63
2 changed files with 7 additions and 4 deletions

View File

@@ -77,9 +77,10 @@ RDoc::Task.new do |rdoc|
rdoc_main.gsub!(/^(?=\S).*?\b(?=Rails)\b/) { "#$&\\" }
rdoc_main.gsub!(%r{link:/rails/rails/blob/master/(\w+)/README\.rdoc}, "link:files/\\1/README_rdoc.html")
# Remove Travis build status image from API pages. Only GitHub README page gets this image
# https build image is used to avoid GitHub caching: http://about.travis-ci.org/docs/user/status-images
rdoc_main.gsub!(%r{^== Travis.*}, '')
# Remove Travis and Gemnasium status images from API pages. Only GitHub
# README page gets this image. Travis' https build image is used to avoid
# GitHub caching: http://about.travis-ci.org/docs/user/status-images
rdoc_main.gsub!(%r{^== (Build|Dependency) Status.*}, '')
File.open(RDOC_MAIN, 'w') do |f|
f.write(rdoc_main)