Skip to content

Commit 82de8ad

Browse files
committed
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!
1 parent b9f66f4 commit 82de8ad

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.rdoc

+3-2
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,14 @@ can read more about Action Pack in its {README}[link:/rails/rails/blob/master/ac
6161
* The {Ruby on Rails Guides}[http://guides.rubyonrails.org].
6262
* The {API Documentation}[http://api.rubyonrails.org].
6363

64-
65-
== Contributing http://travis-ci.org/rails/rails.png
64+
== Contributing
6665

6766
We encourage you to contribute to Ruby on Rails! Please check out the {Contributing to Rails
6867
guide}[http://edgeguides.rubyonrails.org/contributing_to_ruby_on_rails.html] for guidelines about how
6968
to proceed. {Join us}[http://contributors.rubyonrails.org]!
7069

70+
== Travis Build Status {<img src="https://secure.travis-ci.org/rails/rails.png"/>}[https://secure.travis-ci.org/rails/rails.png]
71+
7172
== License
7273

7374
Ruby on Rails is released under the MIT license.

Rakefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ RDoc::Task.new do |rdoc|
7878
rdoc_main.gsub!(%r{link:/rails/rails/blob/master/(\w+)/README\.rdoc}, "link:files/\\1/README_rdoc.html")
7979

8080
# Remove Travis build status image from API pages. Only GitHub README page gets this image
81-
rdoc_main.gsub!("http://travis-ci.org/rails/rails.png", "")
81+
# https build image is used to avoid GitHub caching: http://about.travis-ci.org/docs/user/status-images
82+
rdoc_main.gsub!(%r{^== Travis.*}, '')
8283

8384
File.open(RDOC_MAIN, 'w') do |f|
8485
f.write(rdoc_main)

0 commit comments

Comments
 (0)