gitalytics 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/gitalytics.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b4fb17f1fd09ae86b6c93b3c7283a1a755a7031e
4
- data.tar.gz: 6b4a2d91bab135ba263a64421427a36cfdfe9044
3
+ metadata.gz: 440abf11cbc39d3544a6d226527dd29dfb4d2adf
4
+ data.tar.gz: fc5393c1b3ea97dd5819f1d607b879d085a18fa5
5
5
  SHA512:
6
- metadata.gz: 7c3f613d51e99d4286500f8287af6c18e0adb2ae2af34830e9cb990006340daf8f6dac5b3ab1552db7a9ab0e458ad0e2ad95db530ec77f99c1cff34ac5bab7a2
7
- data.tar.gz: c415721c1b02fa62343fb3b036a7ee1bc15790c2c28940711ea4315a8ea5be34e0f2ce4222622b16dc6c540f5a20e920bc1668176870b50365148490dbf8da62
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.0'
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: ([\w ]*) <(.*)>$/)
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitalytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gonzalo Robaina