Figuring out what Rails Guide to edit next

November 13, 2011 Pivotal Labs

I’ve been contributing to Rails lately by going through the Rails Guides and making sure they’re up to date.

How do I go about finding a guide that hasn’t been updated in a while?

Here’s what I came up with:


ls -1 | perl -e 'while(<>) { chomp; $file = $_; print "$file was"; $changed = qx/git log -1 --format=format:"changed by %an %ar" $file/; print " $changedn" } '

In the docrails/railties/guides/source directory, this outputs:


2_2_release_notes.textile was changed by Vijay Dev 11 months ago
2_3_release_notes.textile was changed by Vijay Dev 8 months ago
3_0_release_notes.textile was changed by ov3y 3 months ago
3_1_release_notes.textile was changed by Rinaldi Fonseca 2 months ago
action_controller_overview.textile was changed by Brian Durand 3 weeks ago
[...]

There’s got to be a better way. I’d like to be able to sort by the date they were last written, etc.

Got any ideas?

About the Author

Biography

Previous
Why can't it be Moly or Mogust?
Why can't it be Moly or Mogust?

It’s Movember, the month formerly known as November. I decided to join the Movember cause this year by sha...

Next
Terminal: Beyond Ctrl + A and Ctrl + E
Terminal: Beyond Ctrl + A and Ctrl + E

Update: I had some of the Ctrl and Option commands switched. Fixed now. As Rails developers, we spend most...