git-stat 1.0.0 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf97961ee62e35f533a39b66245b85ba341e312a
4
- data.tar.gz: a4d8a2021cbbbfdcdcf0f46ffe977498708ca352
3
+ metadata.gz: 6c843b356f0bcdfecb7c28cf57b9ed4068ec9247
4
+ data.tar.gz: cc7a013bf9745952d7e1a7fa666ecc4d66f50467
5
5
  SHA512:
6
- metadata.gz: f29cc3e815d9d21850b3bdd25576cafa7c29f63f871fa5386accef665d835b7baaa9c286cb014fc2d61924a5d5b0a5f774e8da4b426c38a8d8658142f636989f
7
- data.tar.gz: dc62f98c7326da37c000776c63cdb7c795f01ee0a571c74a837fa71f7fb59f2c76db22e13bd58f798d4bd97dc6170c1dc04828b248de91b8b72b250d2940d9fc
6
+ metadata.gz: 7f9cdf567be991c41a80839c0164d524472c892efb8f5421b5fe72031540a7bebcc2312d3d14aa3ed7e5b03f49153d0162636776ab562ad549b053125735b212
7
+ data.tar.gz: e5f0a6292afdf9c1b71e553eff35cc2cbf2c29fe038f7b8d8e7837e2c06f99b667d88c348a48865dd9406d1e57859036d3fe4ab957d0988e3489f2968da3697d
data/README.md CHANGED
@@ -10,9 +10,41 @@ The toolset can be installed via:
10
10
 
11
11
  ## Usage
12
12
 
13
- TODO
14
-
13
+ It's really quite simple! You execute `git-stat` inside a project, and it will print out a yaml with all the statistics. There is an option to pass it a git directory, that way you don't have to explicitly be in the directory to execute `git-stat`:
15
14
 
15
+ Usage: git-stat [options]
16
+ -d, --dir GIT_DIR A git directory to get stats on (Default: current directory)
17
+ -h, --help Display this screen
18
+
19
+ Executing the command on the local repo, will give you an output like this:
20
+
21
+ $ git-stat
22
+ ---
23
+ project_name: git-stat
24
+ total_files: 13
25
+ total_lines: 665
26
+ file_types:
27
+ UNKNOWN: 6
28
+ .rb: 3
29
+ .gemspec: 1
30
+ .txt: 1
31
+ .lock: 1
32
+ .md: 1
33
+ authors_line_count:
34
+ Peter Salas: 659
35
+ Not Committed Yet: 6
36
+ line_counts_by_type:
37
+ .rb: 249
38
+ UNKNOWN: 171
39
+ .lock: 81
40
+ .md: 80
41
+ .gemspec: 64
42
+ .txt: 20
43
+ branches:
44
+ - remotes/origin/master
45
+ tags:
46
+ - v1.0.0
47
+
16
48
  ## Documentation
17
49
 
18
50
  The projects homepage can be found [here](https://github.com/gradeawarrior/git-stat). You can also refer to the [Rubydoc YARD Server](http://rubydoc.info/gems/git-stat/frames)
data/Rakefile CHANGED
@@ -21,7 +21,9 @@ Jeweler::Tasks.new do |gem|
21
21
  gem.description = "Git Statistics Utility for your projects"
22
22
  gem.email = "psalas+github@gmail.com"
23
23
  gem.authors = ["Peter Salas"]
24
+
24
25
  # dependencies defined in Gemfile
26
+ gem.required_ruby_version= '>= 1.9.2'
25
27
  end
26
28
  Jeweler::RubygemsDotOrgTasks.new
27
29
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -8,7 +8,8 @@ def show_usage(opts, message=nil)
8
8
  puts opts
9
9
 
10
10
  if !message.nil?
11
- puts "[ERROR] #{message}"
11
+ $stderr.puts "[ERROR] #{message}"
12
+ $stderr.flush
12
13
  code = 1
13
14
  end
14
15
  exit(code)
@@ -24,7 +25,7 @@ opts = OptionParser.new do |opts|
24
25
  # of the help screen.
25
26
  opts.banner = "Usage: git-stat [options]"
26
27
 
27
- opts.on('-d', '--dir GIT_DIR', "A git directory to get stats on (Default: current directory)") do |dir|
28
+ opts.on('-d', '--dir GIT_DIR', "(Optional) A git directory to get stats on (Default: current directory)") do |dir|
28
29
  show_usage("'#{dir} does not exist!") unless File.exist?(dir)
29
30
  show_usage("'#{dir} is not a directory!") unless File.directory?(dir)
30
31
  git_dir = dir
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "git-stat"
8
- s.version = "1.0.0"
8
+ s.version = "1.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Peter Salas"]
@@ -34,6 +34,7 @@ Gem::Specification.new do |s|
34
34
  s.homepage = "http://github.com/gradeawarrior/git-stat"
35
35
  s.licenses = ["MIT"]
36
36
  s.require_paths = ["lib"]
37
+ s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
37
38
  s.rubygems_version = "2.0.14"
38
39
  s.summary = "git-stat utility"
39
40
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git-stat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Salas
@@ -113,7 +113,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - '>='
115
115
  - !ruby/object:Gem::Version
116
- version: '0'
116
+ version: 1.9.2
117
117
  required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  requirements:
119
119
  - - '>='