From d68a3445d69542161bcebd68dd55f38ca8337042 Mon Sep 17 00:00:00 2001 From: "David A. Wheeler" Date: Sun, 1 Sep 2013 19:49:37 -0400 Subject: Fix so sloccount handles shebang in ruby scripts. [from Doug Holland] - See: https://sourceforge.net/p/sloccount/patches/1/ - From Doug Holland (thanks!) --- break_filelist | 3 +++ 1 file changed, 3 insertions(+) diff --git a/break_filelist b/break_filelist index 7df41ab..a4f9858 100755 --- a/break_filelist +++ b/break_filelist @@ -903,6 +903,9 @@ sub file_type_from_contents() { if ($command =~ m/^python[0-9\.]*(\.exe)?$/i) { return "python"; } + if ($command =~ m/^ruby[0-9\.]*(\.exe)?$/i) { + return "ruby"; + } if ($command =~ m/^(tcl|tclsh|bltwish|wish|wishx|WISH)[0-9\.]*(\.exe)?$/i) { return "tcl"; } -- cgit v1.2.1