Skip to content

Commit

Permalink
Use Travis https build status image in order to prevent GitHub from
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
vijaydev committed Sep 7, 2011
1 parent b9f66f4 commit 82de8ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
5 changes: 3 additions & 2 deletions README.rdoc
Expand Up @@ -61,13 +61,14 @@ can read more about Action Pack in its {README}[link:/rails/rails/blob/master/ac
* The {Ruby on Rails Guides}[http://guides.rubyonrails.org].
* The {API Documentation}[http://api.rubyonrails.org].


== Contributing http://travis-ci.org/rails/rails.png
== Contributing

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

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

== License

Ruby on Rails is released under the MIT license.
Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Expand Up @@ -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)
Expand Down

0 comments on commit 82de8ad

Please sign in to comment.