gitlab_git 3.0.0.rc2 → 3.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/gitlab_git/git_stats.rb +4 -4
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3909e12e77ce4b784034a2b03df0aea02fe9d0bf
|
4
|
+
data.tar.gz: 84424d35adbe720e249f8e921295082ad560456e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25156470024d93b93b4c1280cabc8632c73e72cd79e32149e7c8c1254dc235475658c3985978995444c831fb3cbdaba0855dc7758530fdda304922c24ebe9223
|
7
|
+
data.tar.gz: 0ca561609a834167e582996c143f46a5a2c864317ecc8238da532331537950eddee82fd107067f754207aafe7abc1a42a89089ef4f3e987db801c06957d73a69
|
data/lib/gitlab_git/git_stats.rb
CHANGED
@@ -3,15 +3,15 @@ require_relative 'log_parser'
|
|
3
3
|
module Gitlab
|
4
4
|
module Git
|
5
5
|
class GitStats
|
6
|
-
attr_accessor :repo, :ref
|
6
|
+
attr_accessor :repo, :ref, :timeout
|
7
7
|
|
8
|
-
def initialize
|
9
|
-
@repo, @ref = repo, ref
|
8
|
+
def initialize(repo, ref, timeout = 30)
|
9
|
+
@repo, @ref, @timeout = repo, ref, timeout
|
10
10
|
end
|
11
11
|
|
12
12
|
def log
|
13
13
|
log = nil
|
14
|
-
Grit::Git.with_timeout(
|
14
|
+
Grit::Git.with_timeout(timeout) do
|
15
15
|
# Limit log to 6k commits to avoid timeout for huge projects
|
16
16
|
args = [ref, '-6000', '--format=%aN%x0a%aE%x0a%cd', '--date=short', '--shortstat', '--no-merges', '--diff-filter=ACDM']
|
17
17
|
log = repo.git.run(nil, 'log', nil, {}, args)
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab_git
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.0
|
4
|
+
version: 3.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitriy Zaporozhets
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: gitlab-linguist
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.
|
19
|
+
version: 2.9.5
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.
|
26
|
+
version: 2.9.5
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: gitlab-grit
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 2.6.1
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: gitlab-pygments.rb
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.5.4
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.5.4
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: activesupport
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,9 +100,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
86
100
|
version: '0'
|
87
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
88
102
|
requirements:
|
89
|
-
- - '
|
103
|
+
- - '>='
|
90
104
|
- !ruby/object:Gem::Version
|
91
|
-
version:
|
105
|
+
version: '0'
|
92
106
|
requirements: []
|
93
107
|
rubyforge_project:
|
94
108
|
rubygems_version: 2.0.3
|