git_stats 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/git_stats.gemspec +1 -0
- data/lib/git_stats/cli.rb +3 -3
- data/lib/git_stats/git_data/repo.rb +4 -4
- data/lib/git_stats/version.rb +1 -1
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdf6acaebd3fce0aec44b46e2434c0e5d978a0aa
|
4
|
+
data.tar.gz: 01568a5bfcba85be69a55838c885b318c6aeb113
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a6389f8e2e955b57eb7a4ef25637f99374a0e0f5eeaea1d8824f92d57a7fdc91ca0191976da15a0327850a50347386d811d97ac65574bbf8db6b26143bc6038
|
7
|
+
data.tar.gz: cdbec24c61f9f579e56c65dcbbfbe7a2d0dc6d2c3d8f94928f1b146751e379d104e28a9dd0aec1b0a0595561dc8d61bfcea0e087760fcc750f9ae575afed5f8a
|
data/git_stats.gemspec
CHANGED
data/lib/git_stats/cli.rb
CHANGED
@@ -6,11 +6,11 @@ class GitStats::CLI < Thor
|
|
6
6
|
option :path, :aliases => :p, :default => '.', :desc => 'Path to repository from which statistics should be generated.'
|
7
7
|
option :out_path, :aliases => :o, :default => './git_stats', :desc => 'Output path where statistics should be written.'
|
8
8
|
option :language, :aliases => :l, :default => 'en', :desc => 'Language of written statistics.'
|
9
|
-
option :
|
10
|
-
option :
|
9
|
+
option :first_commit_sha, :aliases => :f, :desc => 'Commit from where statistics should start.'
|
10
|
+
option :last_commit_sha, :aliases => :t, :default => 'HEAD', :desc => 'Commit where statistics should stop.'
|
11
11
|
option :silent, :aliases => :s, :type => :boolean, :desc => 'Silent mode. Don\'t output anything.'
|
12
12
|
option :tree, :aliases => :d, :default => '.', :desc => 'Tree where statistics should be generated.'
|
13
|
-
option :
|
13
|
+
option :comment_string, :aliases => :c, :default => '//', :desc => 'The string which is used for comments.'
|
14
14
|
|
15
15
|
desc 'generate', 'Generates the statistics of a repository'
|
16
16
|
def generate
|
@@ -35,6 +35,10 @@ module GitStats
|
|
35
35
|
@comment_string ||= '//'
|
36
36
|
end
|
37
37
|
|
38
|
+
def tree
|
39
|
+
@tree ||= Tree.new(repo: self, relative_path: @tree_path)
|
40
|
+
end
|
41
|
+
|
38
42
|
def authors
|
39
43
|
@authors ||= run_and_parse("git shortlog -se #{commit_range} #{tree_path}").map do |author|
|
40
44
|
Author.new(repo: self, name: author[:name], email: author[:email])
|
@@ -115,10 +119,6 @@ module GitStats
|
|
115
119
|
@project_version ||= run("git rev-parse --short #{commit_range}").strip
|
116
120
|
end
|
117
121
|
|
118
|
-
def tree
|
119
|
-
@tree ||= Tree.new(repo: self, relative_path: @tree_path)
|
120
|
-
end
|
121
|
-
|
122
122
|
def project_name
|
123
123
|
@project_name ||= (File.expand_path(File.join(path, tree_path)).sub(File.dirname(File.expand_path(path))+File::SEPARATOR,"") || File.basename(path))
|
124
124
|
end
|
data/lib/git_stats/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_stats
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tomasz Gieniusz
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: json_pure
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
description: Git history statistics generator
|
112
126
|
email:
|
113
127
|
- tomasz.gieniusz@gmail.com
|