aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2011-09-08 01:27:24 +0530
committerVijay Dev <vijaydev.cse@gmail.com>2011-09-08 01:27:24 +0530
commit82de8ad9c140afa81d334780e96428ef10ce52e8 (patch)
treed0d6a2647bba24821f8e8eded1fdafdd24c8614b /Rakefile
parentb9f66f4db157eb6c85e1c72d9b1d577cd93cf9de (diff)
downloadrails-82de8ad9c140afa81d334780e96428ef10ce52e8.tar.gz
rails-82de8ad9c140afa81d334780e96428ef10ce52e8.tar.bz2
rails-82de8ad9c140afa81d334780e96428ef10ce52e8.zip
Use Travis https build status image in order to prevent GitHub from
caching the http version. The syntax for including an https image url in RDoc taken from http://about.travis-ci.org/docs/user/status-images. Having this in a line of its own now to make regex replacement for the API simpler!
Diffstat (limited to 'Rakefile')
-rwxr-xr-xRakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index f171949961..a47d415abc 100755
--- a/Rakefile
+++ b/Rakefile
@@ -78,7 +78,8 @@ RDoc::Task.new do |rdoc|
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", "")
+ # https build image is used to avoid GitHub caching: http://about.travis-ci.org/docs/user/status-images
+ rdoc_main.gsub!(%r{^== Travis.*}, '')
File.open(RDOC_MAIN, 'w') do |f|
f.write(rdoc_main)