churned 0.1.2 → 0.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0abe825d0278d4075069f67e1197b02a3d6948029d12d180edc3e56d3e37c1c
4
- data.tar.gz: c0946c4b5d246a647af357784d8ef9eadeff6e477472f07f13712fd97e7ddaa7
3
+ metadata.gz: 54952fe9d2d35687446a55890d4dc6c207b434f72377d76b217254ee6e1a7291
4
+ data.tar.gz: ebc1588dc974723ad004c7176bdf33506df91e92afc0a59ec38d04cb38f4c9a2
5
5
  SHA512:
6
- metadata.gz: 6449b52c2630e7420825b7ba32c59275e297f50d2940a00f5375e9078f72cf9afba49e9dda112f8cbb0a9fdad56dd9fda000a10811946c0ee899a1d5de510be2
7
- data.tar.gz: 1da78d68aac0a79a41f0a1aa68f5d2e5beb94b28b87ee0f728fb2150c8008c8ae85d0c5323b139b0d69c4966c3a262b86f5f170e3e194aab3398cd3994f9c3d9
6
+ metadata.gz: faa201fc3cf2d15bbac9367e672acce35a333b36bebac56eb574394b0d476ccdfe72fcf6b6550f783e222a13fb69569b05d1bec36d38d2d7a356c95823fa95ec
7
+ data.tar.gz: 811dc8993d4da38c91862700ad362bb693ada1a9ce7cbfda0685ef0d3c8da39d404dc6e44788555a4675d3f4c0569e905d5fc5beeb38a78404b5cb120b2c6d1d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- churned (0.1.2)
4
+ churned (0.1.3)
5
5
  activerecord (~> 6.1)
6
6
  pry
7
7
  sqlite3
@@ -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")
@@ -1,3 +1,3 @@
1
1
  module Churned
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-17 00:00:00.000000000 Z
11
+ date: 2021-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord