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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9d453decc81a49d6e240df9aa37d6d454699fa22
4
- data.tar.gz: a2b7e96bebe14e6d25ede011d22459a87a25a7c5
3
+ metadata.gz: 2f2b28facc6df4785adcfa9332d705bdb32562ef
4
+ data.tar.gz: 3ce0f6380d3c87b031532f60dde25f472f181276
5
5
  SHA512:
6
- metadata.gz: c5539b84fdc866f79c99942e78b4950a0fb417d0d0662c9daa0334be9bffa2ef0d726a9ceb117bfca1420bcbd1042377d1716405473822bf50754cf522baa808
7
- data.tar.gz: 36e56ba65712bfb36366327fde81b1831f363f91eb0b73cb699106d3da2cefa4ae2f911b7b140385ec4e9fe9828c08284ecb0c5d76bd5527c0b76d13d313ac5d
6
+ metadata.gz: ba3c3784044e02474e25a028e32b962dd8d4322bcef7b5240e917cfa322f9c89165da9b82dc386e207c54f02793dfc7d40a8d123e535542ebdfd7fdf0e752463
7
+ data.tar.gz: 7668bff93367a582932ee23e9474effe9c3ac55f39546a37dd831235bfa9fc95a518e8a5cbcf9aee7bd78c4cd82599a6b25e5b8b2bc4dc037f96d6e09fec56b5
@@ -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(/\((.+?)\s+\d{4}-\d{2}-\d{2}/).each do |author|
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
@@ -1,3 +1,3 @@
1
1
  module GitFame
2
- VERSION = "0.1.2"
2
+ VERSION = "1.0.0"
3
3
  end
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.1.2
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-07-03 00:00:00.000000000 Z
11
+ date: 2013-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: progressbar