pronto 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: a66e654e1708c5c4fcf6413076a2c042e9dd7225
4
- data.tar.gz: 73fa54051809d970a117bf7e9cfdf811439bdf73
3
+ metadata.gz: 387df066362f3ce320d87ec335d8a9db830008a2
4
+ data.tar.gz: 0e1b4accb83cac242bafd1459d6e7b2e3a0e2d43
5
5
  SHA512:
6
- metadata.gz: 5c9c1e1839d66d7712b408f9b5aafdce9a0a03ceff4c88c3688a56a037fe83bddb7b21d2095c40ac0601ea41a1425b3a4c7c71949b0a19567cb7c827e332e822
7
- data.tar.gz: 75cac8fa3d9f50baf3cde10d4ab61df15d8a1b6808442e16cd073ef3244629cddf70630d1e2412d5ac68ad52cff72ae8fd5d0813417c451219a2255d1405f023
6
+ metadata.gz: ef99c38020c651f360655a3e8280ee1c9c2b21e432dc86ff0596eddaeae8175dea910af413c94988592b5c7548734db63e9633f5f47d59d826ee6244f418950c
7
+ data.tar.gz: d9d9f560ce10fa65c1f705934b2db76451c482c134fb751cac2d6d0ab620b2684f9d27c62f9fc0c12cf8b5359bf4d35224d139d6fa03bbb067ddb8a7686f20e5
@@ -30,9 +30,11 @@ module Rugged
30
30
  patch.new_file_full_path == p.new_file_full_path
31
31
  end
32
32
 
33
- commit_patch.lines.find do |l|
34
- blameline.oldlineno == l.old_lineno
33
+ result = commit_patch.lines.find do |l|
34
+ blameline.lineno == l.new_lineno
35
35
  end
36
+
37
+ result || self # no commit_line means that it was just added
36
38
  end
37
39
  end
38
40
 
@@ -1,3 +1,3 @@
1
1
  module Pronto
2
- VERSION = '0.1.5'
2
+ VERSION = '0.1.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mindaugas Mozūras
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-07 00:00:00.000000000 Z
11
+ date: 2013-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rugged
@@ -171,9 +171,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
171
  version: 1.3.6
172
172
  requirements: []
173
173
  rubyforge_project:
174
- rubygems_version: 2.0.7
174
+ rubygems_version: 2.0.6
175
175
  signing_key:
176
176
  specification_version: 4
177
177
  summary: Pronto runs analysis quickly by checking only the introduced changes
178
178
  test_files: []
179
- has_rdoc: