On 8/2/06, Joe Van Dyk <joevandyk@gmail.com>
wrote:> So, what''s the deal with all this REST and Resource stuff? Why
should
> I care about it? How does it help me? Why is it cool?
>
> Everywhere I see the stuff mentioned, it assumes you already know what
> it is and why it''s good.
The Rails trac is giving me an error when I try to submit a patch, so
here''s a diff:
Index: railties/lib/code_statistics.rb
==================================================================---
railties/lib/code_statistics.rb (revision 106)
+++ railties/lib/code_statistics.rb (working copy)
@@ -43,7 +43,7 @@
stats["lines"] += 1
stats["classes"] += 1 if line =~ /class [A-Z]/
stats["methods"] += 1 if line =~ /def [a-z]/
- stats["codelines"] += 1 unless line =~ /^\s*$/ || line =~
/^\s*#/
+ stats["codelines"] += 1 unless line =~ /^\s*$/ || line =~
/^\s*#/ || line =~ /[,\+\-\*\/]\s*$/
end
end