gloc 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -1
  3. data/exe/gloc +1 -0
  4. data/lib/gloc/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c84cd3269290d4f6060a13a68ef4dcec9026f3fb
4
- data.tar.gz: d43d54e3fc77fb43c86221c3489e5ad0c579d8e2
3
+ metadata.gz: '03680f8522160a0bd3f6b4f6d2294c9683010dbd'
4
+ data.tar.gz: dc7387860aaa9e4737f3953e64ab738c0cfc09ed
5
5
  SHA512:
6
- metadata.gz: 7069c3b6398ffcf1646cc450777e75eb21dbb9a8e90e12a0629cc64daefecc47fe669d2f654050fd2503e2f6e0e886ee0fdb185bd0681326eec1b3f6ec8eef4e
7
- data.tar.gz: ad03367f2daac51f628efd9a7b78407880d0556487c9e05e8499b08700399df983febf75cdb3aa5aa24196a21a424fe08a656872183caa9793cf85da07159847
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
- TODO: Delete this and the text above, and describe your gem
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
 
@@ -1,3 +1,3 @@
1
1
  module GLOC
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gloc
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Vandenberk