countloc 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +13 -0
  2. data/lib/countloc.rb +3 -3
  3. metadata +2 -2
data/README CHANGED
@@ -58,8 +58,21 @@ To export the results to a html file:
58
58
  To export the results to a csv file:
59
59
  % countloc.rb -r --csv countloc.csv .
60
60
 
61
+ To get LOC metrics for a C file:
62
+ % countloc.rb hello.c
63
+
64
+ To get LOC metrics for all C files in a directory tree:
65
+ % countloc.rb -r --file-types "*.c *.h"
66
+
61
67
 
62
68
  == Release Notes
69
+ === Release 0.3.1:
70
+ Features
71
+ * No new features - bugfix release only.
72
+
73
+ Bugfixes:
74
+ * [27525] Fixed compilation errors when using ruby 1.9
75
+
63
76
  === Release 0.3.0:
64
77
  Features
65
78
  * Added support for generating LOC metrics for languages other than Ruby.
@@ -31,7 +31,7 @@ require 'time'
31
31
  #
32
32
  module CountLOC
33
33
 
34
- VERSION = '0.3.0'
34
+ VERSION = '0.3.1'
35
35
 
36
36
  # Class that gathers the metrics.
37
37
  #
@@ -125,7 +125,7 @@ module CountLOC
125
125
  # strings or regular expressions.
126
126
  line.gsub!(/\'.*?\'/, "X") # Single quoted string
127
127
  line.gsub!(/[^\"]\"[^\"]+\"/, "X") # Double quoted string
128
- if style == :ruby:
128
+ if style == :ruby
129
129
  line.gsub!(/\/.*?\//, "X") # Regular expression
130
130
  end
131
131
 
@@ -377,7 +377,7 @@ end # module
377
377
  #
378
378
  # When run as a standalone script ...
379
379
  #
380
- if $0 == __FILE__:
380
+ if $0 == __FILE__
381
381
 
382
382
  class CmdLineOptParser
383
383
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: countloc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Doyle
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-10 22:36:59.574069 +00:00
12
+ date: 2009-12-08 22:34:09.136095 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15