git_find_committer 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6dd5f8b98e480753a6c9cf4325c5932e9a760a03
4
- data.tar.gz: 92361ee8dd217f7645f629235e7931d2493ccef1
3
+ metadata.gz: c4287cd0e90384bc47fd0e2e9ce7700ac4438234
4
+ data.tar.gz: 9c92b4d1ba9acaed9e71217d618154dd4802d8bc
5
5
  SHA512:
6
- metadata.gz: 64b76addb68157834fd877c7539bd0dabbfd9f57f1bff81bf3ae19ee217e2924f2b1b7e6017790c3b7240d7824810e8be81ec95a18109f4c74ff8332dc5a0f92
7
- data.tar.gz: 476e4808599fe701535fe14b88316b48683cd1e7a8b05de349db0117511154d56845be201793dfadefbe1f351f00bf811b6dd37b057afddcec9fd1f04f31ed88
6
+ metadata.gz: 5a751596d1706828ae327c4681ba475597c6068f5a5d8596f1fbe77cdb034779f39bc749e0143a0e2cf8e94ed08afbeb14e2ccd6c7b4f922327db2d2f99d7a81
7
+ data.tar.gz: 83e0e2953d05d5f53c6e90a6eeaa643eab386622e8fd538af48ea31fbecb7d2769b6066493ebbdb5ccb87e9474b31b89048465d4682ad74dce4ef6c02fbd1e56
@@ -22,7 +22,7 @@ module GitFindCommitter
22
22
  result = result.each_with_object([]) do |(key,val),arr|
23
23
  arr << {name: key, commit_count: val}
24
24
  end
25
- Response.new(result)
25
+ Response.new(Filter.new(@config).select_committer(result))
26
26
  end
27
27
 
28
28
  def find(file)
@@ -5,7 +5,11 @@ module GitFindCommitter
5
5
  end
6
6
 
7
7
  def select_committer(committer)
8
- committer.select {|c| @config.available_committer_names.include?(c[:name]) }
8
+ unless @config.available_committer_names.nil?
9
+ committer.select {|c| @config.available_committer_names.include?(c[:name]) }
10
+ else
11
+ committer
12
+ end
9
13
  end
10
14
  end
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module GitFindCommitter
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: git_find_committer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shohei Yamasaki