gloc 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/exe/gloc +1 -0
- data/lib/gloc/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '03680f8522160a0bd3f6b4f6d2294c9683010dbd'
|
4
|
+
data.tar.gz: dc7387860aaa9e4737f3953e64ab738c0cfc09ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3246c72e55d068e2e2c9e88258ac5425ab8c91dade985c62d7e19d8f84bda4d16032c0c6afc121f52342c25ee2b2b5ba4898a2e26be9504c414db14299e55b9
|
7
|
+
data.tar.gz: be2f66713645f3318901361da7317034f9e2040ba56123692e2ee2629af2e90c62e08c9d2f921484aa1207d27385c76ce91fd2ed2d046b3100d48fccd5febbb6
|
data/README.md
CHANGED
@@ -2,7 +2,12 @@
|
|
2
2
|
|
3
3
|
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/gloc`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
4
|
|
5
|
-
|
5
|
+
## What it is not:
|
6
|
+
|
7
|
+
* [cgag/loc](https://github.com/cgag/loc)
|
8
|
+
* [AlDanial/cloc](https://github.com/AlDanial/cloc)
|
9
|
+
* [Aaronepower/tokei](https://github.com/Aaronepower/tokei)
|
10
|
+
* [SLOCCount](http://www.dwheeler.com/sloccount/)
|
6
11
|
|
7
12
|
## Installation
|
8
13
|
|
data/exe/gloc
CHANGED
@@ -68,6 +68,7 @@ source_stats = source_files.each_with_object({}) { |file, stats|
|
|
68
68
|
stats_for_ext.file_count += 1
|
69
69
|
stats_for_ext.line_count += source_lines.count
|
70
70
|
stats_for_ext.blank_count += source_lines.grep(BLANKS).count
|
71
|
+
next unless COMMENTS[file_ext] # only scan for comments if a regex exists!
|
71
72
|
stats_for_ext.comment_count += source_lines.grep(COMMENTS[file_ext]).count
|
72
73
|
}
|
73
74
|
|
data/lib/gloc/version.rb
CHANGED