soliCMS, un outil simple et efficace !

Zeus “Marching Through Your Head” from Alan Poon on Vimeo.

What is docrails?

7 mars 2012

Over the years I have seen some confusion about what is exactly docrails and how it relates to the documentation of Ruby on Rails.

This post explains everything you want to know about this aspect of the project.

What is docrails?

docrails is a branch of Ruby on Rails with public write access where anyone can push doc fixes.

If you see a typo, you'd like to correct a factual error, complement some existing documentation, add a useful example... before docrails existed you had to open a pull request (or the equivalent in those days) and follow the ordinary workflow to get it accepted. docrails allows you to clone the repo, edit, and push. Done!

ZOMG, that's awesome! Tell me more!

Changes to the code base need review before they are pushed. Each individual new feature or bug fix needs the perspective and responsability of core team members to take a decision about it.

Documentation fixes, though, are much more likely to be fine as they are. So, docrails has a public write policy to ease the workflow for contributors.

All commits have to be reviewed anyway, so docrails needs the same effort from Rails committers than going through pull requests, please everyone give big props to Vijay Dev who is nowadays in charge of this time consuming task.

The point of docrails is to provide a way to contribute to the Rails documentation that is fast and easy for contributors.

But wait, I am editing some separate thing?

docrails is a separate branch because it has a different access policy, but you are editing the actual Ruby on Rails documentation.

Every few days, once all new commits are reviewed docrails is merged into master, and master is merged into docrails. Also, very important edits may be cherry-picked into stable branches at the discrection of who merges.

What is allowed in docrails?

You can freely push changes to any RDoc, guides, and READMEs.

No code can be touched at all. That's a hard rule. No matter how insignificant, not even a one character typo in a string literal.

CHANGELOGs cannot be edited either.

Is docrails a documentation project?

No, Ruby on Rails has no documentation project. Treating documentation as a separate aspect of the project would be similar to treating testing as an external part of the project.

Documentation is an integral part of the development of Ruby on Rails. Contributing a feature or bug fix means contributing its code, test coverage, and documentation.

I am preparing a pull request, should I document later via docrails?

No, docrails is meant only for quick doc fixes.

Pull requests should be complete: code, tests, and docs. If a pull request lacks any of those in general it won't be accepted as is.

Also, updating docs does not only mean that you edit the RDoc next to the code you are touching. Often the change needs grepping the project tree to find instances of what the pull request is about, to update examples, revise explanations affected by your change, or writing new documentation.

Tidbit: run ack -a to have guides included in the search.

I made a doc fix, when is it going to be online?

Rails releases are a complete set. The documentation itself is part of the release. The fix is going to be online in the stable API or guides websites when the branch that contains the fix gets released.

Edits merged into master are always online in the edge API and edge guides, which are regenerated after every push to master. Thus, edits done via docrails are online in the edge docs website after the next docrails/master cross-merge.

Can I open pull requests for documentation fixes in Ruby on Rails?

Absolutely. Specially if you are unsure about the fix. But if you feel confident just push to docrails.

Please do not open pull requests in docrails.

Note that docrails has no issues tab. The reason is docrails is not a project, as explained above, only a way to bypass pull requests. Documentation issues are Ruby on Rails issues and belong to the Ruby on Rails project just as any other kind of issue.

Does Ruby on Rails has documenters?

No, documentation comes with each push to master. Everyone documents Rails.

The only exception is guide authors. Guide authors take the task to write an entire new guide about a certain topic, and they are allowed to push early drafts to docrails for convenience (only guides in the public index are considered to be published).

That's for new guides. Once published, guides maintenance happens in master as everything else.

[ANN] Rails 3.2.2 has been released!

1 mars 2012

Rails 3.2.2 has been released. This release contains various bug fixes and two important security fixes. All users are recommended to upgrade as soon as possible.

CHANGES

For information regarding the possible vulnerabilities, please see the announcements here and here.

Some highlights from this release are:

  • Log files are always flushed

  • Failing tests will exit with nonzero status code

  • Elimination of calls to deprecated methods

  • Query cache instrumentation includes bindings in the payload

  • Hidden checkbox values are not set if the value is nil

  • Various Ruby 2.0 compatibility fixes

For a comprehensive list, see the commits on github.

Soul 223: Almost Like It Used To Be

Delsin H 002 (Euro 12") - € 9.00

Excellent discoid Deep House swingers

Tracklisting:


  1. Almost Like It Used To Be

  2. Arties Mood

  3. Heartstrings

  4. Essex

Nick Solé: Flower Soil

Mojuba LP 2 PRE LTD (D 12") - € 8.00

Fine dubbed out Deep House excursions b/w silk screen print

Tracklisting:


  1. I Loose My Mind

  2. Mission Of Love

Paperclip People: The Secret Tapes Of Dr. Eich

Planet E 65347 (US Do 12") - € 20.00

Valuable remastered reissue of landmark Carl Craig album from 1996 - Essential Detroit Techno alert!

Tracklisting:


  1. Welcome Center

  2. Oscillator

  3. Paperclip Man

  4. The Climax

  5. Floor

  6. Clear And Present

  7. Throw

  8. Steam

  9. Parking Garage Politics

  10. Country Boy Goes Dub

  11. Slam Dance

  12. My Neighbourhood

Infiniti: The Remixes Part 3/3

Tresor 250 C (D 12") - € 8.50

Juan Atkins prod. classy Techno re-issued & remixed

Tracklisting:


  1. Think Quick (Original Mix)

  2. Think Quick (Sleeparchive Mix)

  3. Think Quick (Moritz von Oswald '94 Remodel)

Marcelus: Super Strength EP

Tresor 251 (D 12") - € 8.50

Banging Techno tools

Tracklisting:


  1. Super Strength

  2. Falcon

  3. Radical Groove

  4. Suspension

Site propulsé par soliCMS

soliCMS est développé par SoliSoft et AGSI
Ruby on Rails 2.3.3 – MySQL