git_fame 0.1.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/git_fame/base.rb +2 -3
- data/lib/git_fame/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2f2b28facc6df4785adcfa9332d705bdb32562ef
|
4
|
+
data.tar.gz: 3ce0f6380d3c87b031532f60dde25f472f181276
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba3c3784044e02474e25a028e32b962dd8d4322bcef7b5240e917cfa322f9c89165da9b82dc386e207c54f02793dfc7d40a8d123e535542ebdfd7fdf0e752463
|
7
|
+
data.tar.gz: 7668bff93367a582932ee23e9474effe9c3ac55f39546a37dd831235bfa9fc95a518e8a5cbcf9aee7bd78c4cd82599a6b25e5b8b2bc4dc037f96d6e09fec56b5
|
data/lib/git_fame/base.rb
CHANGED
@@ -111,7 +111,7 @@ module GitFame
|
|
111
111
|
progressbar.inc
|
112
112
|
if type = Mimer.identify(File.join(@repository, file)) and not type.mime_type.match(/binary/)
|
113
113
|
begin
|
114
|
-
execute("git blame '#{file}'").scan(
|
114
|
+
execute("git blame '#{file}' --line-porcelain").scan(/^author (.+)$/).each do |author|
|
115
115
|
fetch(author.first).raw_loc += 1
|
116
116
|
@file_authors[author.first][file] ||= 1
|
117
117
|
end
|
@@ -122,7 +122,6 @@ module GitFame
|
|
122
122
|
execute("git shortlog -se").split("\n").map do |l|
|
123
123
|
_, commits, u = l.match(%r{^\s*(\d+)\s+(.+?)\s+<.+?>}).to_a
|
124
124
|
user = fetch(u)
|
125
|
-
|
126
125
|
# Has this user been updated before?
|
127
126
|
if user.raw_commits.zero?
|
128
127
|
update(u, {
|
@@ -147,4 +146,4 @@ module GitFame
|
|
147
146
|
return self
|
148
147
|
end
|
149
148
|
end
|
150
|
-
end
|
149
|
+
end
|
data/lib/git_fame/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_fame
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Linus Oleander
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: progressbar
|