danger 5.5.11 → 5.5.12
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d85d2d05019556062bfa26d3b27c0a2146a4c055
|
|
4
|
+
data.tar.gz: 6ac0f8c4ed32e2a7d71dac8b9ac1f26ebbdda673
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: daf471daab481e39d5ebc73ec073409d4a4d30d2645ce50d820a646e1154c3223cb65853a11e679dbb73f8d9b14be14d7f2b8e9f3ae9dc5fbfa82446c292f7e6
|
|
7
|
+
data.tar.gz: 33cc3e1026df9f338a086f251125aebc7a9fa227285ca136223c0a0f6319efe2ffd26e93ac087778e9fde8528eb8b79398605d480d7b33f4c9585f523aa75aec
|
|
@@ -2,7 +2,7 @@ require "danger/helpers/array_subclass"
|
|
|
2
2
|
|
|
3
3
|
module Danger
|
|
4
4
|
class FileList
|
|
5
|
-
include Helpers::
|
|
5
|
+
include Helpers::ArraySubclass
|
|
6
6
|
|
|
7
7
|
# Information about pattern: http://ruby-doc.org/core-2.2.0/File.html#method-c-fnmatch
|
|
8
8
|
# e.g. "**/something.*" for any file called something with any extension
|
|
@@ -465,7 +465,6 @@ module Danger
|
|
|
465
465
|
def file_url(organisation: nil, repository: nil, branch: nil, path: nil)
|
|
466
466
|
organisation ||= self.organisation
|
|
467
467
|
|
|
468
|
-
return @download_url unless @download_url.nil?
|
|
469
468
|
begin
|
|
470
469
|
# Retrieve the download URL (default branch on nil param)
|
|
471
470
|
contents = client.contents("#{organisation}/#{repository}", path: path, ref: branch)
|
|
@@ -490,8 +489,8 @@ module Danger
|
|
|
490
489
|
|
|
491
490
|
def inline_violations_group(warnings: [], errors: [], messages: [], markdowns: [])
|
|
492
491
|
cmp = proc do |a, b|
|
|
493
|
-
next -1 unless a.file
|
|
494
|
-
next 1 unless b.file
|
|
492
|
+
next -1 unless a.file && a.line
|
|
493
|
+
next 1 unless b.file && b.line
|
|
495
494
|
|
|
496
495
|
next a.line <=> b.line if a.file == b.file
|
|
497
496
|
next a.file <=> b.file
|
data/lib/danger/version.rb
CHANGED
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.5.
|
|
4
|
+
version: 5.5.12
|
|
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-
|
|
12
|
+
date: 2018-04-16 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: claide
|
|
@@ -291,7 +291,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
291
291
|
version: '0'
|
|
292
292
|
requirements: []
|
|
293
293
|
rubyforge_project:
|
|
294
|
-
rubygems_version: 2.
|
|
294
|
+
rubygems_version: 2.2.2
|
|
295
295
|
signing_key:
|
|
296
296
|
specification_version: 4
|
|
297
297
|
summary: Like Unit Tests, but for your Team Culture.
|