diggit-developers_activity 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/diggit-init-dev-activity-workspace +0 -0
- data/lib/diggit/developers_activity/analyses/months_activity_analysis.rb +6 -9
- data/lib/diggit/developers_activity/analyses/project_developers_analysis.rb +3 -6
- data/lib/diggit/developers_activity/dataset/options +0 -0
- data/lib/diggit/developers_activity/dataset/sources.list +0 -0
- data/lib/diggit/developers_activity/dataset/sources_options +5 -8
- data/lib/diggit/developers_activity/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71638ee6852dbb61205bdf7303993fc3347c502d
|
4
|
+
data.tar.gz: 48894190544defc4725a2ab20d3c6b2d7aafff4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b151cfb487f4feda08c1b2ff2dfad6b46d577ac5d3e9c5eddc7f6f36cbe882081e5f8f8cf4853148c1d34fe8ea84eb552c8387244666f2577e54ae6f5099fee
|
7
|
+
data.tar.gz: 859420e059b4ad353ec9bb9432a77311de2cd2bbfe45dea19828ec7d1d8150b603cb691135a052efd168924346deb5451fe3f104b2cee3b67f2c1a69acb93c39
|
File without changes
|
@@ -37,18 +37,16 @@ module Diggit
|
|
37
37
|
STDOUT.flush
|
38
38
|
Renames.clear
|
39
39
|
r_0 = repo.lookup(src_opt[@source]["cloc-commit-id"])
|
40
|
-
|
41
|
-
|
40
|
+
r_first = repo.lookup(src_opt[@source]["R_first"])
|
41
|
+
t_first = r_first.author[:time]
|
42
42
|
t_0 = r_0.author[:time]
|
43
43
|
|
44
44
|
walker = Rugged::Walker.new(repo)
|
45
|
-
walker.
|
46
|
-
walker.push(r_0)
|
47
|
-
|
45
|
+
walker.push_range("#{r_first.oid}..#{r_0.oid}")
|
48
46
|
t_previous_month = t_0 - MONTH_SECONDS
|
49
47
|
month_num = 1
|
50
48
|
commits = []
|
51
|
-
walker.
|
49
|
+
walker.sort_by { |c| c.author[:time] }.reverse_each do |commit|
|
52
50
|
t = commit.author[:time]
|
53
51
|
Renames.extract_commit_renames(commit, true)
|
54
52
|
commits << commit if commit.parents.size == 1
|
@@ -76,12 +74,11 @@ module Diggit
|
|
76
74
|
t_0 = r_0.author[:time]
|
77
75
|
|
78
76
|
walker = Rugged::Walker.new(repo)
|
79
|
-
walker.
|
80
|
-
walker.push(r_last)
|
77
|
+
walker.push_range("#{r_0.oid}..#{r_last.oid}")
|
81
78
|
t_next_month = t_0 + MONTH_SECONDS
|
82
79
|
month_num = 1
|
83
80
|
commits = []
|
84
|
-
walker.each do |commit|
|
81
|
+
walker.sort_by { |c| c.author[:time] }.each do |commit|
|
85
82
|
t = commit.author[:time]
|
86
83
|
next if t < t_0
|
87
84
|
Renames.extract_commit_renames(commit, false)
|
@@ -13,20 +13,17 @@ module Diggit
|
|
13
13
|
def run
|
14
14
|
super
|
15
15
|
puts('Extracting project-level activity')
|
16
|
+
|
16
17
|
r_last = repo.lookup(src_opt[@source]["R_last"])
|
17
|
-
|
18
|
+
r_first = repo.lookup(src_opt[@source]["R_first"])
|
18
19
|
|
19
20
|
walker = Rugged::Walker.new(repo)
|
20
|
-
walker.
|
21
|
-
walker.push(r_last)
|
22
|
-
|
21
|
+
walker.push_range("#{r_first.oid}..#{r_last.oid}")
|
23
22
|
devs = []
|
24
23
|
walker.each do |commit|
|
25
24
|
t = commit.author[:time]
|
26
25
|
author = Authors.get_author(commit)
|
27
26
|
devs << { project: @source.url, author: author, time: t }
|
28
|
-
|
29
|
-
break if t < r_first_time
|
30
27
|
end
|
31
28
|
|
32
29
|
db.insert(COL, devs)
|
File without changes
|
File without changes
|
@@ -1150,18 +1150,15 @@
|
|
1150
1150
|
"releases-tags": [
|
1151
1151
|
"3.6.0",
|
1152
1152
|
"3.5.0"
|
1153
|
-
]
|
1153
|
+
],
|
1154
|
+
"R_last":"87227d4fce857a3964abea896ba2613a6dac86b8",
|
1155
|
+
"R_first":"30bdcfa1074747ec59a504c0fb1177445f27f177"
|
1154
1156
|
},
|
1155
1157
|
"https://github.com/mono/mono.git": {
|
1156
1158
|
"authors": {},
|
1157
1159
|
"cloc-commit-id": "675dc5b693495cb50c3004499a1d1f137722b988",
|
1158
|
-
"
|
1159
|
-
"
|
1160
|
-
"R_-2":"8eb62a203f75ffb9547265d0e91990f793522f02",
|
1161
|
-
"R_2":"",
|
1162
|
-
"R_last":"",
|
1163
|
-
"R_-4":"",
|
1164
|
-
"R_first":"",
|
1160
|
+
"R_last":"256094a2a97b27273e6c941d37bda9f51da16cc0",
|
1161
|
+
"R_first":"cac75b7d290e610827a0958f763afe9b11af3d56",
|
1165
1162
|
"releases": [
|
1166
1163
|
"675dc5b693495cb50c3004499a1d1f137722b988",
|
1167
1164
|
"50e387c57fec4e4e8c93237a98e3f5cb27aeb00d",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diggit-developers_activity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matthieu Foucault
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -113,4 +113,3 @@ signing_key:
|
|
113
113
|
specification_version: 4
|
114
114
|
summary: Analyses and dataset for the diggit tool.
|
115
115
|
test_files: []
|
116
|
-
has_rdoc:
|