countloc 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,6 +7,8 @@ require 'countloc'
7
7
 
8
8
  class RubyTest < Test::Unit::TestCase
9
9
 
10
+ include CountLOC
11
+
10
12
  def setup
11
13
  @counter = LineCounter.new('Test')
12
14
  end
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.1.0
4
+ version: 0.2.0
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-01 00:00:00 +00:00
12
+ date: 2009-01-04 23:18:13.523370 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -22,8 +22,9 @@ extensions: []
22
22
  extra_rdoc_files: []
23
23
 
24
24
  files:
25
- - README.txt
26
- - LICENSE.txt
25
+ - README
26
+ - LICENSE
27
+ - setup.rb
27
28
  - lib/countloc.rb
28
29
  - test/tc_ruby.rb
29
30
  - test/ts_countloc.rb
data/README.txt DELETED
@@ -1,74 +0,0 @@
1
- = Introduction
2
- ------------
3
-
4
- Contents:
5
- ~~~~~~~~
6
- 1. Overview
7
- 2. Installation
8
- 3. Usage
9
- 4. Release Notes
10
-
11
-
12
- 1. Overview
13
- -----------
14
- CountLOC is a utility program, implemented in Ruby that provides support for
15
- generating LOC metrics for source code.
16
-
17
- Initial releases will support counting lines of code in Ruby source code.
18
- Subsequent releases will add support for other programming languages such as
19
- Python, C, C++, C#, Java, Perl, etc. ...
20
-
21
- 2. Installation
22
- ---------------
23
- CountLOC is packaged as a Ruby gem and as a .zip file. Within each archive, the
24
- countloc.rb script is located in the lib directory.
25
-
26
- The latest release can be downloaded from: http://rubyforge.org/frs/?group_id=7555&release_id=29931
27
-
28
- Gem:
29
- gem install countloc.gem
30
-
31
- zip:
32
- unzip countloc.zip
33
-
34
-
35
- 3. Usage
36
- --------
37
- For full listing of options and usage:
38
- countloc.rb --help
39
-
40
- To get the LOC metrics for a single Ruby file:
41
- countloc.rb some_file.rb
42
-
43
- To get the LOC metrics for multiple Ruby files:
44
- countloc.rb some_file.rb some_other_file.rb
45
-
46
- To get the LOC metrics for all Ruby files in the current directory:
47
- countloc.rb *.rb
48
- or countloc.rb .
49
-
50
- To get the LOC metrics for all Ruby files in a directory tree with recursion
51
- into subdirectories:
52
- countloc.rb -r .
53
-
54
-
55
- 4. Release Notes
56
- ----------------
57
- Release 0.1.0:
58
- * Features
59
- ** Added support for processing multiple files at once.
60
- ** Added support for processing all .rb files in a directory.
61
- ** Added support for recursing into directory trees.
62
- ** Improved formatting of output.
63
-
64
- * Bugfixes:
65
- ** #23380 - Not suppressing path information in the program name in the usage string.
66
- ** #23379 - Incorrectly counting a # inside a single quoted string as a comment.
67
-
68
- Release 0.0.1:
69
- * Features
70
- ** Initial release.
71
- ** Supports generating LOC metrics for Ruby source code for a single
72
- file at a time.
73
- ** Handles multi-line and single line comments.
74
- ** Handles mixed lines of both code and comments.