gitalytics 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gitalytics.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 440abf11cbc39d3544a6d226527dd29dfb4d2adf
|
4
|
+
data.tar.gz: fc5393c1b3ea97dd5819f1d607b879d085a18fa5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56972f5d972a6d17f5bb46c234d27ffa6865dc2be24d636a0159147be2753726331113a725cbbee862d3a83e3a11c4bf0b93f0d506fc0eecdb2b2878ee33f6e9
|
7
|
+
data.tar.gz: 3e825ed9e7103ff3d543ce2c870d1ca153b7ba2389f6ae5047e3d124fc748bef25baca3199e4181acf19104251c04abc4474ff3756cb0be566d94b0fdec24688
|
data/lib/gitalytics.rb
CHANGED
@@ -6,7 +6,7 @@ require 'digest/md5'
|
|
6
6
|
|
7
7
|
class Gitalytics
|
8
8
|
|
9
|
-
VERSION = '1.1.
|
9
|
+
VERSION = '1.1.1'
|
10
10
|
|
11
11
|
attr_accessor :data
|
12
12
|
|
@@ -26,12 +26,14 @@ class Gitalytics
|
|
26
26
|
|
27
27
|
private
|
28
28
|
def parse_git_log
|
29
|
-
result = `git log --stat
|
29
|
+
result = `git log --stat --format=`
|
30
30
|
|
31
31
|
result.each_line do |line|
|
32
|
+
line.encode!('UTF-8', 'UTF8-MAC') if defined?(Encoding::UTF8_MAC)
|
33
|
+
|
32
34
|
if match = line.match(/^commit ([0-9a-z]*)$/)
|
33
35
|
@data[:commits] << Commit.new(match[1])
|
34
|
-
elsif match = line.match(/^Author: ([
|
36
|
+
elsif match = line.match(/^Author: ([[:alpha:] ]*) <(.*)>$/)
|
35
37
|
user = get_user(match[1], match[2])
|
36
38
|
@data[:commits].last.author = user
|
37
39
|
user.commits << @data[:commits].last
|