aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorAnand <lucky.developer@gmail.com>2011-08-22 17:07:23 +0530
committerAnand <lucky.developer@gmail.com>2011-08-22 22:28:02 +0530
commit71232f5d5d88d5390ff790b7b3336f5168e9f270 (patch)
tree44f2fb8446932c01549f8c979cf0b43ea11847a9 /Rakefile
parentaae5ebf3eb7d17e668bb05f9c859e239f31b9f50 (diff)
downloadrails-71232f5d5d88d5390ff790b7b3336f5168e9f270.tar.gz
rails-71232f5d5d88d5390ff790b7b3336f5168e9f270.tar.bz2
rails-71232f5d5d88d5390ff790b7b3336f5168e9f270.zip
Travis status image added to GitHub README, excluding API pages.
Diffstat (limited to 'Rakefile')
-rwxr-xr-xRakefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 36007f6e91..4cf01cf063 100755
--- a/Rakefile
+++ b/Rakefile
@@ -76,6 +76,9 @@ 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
+ rdoc_main.gsub!("http://travis-ci.org/rails/rails.png", "")
+
File.open(RDOC_MAIN, 'w') do |f|
f.write(rdoc_main)
end