git_find_committer 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 +4 -4
- data/README.md +1 -1
- data/Rakefile +13 -0
- data/git_find_committer.gemspec +3 -3
- data/lib/git_find_committer/committer.rb +1 -1
- data/lib/git_find_committer/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ea3ff9ec81375298d039c30df6413759d000efb
|
4
|
+
data.tar.gz: 736338f7902a0cd954e54730308fb7997fb0983d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1404344250ac2a9f025d24d26a8f060f39f77b0409dec61c5bd3f92ddd391493163e1b37a6ab9725510af5983502b4ffe2357c271852ce48838842ca7d0a35cb
|
7
|
+
data.tar.gz: ab4bef9e95e2b4630c91fbf07fb6651d05fa0eb3fe2e9ce204cfe54defb122b858c7d9c5f7afbd594d5252717c62ed0eb2b3ac229a4326b51c6f37b90583c78f
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
[](https://circleci.com/gh/shoyan/git_find_committer/tree/master)
|
4
4
|
|
5
|
-
The GitFindCommitter is a tool to find the committers as a target the modified file. As the name, look for the committers from the commit history of Git. For example, if you modify the hoge.rb and fuga.rb in fix branch. GitFindCommitter looks for a committer to target the hoge.rb and
|
5
|
+
The GitFindCommitter is a tool to find the committers as a target the modified file. As the name, look for the committers from the commit history of Git. For example, if you modify the hoge.rb and fuga.rb in fix branch. GitFindCommitter looks for a committer to target the hoge.rb and fuga.rb.
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
data/Rakefile
CHANGED
@@ -4,3 +4,16 @@ require "rspec/core/rake_task"
|
|
4
4
|
RSpec::Core::RakeTask.new(:spec)
|
5
5
|
|
6
6
|
task :default => :spec
|
7
|
+
|
8
|
+
namespace "gem" do
|
9
|
+
desc 'Build a gem package'
|
10
|
+
task :build do
|
11
|
+
sh "gem build git_find_committer.gemspec"
|
12
|
+
end
|
13
|
+
|
14
|
+
desc 'Push a gem package'
|
15
|
+
task :push do
|
16
|
+
Rake::Task["gem:build"].execute
|
17
|
+
sh "gem push git_find_committer-#{GitFindCommitter::VERSION}.gem"
|
18
|
+
end
|
19
|
+
end
|
data/git_find_committer.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ["Shohei Yamasaki"]
|
10
10
|
spec.email = ["yamasaki0406@gmail.com"]
|
11
11
|
|
12
|
-
spec.summary = %q{
|
13
|
-
spec.description = %q{The GitFindCommitter is a tool to find the committers
|
12
|
+
spec.summary = %q{Find the committers from the commit history.}
|
13
|
+
spec.description = %q{The GitFindCommitter is a tool to find the committers from the commit history.}
|
14
14
|
spec.homepage = "https://github.com/shoyan/git_find_committer"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
@@ -22,5 +22,5 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency "bundler", "~> 1.12"
|
23
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
24
24
|
spec.add_development_dependency "rspec", "~> 3.0"
|
25
|
-
spec.add_development_dependency
|
25
|
+
spec.add_development_dependency 'pry', '~> 0'
|
26
26
|
end
|
@@ -26,7 +26,7 @@ module GitFindCommitter
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def find(file)
|
29
|
-
{"#{file}" => `cd #{@config.tmp_repo_path} && git log --pretty=format:"%an" #{file} 2>/dev/null` }.each_with_object(Hash.new(0)) do |(file, committer), k|
|
29
|
+
{"#{file}" => `cd #{@config.tmp_repo_path} && git log --follow --pretty=format:"%an" #{file} 2>/dev/null` }.each_with_object(Hash.new(0)) do |(file, committer), k|
|
30
30
|
committer.split("\n").each {|r| k[r]+=1 }
|
31
31
|
end.sort {|(k1, v1), (k2, v2)| v2 <=> v1 }.to_h
|
32
32
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git_find_committer
|
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
|
- Shohei Yamasaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -56,18 +56,18 @@ dependencies:
|
|
56
56
|
name: pry
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description: The GitFindCommitter is a tool to find the committers
|
70
|
-
|
69
|
+
description: The GitFindCommitter is a tool to find the committers from the commit
|
70
|
+
history.
|
71
71
|
email:
|
72
72
|
- yamasaki0406@gmail.com
|
73
73
|
executables: []
|
@@ -116,6 +116,5 @@ rubyforge_project:
|
|
116
116
|
rubygems_version: 2.5.1
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
|
-
summary:
|
120
|
-
file.
|
119
|
+
summary: Find the committers from the commit history.
|
121
120
|
test_files: []
|