churned 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/churned/commands/install.rb +5 -3
- data/lib/churned/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54952fe9d2d35687446a55890d4dc6c207b434f72377d76b217254ee6e1a7291
|
4
|
+
data.tar.gz: ebc1588dc974723ad004c7176bdf33506df91e92afc0a59ec38d04cb38f4c9a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: faa201fc3cf2d15bbac9367e672acce35a333b36bebac56eb574394b0d476ccdfe72fcf6b6550f783e222a13fb69569b05d1bec36d38d2d7a356c95823fa95ec
|
7
|
+
data.tar.gz: 811dc8993d4da38c91862700ad362bb693ada1a9ce7cbfda0685ef0d3c8da39d404dc6e44788555a4675d3f4c0569e905d5fc5beeb38a78404b5cb120b2c6d1d
|
data/Gemfile.lock
CHANGED
@@ -19,6 +19,7 @@ module Churned
|
|
19
19
|
create_table :commits, force: true do |t|
|
20
20
|
t.string :sha
|
21
21
|
t.string :author
|
22
|
+
t.date :author_date
|
22
23
|
end
|
23
24
|
|
24
25
|
create_table :file_changes, force: true do |t|
|
@@ -29,14 +30,15 @@ module Churned
|
|
29
30
|
end
|
30
31
|
end
|
31
32
|
|
32
|
-
command.run("git log --no-merges --pretty=format:'%H%n%ae' --numstat --since=1.years > .churned/hashes.txt")
|
33
|
+
command.run("git log --no-merges --pretty=format:'%H%n%ad%n%ae' --numstat --since=1.years > .churned/hashes.txt")
|
33
34
|
|
34
|
-
IO.read('.churned/hashes.txt').split("\n\n") do |description|
|
35
|
+
IO.read('.churned/hashes.txt').split("\n\n").each do |description|
|
35
36
|
lines = description.split("\n")
|
36
37
|
|
37
38
|
sha = lines.shift
|
39
|
+
date = lines.shift
|
38
40
|
author = lines.shift
|
39
|
-
commit = Commit.new(sha: sha, author: author)
|
41
|
+
commit = Commit.new(sha: sha, author_date: date, author: author)
|
40
42
|
|
41
43
|
lines.each do |numstat|
|
42
44
|
additions, deletions, pathname = numstat.split("\t")
|
data/lib/churned/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: churned
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexandre Barret
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|