danger 5.9.0 → 5.9.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
  SHA256:
3
- metadata.gz: 417deb58bf0637736449d1d279c945296345cfb667d24dce9203588314d5d5f0
4
- data.tar.gz: 5856366cc279a0a350cc284cf5f27a8fd8fcb8fbbd23481e55b98b603ad5b9e3
3
+ metadata.gz: 8ca8eae46b86048ebe87922217dd3f833f70dbfc67287e216c8361039d30aa1e
4
+ data.tar.gz: 9ca45aa70428acc760231c4f31d89a1c841c07003057bb05fb68c418dcb38d9c
5
5
  SHA512:
6
- metadata.gz: 8c9006ca02858031137bb8906598b8e87bbf6bd9eb9f9e445755fb9ff687212247567dc65eebe6854f94d11f2875ee6049355a0c8e4542a266c5af14f031ee32
7
- data.tar.gz: 9d8689f2c791907b47d4df5e73466e3bc4d53a5824347f2a54e9e0ee84c8a9e613f01892733e2764ed76fde56a70d2562ac6b236d6fd949d1c124c1d8096498d
6
+ metadata.gz: 134880b979d81ecde590364d6a3d4cdccb14eae30181106c6758fc5fa9e580f49346b46b129d054b6443e975c7305738669bb790ca0674548919f9e40c6ca68e
7
+ data.tar.gz: 6e5ca5931209b7231aa048fba656aa58096a468bf6446fe39dc313fd943e89196dea4f49fe285228f635afae7b42db6a0678a5449676c7e4664c9454fc2cddef
@@ -381,6 +381,11 @@ module Danger
381
381
  file_line = nil
382
382
 
383
383
  diff_lines.drop(file_start).each do |line|
384
+ # If the line has `No newline` annotation, position need increment
385
+ if line.eql?("\n")
386
+ position += 1
387
+ next
388
+ end
384
389
  # If we found the start of another file diff, we went too far
385
390
  break if line.match file_header_regexp
386
391
 
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "5.9.0".freeze
2
+ VERSION = "5.9.1".freeze
3
3
  DESCRIPTION = "Like Unit Tests, but for your Team Culture.".freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: danger
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.9.0
4
+ version: 5.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orta Therox
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-11-29 00:00:00.000000000 Z
12
+ date: 2018-12-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: claide