repo_miner 0.3.0 → 0.3.1

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: 79ca893738983fde2915ffd07fbbea2ac46ed331
4
- data.tar.gz: 6f879d2ca48825f551fe0ddcccc973519b6bb059
3
+ metadata.gz: 3a458b0a7659ef802e5cdd2e274ba0689b7a9e28
4
+ data.tar.gz: 60f7e9f1a12e4dbeb039decd10c10e42b7fe34e8
5
5
  SHA512:
6
- metadata.gz: 12b3b6adc619fa8238eca5170225a0cfb32b91ab22925228c9c58c4cc642996878cedeb4e333d8308204db86c21b13b377871c18f0f4649be54324b706183d59
7
- data.tar.gz: '09a3c002cc25e35fc6daa133c04e93ae67042776850e66ca5c01829663d4eaf54212c21f2731a91411244ef48ea85355acaf36d467d59df52345bc8d9ab3c9c1'
6
+ metadata.gz: 05f6bc87a47a23fc802b9ecebf04f4068439e389de6f22ed651a84c613a00faf3bd550d5cbaab056900ed7b6dcf4eb4f89fd5ec456974509adae11ffec1149bb
7
+ data.tar.gz: 9ed7a16ca7fe28c9d2865a19707d105b1f8739deeaa7a37d61e2011e380efc255bf7d37cb0780c07c1df3631bcaf59400e22f6b6f0afc7a0dec22b3a9af81a27
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
5
5
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [0.3.1] - 2017-07-25
8
+ ### Added
9
+ - merged? method on commit to identify merge commits
10
+
11
+ ### Changed
12
+ - Skip merge commits when analysing dependencies
13
+
7
14
  ## [0.3.0] - 2017-07-20
8
15
  ### Added
9
16
  - Add ability to skip previously analsyed commits
@@ -22,6 +22,10 @@ module RepoMiner
22
22
  rugged_commit.time
23
23
  end
24
24
 
25
+ def merge?
26
+ rugged_commit.parents.length > 1
27
+ end
28
+
25
29
  def analyse
26
30
  Miners::Email.new.analyse(self)
27
31
  Miners::Dependencies.new.analyse(self)
@@ -4,6 +4,8 @@ module RepoMiner
4
4
  module Miners
5
5
  class Dependencies
6
6
  def analyse(commit)
7
+ return if commit.merge?
8
+
7
9
  all_paths = blob_paths(commit.rugged_commit)
8
10
 
9
11
  added_paths = all_paths.select{|path| path[:status] == :added }.map{|path| path[:path] }
@@ -1,3 +1,3 @@
1
1
  module RepoMiner
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repo_miner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Nesbitt
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-20 00:00:00.000000000 Z
11
+ date: 2017-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged