danger 5.5.11 → 5.5.12

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: b40e9480325dafce9f9b8f3f629c564db738049d
4
- data.tar.gz: 99574cdbe722f0205a8603ec10dbf4c4a9450772
3
+ metadata.gz: d85d2d05019556062bfa26d3b27c0a2146a4c055
4
+ data.tar.gz: 6ac0f8c4ed32e2a7d71dac8b9ac1f26ebbdda673
5
5
  SHA512:
6
- metadata.gz: dbfc890a23612ee9145f37ef0dc9baf7987ad881f3ac8bddc6bf8ed738b34dbf4df2b8b4a517b169898614f71bed9e71564c0390eacd824ba819e1ceb541dec7
7
- data.tar.gz: 166a2919fca6b861fc8d4aff9b09d4d6e01fa699d7f49dfa50fc97b5b259bd31b3643824dfa6287c311078ec2d2e7b5a9c262c478a29d5bf9bf90e20ea723643
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::ArraySublcass
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
@@ -1,6 +1,6 @@
1
1
  module Danger
2
2
  module Helpers
3
- module ArraySublcass
3
+ module ArraySubclass
4
4
  include Comparable
5
5
 
6
6
  def initialize(array)
@@ -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
@@ -1,4 +1,4 @@
1
1
  module Danger
2
- VERSION = "5.5.11".freeze
2
+ VERSION = "5.5.12".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.5.11
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-03-09 00:00:00.000000000 Z
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.6.14
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.