Skip to content

Instantly share code, notes, and snippets.

@amatsuda
Created November 28, 2012 01:44
Show Gist options
  • Save amatsuda/4158531 to your computer and use it in GitHub Desktop.
Save amatsuda/4158531 to your computer and use it in GitHub Desktop.
headers, cookies, and params usage in my controllers
% rake stats
+----------------------+-------+-------+---------+---------+-----+-------+
| Name | Lines | LOC | Classes | Methods | M/C | LOC/M |
+----------------------+-------+-------+---------+---------+-----+-------+
| Controllers | 4327 | 3478 | 110 | 361 | 3 | 7 |
| Helpers | 384 | 331 | 0 | 35 | 0 | 7 |
| Models | 2912 | 2177 | 84 | 226 | 2 | 7 |
| Libraries | 281 | 230 | 8 | 39 | 4 | 3 |
| Model specs | 3096 | 2663 | 0 | 0 | 0 | 0 |
| Controller specs | 1005 | 783 | 0 | 3 | 0 | 259 |
| Helper specs | 39 | 33 | 0 | 0 | 0 | 0 |
| Mailer specs | 26 | 22 | 0 | 0 | 0 | 0 |
| Request specs | 6247 | 4783 | 0 | 0 | 0 | 0 |
+----------------------+-------+-------+---------+---------+-----+-------+
| Total | 18317 | 14500 | 202 | 664 | 3 | 19 |
+----------------------+-------+-------+---------+---------+-----+-------+
% git grep -i headers app | wc -l
3
% git grep -i cookies app | wc -l
2
% git grep params app/controllers | wc -l
15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment